marklarah Posted January 15, 2008 Share Posted January 15, 2008 $lool = 'SELECT * FROM boards WHERE `ID` = '.$boardA; $lol = mysql_query($lool) or die(mysql_error()); $tit = $row['title']; echo $tit; it wont echo the value for tit... Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/ Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 Because you are not FETCHing it. Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440202 Share on other sites More sharing options...
The Little Guy Posted January 15, 2008 Share Posted January 15, 2008 <?php $lool = 'SELECT * FROM boards WHERE `ID` = '.$boardA; $lol = mysql_query($lool) or die(mysql_error()); $row = mysql_fetch_array($lol); $tit = $row['title']; echo $tit; ?> Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440203 Share on other sites More sharing options...
marklarah Posted January 15, 2008 Author Share Posted January 15, 2008 My god of course thanks I copied the lookup off one of my templates Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.