Right sorted it. I used this below to get it working
$query = "INSERT INTO blg_topics (topic_title,topic_desc) VALUES ('".$_POST['topictitle']."','" . $_POST['topicdesc'] ."')";
If i had just specified not to insert into the first column it works fine
Thanks for the expert advice on all fronts!
ah right sorry, the reason the first comma was there was too insert no value into the topic id which would is an auto number, i assummed not having it would try put the next value into this. The escapes were generated by phpmyadmin, i tried using that code to see if it made a difference, I will...
I had similar trouble, got apache up and running looked good but wouldn't talk with php, thats why i just scrapped it and installed phpdev, you don't need to do make any changes to the config, unless u want something to work differently, but im sure there is someone here who could trouble shoot...
Dunno if I can help at all but I couldn't get mine setup to work properly either, but then someone recommended phpdev to me which sets up apache/php/mysql for you and with little config editing you are up and running in no time, if you are interested you can find it here...
Basically trying to get my script to insert into a database table, it might have to insert either a topic or an article depending on the options the user chose.. been staring at it for ages and just can't figure out why it won't work, ends up with the die message couldn't execute query.. have...
Hi, i am using an mxdatagrid to get information form an access table, i ahve added columns with a button field and an editcommandfield, these are populated fine, but how can i get the delete and edit buttons to actually execute code once clicked? when u click edit it creates text boxes for each...
I am writing a small program that allows users to log some information, one item of such is the Time/Date that something has happened, I create the log ultimately with a button, and if the jTextField is left empty i want to add the current system time and/or date instead. I tried writing the...
If i try that I get:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in microsoft.visualbasic.dll
Additional information: File not found.
Hi, just wondered how you go about opening the default web browser when a hyperlink on a form is clicked, and go to a specified url, have no idea in .net, cheers!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.