I'm trying to get my head around this problem and after looking at all the other duplicates of this question, my question still isn't answered.
I'm a beginner at PHP but I'm pretty sure my code is fine... but obviously not.
Any help please?
My code is the following...
// Get some site-wide variables from the database first
$settings = mysql_query("SELECT * FROM cms_settings");
// Put the site settings into usable variables
while($row = mysql_fetch_array($settings)) {
$site_name = $row['name'];
$site_desc = $row['description'];
$site_status = $row['status'];
}