I am trying to get data from a database. I have the following code for that:
mysql_select_db($database_tony, $tony);
$query_rsTony = "SELECT `tony feature`.`text`
FROM `tony feature`";
$rsTony = mysql_query($query_rsTony, $tony)) ;
if ($rsTony) echo 'set';
else echo 'not set';
$row_rsTony = mysql_fetch_row($rsTony));
if ($row_rsTony) echo 'set';
else echo 'not set';
$totalRows_rsTony = mysql_num_rows($rsTony);
$text = $row_rsTony['text'];
I am getting the output:
set not set
EDIT
I added the changes said below and I have the above output.
I don't know why the mysql_fetch_row($rsTony) is not working -- any ideas?