CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Quite Possible that I'm Dumb

Print topic Send  topic

Author Message
jon
Posted: 04/01/2002, 8:09 AM

This has been a bad coding day (or i'm going dumb):

any ideas why, in perl, the following code doesn't return an INT value from the users table in mysql:

$creds = dlookup("users","credits","id=1");

Just returns nothing, and i'm scratching my head. Any help appreciated. Sorry to bug the forum 2 times in the same day!

Jon Westfall.
Jon
Posted: 04/01/2002, 10:07 AM

Here is a snipit of my latest sample code:
$creds = dlookup("users","credits","id= ".ToSQL(GetSessionVar("UserID"), "Number"));

This code stops the script at that point (nothing after it shows (This is put in the 'custom show' event)). Any ideas?
Nicole
Posted: 04/01/2002, 11:48 PM

Hm.. quite strange, code seems to be correct.
Do you get any messages? Make sure that session variable is not empty and put the code for testing purposes not to custom show event but to Open event of the page. Also print $creds.
What are the results?

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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