I’m using a query like this one
$escaped = mysql_real_escape_string($_GET['submenu']);
$result = $db->select('SELECT pagename,metakeywords,metadescription,title1,title2,title3,article1,article2,article3 FROM sub_menu WHERE id='.$escaped.'');
and work with the values in metatags etc. like this
<meta name="description" content="<?php echo $result[0]['metadescription']; ?>" />
But for the values title1,title2,title3,article1,article2 and article3, I alway get the same results, even if im in a different row, I get the result from a total different row, and always the same result but all other values are changing to the new requested ones.
Very weird to me, someone a clue what the issue could be ?
Checked with print_r($result) all was good. Then is pasted every time print_r one template father … and saw that one template was overwriting $result with another query so article1 etc didn’t exist anymore. So php used the last value know as $result[0][‘article1’] etc… MY BAD 😀