Jump to content

mySQL Help (is this possible?)


marcus

Recommended Posts

Like to store multiple item ids in like a database table for the users and stuff

like

[code]
$sql = "SELECT items FROM userdb WHERE userdb.id=$_COOKIE[id]";
$result = mysql_query($sql);
$result2 = mysql_fetch_assoc($result);
$items = explode(",",$result2);

while($row == $items){
echo $fc_array[array_rand($fc_array)];
};

mysql_free_result($result);
[/code]

would something like that work?
Link to comment
https://forums.phpfreaks.com/topic/26081-mysql-help-is-this-possible/
Share on other sites

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.