Replacing the capped words with relevent substitutes.
amythepoet
9:26 pm on Apr 15, 2010 (gmt 0)
Oops, I thought I fixed it but now here's the scoop
I get this error:
localhost Error
SQL query:
INSERT INTO (
) VALUES ( ), ( ) MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '() VALUES (), ()' at line 1
Now what? I t seems that my web host made back up of the database so now i have two databases and the customer was getting the wrong prices, so I changed both databases to reflect the current prices, but still things are not right and I am not a programer and my programmer flew the coupe years ago!
Readie
9:40 pm on Apr 15, 2010 (gmt 0)
That means the SQL query you are trying to execute is not worded correctly. If you could paste that we'll take a look at it.
amythepoet
9:51 pm on Apr 15, 2010 (gmt 0)
I do not know w hat to paste or where to look, but I can pull up both databases and see if I can find something called SQL query one moment, thank you
amythepoet
9:54 pm on Apr 15, 2010 (gmt 0)
I still do not know where to look, all I know is that if I were to try and edit my products or questionnaires in my database, I would go like this:
www.widgets.com/pma
now when I put in www.widgets.com/pma, the computer adds: /tbl_replace.php
amythepoet
9:57 pm on Apr 15, 2010 (gmt 0)
I found something called My SQL but I don't know what to do with it
Readie
10:20 pm on Apr 15, 2010 (gmt 0)
The SQL query would be contained somewhere within the PHP code. Going by the error you posted earlier, it'll be an INSERT query.
amythepoet
10:25 pm on Apr 15, 2010 (gmt 0)
an INSER query, ok, so I should look at the code on the php page, correct?
amythepoet
10:29 pm on Apr 15, 2010 (gmt 0)
I f ound this: <!-- BEGIN ORDER FORM INSERT -->
amythepoet
10:30 pm on Apr 15, 2010 (gmt 0)
Then I found this: <!-- END ORDER FORM INSERT -->
Readie
11:37 pm on Apr 15, 2010 (gmt 0)
Those are HTML comments.
An INSERT query would look a bit like this:
INSERT INTO something_here (some_column, some_column) VALUES ("Some value", "Some value")
Note: The syntax is a bit flexible, just do a ctrl+F and look for INSERT INTO (Don't force-match the case, can be upper or lower)
amythepoet
12:08 am on Apr 16, 2010 (gmt 0)
ok, I will try, right now
amythepoet
12:10 am on Apr 16, 2010 (gmt 0)
the words INSERT into are not found, maybe I am looking in the wrong file?
amythepoet
12:11 am on Apr 16, 2010 (gmt 0)
I'm looking in my database for the words INSERT INTO, as I said, I am not a programmer, this is greek to me
amythepoet
12:13 am on Apr 16, 2010 (gmt 0)
I am looking in something called PHP MY ADMIN, I guess that's the wrong place, I need help
mack
12:15 am on Apr 16, 2010 (gmt 0)
What is the name of the php script you are using?
Mack.
amythepoet
12:25 am on Apr 16, 2010 (gmt 0)
Name of the script? you got me, I saw something it said apache could th at be it?
amythepoet
12:27 am on Apr 16, 2010 (gmt 0)
I don't even know where to look, I have a straight payment form, no shopping cart, and a database, called pma, I don't know what that stands for
amythepoet
12:30 am on Apr 16, 2010 (gmt 0)
and tis' very funny, I am on a Mac and when I put in the name of my url, lets say rocketsandwidgets.com, I put rocketsandwidgets.com/pma and by some magical thing, I get /pma/tbl_replace.php at the end of the line even though I did not put it in there
However, if I am in Firefox, and I put in rocketsandwidgets.com/pma
I just get simply that rocketsandwidgets.com/pma and I am able to see my database and everything is fine then
amythepoet
12:39 am on Apr 16, 2010 (gmt 0)
wait a sec, in MY SQL, which is inside of the pma database, I believe I found this:
var querywindow_height = 400; var querywindow_width = 600;
does that help?
amythepoet
12:41 am on Apr 16, 2010 (gmt 0)
I am getting soo tired, that I can barely keep my eyes opened, I think I w ill have to go to sleep and look at this when I get up, ok? ok, thank you
amythepoet
12:45 am on Apr 16, 2010 (gmt 0)
Oh, I just found something else, it says MySQL client version: 5.0.51b, I hope that helps