Err... Not sure - here is what i have come up with so far:
function mySqlConnect($sql) {
$sqlConnect = mysql_connect("host", "user", "pass");
mysql_select_db("database", $sqlConnect);
$query = mysql_query($sql);
return $query;
}
Then Ihave a call to this that I pass the $sql into. The error i get is:
Warning: Supplied argument is not a valid MySQL result resource
The line it refers to has:
while($data = mysql_fetch_row($query)) {
print "<h5>".$data[0]."</h5>";
print $data[5];
print "<br /><div class=\"smallPrint\">Added: ".$data[6]."</div>";
}
That is all I can say really - i'm stuck 🙂
Tony.