im trying to view a MySQL database's content, but nothing shows up. There's no error message either. You can check it out here: http://www.hungariansociety.com/test.php
and here's the code where I think the problem is:
Code:
$query = "SELECT * FROM test WHERE name LIKE '%$query%' OR code LIKE
'%$query%';"; $result = mysql_query($query) or die("Error in query: " .
mysql_error());
// get record
while($row = mysql_fetch_object($result))
{
echo "<li>";
echo "<a href=go.php?id=$row->id>$row->tag</a>";
echo "<br>$row->title";
echo "<p>";
}
thanks,
Levi