close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

INSERT fails with no message

Thread began 1/19/2021 11:30 am by LionsMane | Last modified 1/21/2021 12:39 pm by Ray Borduin | 287 views | 3 replies |

LionsMane

INSERT fails with no message

Trying to do a single column INSERT to test and the page just reloads, with no errors - and no INSERT actually happens. vardump shows the following:

object(WA_MySQLi_Query)#2 (37) { ["Action"]=> string(6) "insert" ["UseAction"]=> string(6) "insert" ["AffectedRows"]=> int(1) ["Connection"]=> object(mysqli)#1 (19) { ["affected_rows"]=> int(-1) ["client_info"]=> string(79) "mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $" ["client_version"]=> int(50011) ["connect_errno"]=> int(0) ["connect_error"]=> NULL ["errno"]=> int(0) ["error"]=> string(0) "" ["error_list"]=> array(0) { } ["field_count"]=> int(0) ["host_info"]=> string(38) "someserver.com via TCP/IP" ["info"]=> NULL ["insert_id"]=> int(1555) ["server_info"]=> string(15) "5.6.50-90.0-log" ["server_version"]=> int(50650) ["stat"]=> string(155) "Uptime: 1004242 Threads: 24 Questions: 421360578 Slow queries: 175 Opens: 14419023 Flush tables: 1 Open tables: 2000 Queries per second avg: 419.580" ["sqlstate"]=> string(5) "00000" ["protocol_version"]=> int(10) ["thread_id"]=> int(5322026) ["warning_count"]=> int(1) } ["Debug"]=> bool(true) ["EncryptionAlgorithm"]=> string(8) "blowfish" ["EncryptionKey"]=> string(9) "Change Me" ["EncryptionMode"]=> string(3) "cbc" ["Error"]=> string(0) "" ["ErrorMessage"]=> string(37) "There is an error in your SQL syntax." ["ErrorNo"]=> int(0) ["FieldCount"]=> int(0) ["Filter"]=> string(0) "" ["FilterValues"]=> array(0) { } ["ID"]=> int(1) ["InsertID"]=> int(1555) ["JavascriptRedirect"]=> bool(false) ["MRTField"]=> string(3) "mrt" ["NumRows"]=> int(0) ["ParamColumns"]=> array(1) { [0]=> array(2) { [0]=> string(5) "Fname" [1]=> bool(false) } } ["ParamCount"]=> int(1) ["ParamDefaults"]=> array(1) { [0]=> string(10) "WA_DEFAULT" } ["ParamTypes"]=> array(1) { [0]=> string(1) "s" } ["ParamValues"]=> array(1) { [0]=> string(3) "afd" } ["Prepared"]=> bool(true) ["RelationalColumns"]=> array(0) { } ["RelationalKeyColumn"]=> bool(false) ["RelationalRows"]=> array(0) { } ["RelationalRowsFound"]=> bool(false) ["RepeatConditions"]=> array(0) { } ["RepeatedParams"]=> array(0) { } ["RepeatIndex"]=> int(2) ["SelectedResult"]=> bool(false) ["Salt"]=> bool(false) ["SaveAs"]=> string(0) "" ["Statement"]=> string(41) "INSERT INTO blah_1 (`Fname`) VALUES (?)" ["Table"]=> string(8) "quotes_1" }

What's going on? Thanks

Sign in to reply to this post

Ray BorduinWebAssist

Nothing looks wrong there... can you attach a copy of the page?

Sign in to reply to this post
Did this help? Tips are appreciated...

LionsMane

file attached

It's just a test file... I know the insert will throw a different error if we're not filling "required" fields on the DB, but I don't remember marking any as required. The error says there's a problem with the SQL anyways.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it would work. The error in the dump is just the default error message.

The insert is actually reporting that it ran without error.

Sign in to reply to this post
Did this help? Tips are appreciated...

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