Jump to content

[SOLVED] Help calling data from table


ambo

Recommended Posts

you need to have an auto_increment int column userid... add one.

 

After that,

$someUserId = 23523;
$query = "SELECT * FROM de_user WHERE userid = '$someUserId'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
echo "{$row['email']}<br />{$row['name']}<br />{$row['sex']}";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.