CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 resource id#13 during $db->query (php)

Print topic Send  topic

Author Message
Tomasz
Posted: 02/25/2002, 3:56 PM

when I try to select some values from db using:

$newsy_www = $db->query("select log_operacje_nazwa from log_operacje where log_operacje_id >= 47");
echo $newsy_www;

I receive Resource id #13 on screen.. Can anybody explain this?
Nicole
Posted: 02/26/2002, 5:20 AM

Tomasz,
you cannot assign $db->query() to any variable. It is used to execute the query:
$db->query("select log_operacje_nazwa from log_operacje where log_operacje_id >= 47");

then to get returned values use
$any_var = $db->f("log_operacje_nazwa");

Look at generated code for Grid form and use the similar approach.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.