I know this has been asked a million and one time but and I have read them, I can't seem to see what the problem is.
I'm using the select code from a w3 tutorial:
$con = mysql_connect("$server","#user","$admin");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("$db", $con);
$result = mysql_query("SELECT * FROM options");
while($row = mysql_fetch_array($result)) {
echo $row['copy_right'];
}
mysql_close($con);
And then is displayed in:
<?php $FP->copy_right(); ?> if it matters,
The full error I get is:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/frontcms/app/core/core.php on line 112