I keep getting this query error but can't seem to figure out what I'm doing wrong here. I basically just need it to retrieve data from the db, simple.
$conn = db_connect();
$query = "SELECT * FROM donors";
$result = mysql_query($query);
$num_results = mysql_num_rows($result); // Keeps saying that this line has an error, but I have used this same code in other applications just fine.
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
$name = stripslashes($row['primary_first']);
echo"<P>$name";
}