The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
The majority I've found are useless.
> This will, of course, simply pull the information in a long list
> rather than in a table etc.
>
> You could therefore set up a table and in each of the columns echo a
> certain field in MySQL for example echo
> $record['fieldtoecho'];
Aha. Wrong table. I read MySQL table -> HTML, not table -> HTML table.
You could therefore set up a table and in each of the columns echo a certain field in MySQL for example echo $record['fieldtoecho'];
> >
> $result = mysql_query("SELECT `email` FROM `tbl_name` WHERE
> `username`='Damarus'");
>
> while ($row = mysql_fetch_assoc($result))
> { echo $row['email']; }
>
> ?>
He'll have to connect to the database first?
$db="
$link = mysql_connect("localhost");
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link)
or die("Couldn't open $db: ".mysql_error());
$result = mysql_query( "SELECT `email` FROM `tbl_name` WHERE
`username`='Damarus'" )
or die("SELECT Error: ".mysql_error());
$row = mysql_fetch_row($result)){
echo "Email = ".$row['email];
}
mysql_close($link);
?>
$result = mysql_query("SELECT `email` FROM `tbl_name` WHERE `username`='Damarus'");
while ($row = mysql_fetch_assoc($result))
{ echo $row['email']; }
?>
Say I've got a table with username, name, email etc.
And I want to display the username Damarus's email, how would I do this?
http://www.kirupa.com
It's totally not difficult - just remember the principals: store, retrieve, manipulate, edit.
The majority I've found are useless.