witt Posted June 11, 2006 Share Posted June 11, 2006 Is there any reason why this script wouldn't work?<?phprequire_once ('includes/mysql_connect.php');$query = "SELECT last_name FROM users WHERE MATCH (first_name) AGAINST('bob')";$result = mysql_query ($query);while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo $row[0];echo '<br />';}?> Link to comment https://forums.phpfreaks.com/topic/11720-fullext-search/ Share on other sites More sharing options...
zirgs Posted June 11, 2006 Share Posted June 11, 2006 change[code]echo $row[0];[/code]to this one[code]echo $row['0'];[/code]but i think that you cant echo non existing row? Link to comment https://forums.phpfreaks.com/topic/11720-fullext-search/#findComment-44315 Share on other sites More sharing options...
witt Posted June 11, 2006 Author Share Posted June 11, 2006 [!--quoteo(post=382546:date=Jun 11 2006, 11:37 AM:name=zirgs)--][div class=\'quotetop\']QUOTE(zirgs @ Jun 11 2006, 11:37 AM) [snapback]382546[/snapback][/div][div class=\'quotemain\'][!--quotec--]change[code]echo $row[0];[/code]to this one[code]echo $row['0'];[/code]but i think that you cant echo non existing row?[/quote]It's MYSQL_NUM not MYSQL_ASSOC so [0] is correct. Link to comment https://forums.phpfreaks.com/topic/11720-fullext-search/#findComment-44316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.