View Single Post
Old 06-04-2007, 07:51 AM   #24 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Delete Record using an Array

SDE,

I have got the following code working, only how do I display all the row's contents, not just one column of data on that one?
Code:
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
  die('Could not connect: ' . mysql_error());
}

mysql_select_db("Gallery", $con);

$result = mysql_query("SELECT * FROM Images");
$record = mysql_result($result, 0, 0);

echo $record;

mysql_close($con);
?>
Many Thanks,
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote