Tjk
12-05-2005, 05:43 PM
Is this the correct way to store variables from a mysql row...?
<?
$row= mysql_query("SELECT * FROM data WHERE userid='$userid'") or die("Could not select data from table data");
while(mysql_query($row){
$name= $row['name'];
$dob= $row['dateofbirth'];
}
?>
Is there a better way of doing it?
<?
$row= mysql_query("SELECT * FROM data WHERE userid='$userid'") or die("Could not select data from table data");
while(mysql_query($row){
$name= $row['name'];
$dob= $row['dateofbirth'];
}
?>
Is there a better way of doing it?