For some reason the mysql_fetch_row is returning empty results, i do not understand why :
I have used the select statement with mysql, and it returned the appropriate data ( data is correct in db ). All the variables contain a value when the connection and query is run.
Any help would be appreciated, thanks guys.
Ozzy.
function get_lists() {
global $lists, $list_table, $database, $name, $password;
$query = "SELECT name, email, lists FROM $list_table WHERE name='$name'";
$connection = mysql_connect($hostname, $user, $pass) or die ("Unable to establish db connection !");
$result = mysql_db_query($database, $query, $connection) or die ("Error in query: $query. " . mysql_error());
if ( $result ) {
list( $n, $e, $lists ) = mysql_fetch_row($result) or die ("Error in fetch row: !" );
} else {
echo " DOHHHH ";
}
mysql_close($connection);
}