[snip]
> [snip]
> $get_var1 = mysql_query("SELECT * FROM table1 WHERE id LIKE '1' LIMIT
> 1");
> while($record=mysql_fetch_assoc($get_var1))
> {
> $show_var = $record['text'];
> }
> [/snip]
>
> do an echo $show_var; to see what is returned right here
Allready did, no result.
[/snip]
Is your query failing? You're not doing any error checking, like this...
$myQuery = "SELECT * FROM table1 WHERE id LIKE '1' LIMIT 1 ";
if(!($myResults = mysql_query($myQuery, $myConnection))){
echo mysql_error() . "\n";
exit();
}
while($record=mysql_fetch_array($myResult)){
$show_var = $record['text'];
}
echo $show_var;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php