Hello,
I am loading the some settings for a script out of my MySQL database. When I try to pull the data out, it gives an error (actually the variable is just empty). I can't figure this out, and when I execute mysql_error();, nothing happens. I have posted the code in question below.
$MQuery = "SELECT * FROM NewsPref";
$result = mysql_query($MQuery);
$GMTos = mysql_result($result,0, "GMToffset");
if (!isset($GMTos)) {
@mysql_close($ifndb);
exit("ERROR TEXT OUTPUT");
}
It connects fine to MySQl, and selects that datbase properly. But, when I run the script it prints out the Error Text (thus indicating that the var GMTos is not set). I have also tried to print($GMTos); but it returns nothing as well.
If anyone could help me it would be greatly appreciated.
TIA, Bryce