close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Inserting Blank Record

Thread began 11/02/2011 10:31 am by doug.lemesurier305760 | Last modified 11/03/2011 11:00 am by doug.lemesurier305760 | 1221 views | 4 replies |

doug.lemesurier305760

Inserting Blank Record

I can't seem to figure out why this form is only inserting a blank record. The form returns no errors and does not insert the form values but it inserts a empty record into the db. I just can't find where it's gone wrong.

Attached Files
insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot, change this line:

php:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());





to:

php:
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());

echo("<pre>".var_dump($_POST)."</pre><br>");
die("SQL: ".$WA_Sql);




this will write the contents of the post and the Insert SQL Statement to the screen, post this information back.

Sign in to reply to this post

doug.lemesurier305760

Thanks Jason,

The result indicates that nothing is being inserted into the values.

array(9) { ["Registration_group_Company_Name"]=> string(12) "Temp Company" ["Registration_group_Company_Abbrev"]=> string(5) "tcomp" ["Registration_group_Email"]=> string(16) "temp@company.com" ["Registration_group_Address"]=> string(3) "999" ["Registration_group_Address_2"]=> string(0) "" ["Registration_group_City"]=> string(4) "9999" ["Registration_group_Province"]=> string(7) "Alberta" ["Registration_group_Postal_Code"]=> string(7) "L6V 4L2" ["Registration_submit"]=> string(11) "Add Company" }


SQL: INSERT INTO `companies` (`CompanyName`,`CompanyAbbrev`,`CompanyAddress1`,`CompanyAddress2`,`CompanyCity`,`CompanyZip`,`CompanyEmail`,`CompanyState`,`CompanyCountry`) VALUES ('','','','','','','','','')

But the field names are correct. I can not see why the field values are not being passed

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

doug.lemesurier305760

Turns out, I neglected to upload all of the necessary WA files that were to be included with the page for validation.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...