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 -> CodeCharge.Discussion

 Similarly named variables

Print topic Send  topic

Author Message
garydedub
Posted: 03/19/2003, 7:00 AM

I have a users table with fields called "password", "username" and "custref"
I have a jobs table with similarly named fields

In the "Before Insert" event of a form which inserts a record into the jobs
file I have the following code to query the users table...

$db->query("SELECT password, username, custref FROM users WHERE id=".
get_session("UserID"));
$db->next_record();

$fldpassword = "$password";
$fldusername = "$username";
$fldcustref = "$custref";

The values don't get transferred. I'm either not querying the users file
correctly or the assignments are not correct.

Any ideas?

TIA
Gary


   


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.