RE: Variabels in stored txt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux