ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 require("../mysqlconnection.php");$result = mysql_query("SELECT * FROM userinfo WHERE username='$_SESSION[sconlineusername]'") or die(mysql_error());$row = mysql_fetch_array($result);$displayname = $row['displayname'];this is perfectly fine, and it does give me the displayname, but I wish to just look for displayname column instead of *.Thanks Ted. Link to comment https://forums.phpfreaks.com/topic/31850-about-my-problem/ Share on other sites More sharing options...
btherl Posted December 26, 2006 Share Posted December 26, 2006 Try this:[code=php:0]$result = mysql_query("SELECT displayname FROM userinfo WHERE username='$_SESSION[sconlineusername]'") or die(mysql_error());[/code]The rest is the same. Link to comment https://forums.phpfreaks.com/topic/31850-about-my-problem/#findComment-147775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.