CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
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.

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.