Jump to content

[SOLVED] SQL search returning doubles??


Scooby08

Recommended Posts

Can anybody tell why this would be returning two records for each item found??

 

<?php
$query  = "SELECT name, symbol ";
$query .= "FROM pfs ";
$query .= "WHERE name LIKE \"%$symbol%\" ";
$query .= "ORDER BY symbol";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['symbol'];
echo $row['name']."<br />";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/143359-solved-sql-search-returning-doubles/
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.