Execute query not inserting
Hi Ray
I'm trying to execute a query hen a button is pressed, but nothing happens; I've tested the query locally (using numbers instead of the parameters) and it works fine.
Any suggestions?
Cheers
Chris
Hi Ray
I'm trying to execute a query hen a button is pressed, but nothing happens; I've tested the query locally (using numbers instead of the parameters) and it works fine.
Any suggestions?
Cheers
Chris
Try adding debug code before:
$ExecuteQuery->execute();
so it has:
var_dump($ExecuteQuery);
die($ExecuteQuery->Statement);
$ExecuteQuery->execute();
That will give you a lot more information that might allow you to figure out what is wrong.
Hi Ray
'This page isn't working' error after adding this.
Cheers
Chris
I had a typo:
var_dump($ExecuteQuery));
should be:
var_dump($ExecuteQuery);
Thanks Ray - all sorted now (I hadn't auto-incremented the PK field)
Cheers
Chris
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.