Problem [MySQL & PHP]

Status
Not open for further replies.

Dzetki

The Prodigal Son Returns
Jul 16, 2010
990
220
Well, i have a code here
PHP:
<?php
$sql = mysql_query("SELECT * FROM site_config");
while($row = mysql_fetch_array($sql)) {
  echo "<a href='" .$row['link']. "'>" .$row['title']. "</a>";
}
?
which works perfectly fine on my localhost but not on my server. On the server it says that the myql_fetch_array() isn't a valid mysql result. I have the same streaming program (Xampp 1.7.1) on both my computer and the server. But this problem is only on my server, do anyone know why this is happening? Is there something wrong with my code or is it the streaming software? I appreciate all help on this problem.
 
Status
Not open for further replies.

Users who are viewing this thread

Top