Jump to content

How Would I..


Joshua F

Recommended Posts

How would I make the following code be able to be used more then once, so I can make it post more then just sitename?

 

$result = mysql_query("SELECT sitename FROM sitelist WHERE id=". $_SESSION['id']) or die(mysql_error());
list($sitename) = mysql_fetch_row($result);

 

Example: I have it so when the user is logged in, and they go to the UserCP, they can see there Site Name, but I can't make it say more then Site Name without getting an error.

Link to comment
https://forums.phpfreaks.com/topic/200951-how-would-i/
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.