gibigbig Posted April 7, 2010 Share Posted April 7, 2010 i made a query and theres no output $titlequery = mysql_query("SELECT sdata FROM formresults WHERE fid = '".$fid."' AND userid = '".$gibid."'" ) or die(mysql_error()); $formresults = mysql_fetch_array($titlequery); $uberarray = "".$formresults[7].""; Link to comment https://forums.phpfreaks.com/topic/197817-what-is-wrong-with-this-query/ Share on other sites More sharing options...
gibigbig Posted April 7, 2010 Author Share Posted April 7, 2010 i'll also add that there's 8 fields in my database. which are (in order): `id`, `fid`, `userid`, `username`, `time`, `title`, `output`, `sdata` Link to comment https://forums.phpfreaks.com/topic/197817-what-is-wrong-with-this-query/#findComment-1038102 Share on other sites More sharing options...
teamatomic Posted April 7, 2010 Share Posted April 7, 2010 try: "SELECT sdata FROM formresults WHERE fid = $fid AND userid = $gibid" HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/197817-what-is-wrong-with-this-query/#findComment-1038130 Share on other sites More sharing options...
haku Posted April 7, 2010 Share Posted April 7, 2010 You are ouputting $formresults[7], which won't exist based on what you have requested in your query. Link to comment https://forums.phpfreaks.com/topic/197817-what-is-wrong-with-this-query/#findComment-1038164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.