Post Reply 
MySQL/PHP Code Problem...
Author Message
S7*
Sweet Dreams

Posts: 16,689.4373
Threads: 1,056
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 383.2309
Offline
Post: #1
MySQL/PHP Code Problem...
This is frustrating me terribly.

I'm testing a contact form that rely's on checking if the user has selected a specific setting in a setting selection menu of the site, and if its the a setting in particular, send to a specific email address... and to do this the form uses this code:

Code:
if($row_Recordset_cc['cc_cc'] == "setting_1") { // if setting_1 
	$sendto = $sendto . 'anemail@address.com';
}


but using that output the following on the site:

Code:
Notice: Undefined variable: row_Recordset_cc in /PATH/iframe_contact_form_send.php on line 22


Line 22 being the code above... but what makes no sense is that the "setting_1" variable is there [in the relevent MySQL DB & Table]... and is used just fine in other parts of the site, using the very same "if" statement on row "cc_cc".

I would say I'm working with a site that just moved from another server, and it didn't experience the problem there (apparently).

I'm really pulling my hair out with this one....

30/09/2009 08:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
MySQL/PHP Code Problem... - S7* - 30/09/2009 08:37 AM
RE: MySQL/PHP Code Problem... - PSPkiller - 30/09/2009, 03:17 PM
RE: MySQL/PHP Code Problem... - S7* - 01/10/2009, 06:49 AM
RE: MySQL/PHP Code Problem... - S7* - 02/10/2009, 05:31 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: