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?
|
|
|
 |
|