|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||||
|
|||||
|
Selecting database
okay, I'm trying to make my site easy for my to update and stuff, I also want it to have less pages, so I had the great idea of haveing a drop down menu to select a database, but for some reason its not working, basicly, the select variable doesn't seem to be passing though.
php Code:
|
|
#2
|
|||
|
|||
|
RE: Selecting database
your form is using the post method and you are trying to access the select via the get superglobal. Try $_POST instead.....
|
|
#3
|
|||
|
|||
|
RE: Selecting database
cheers thank you
|
|
#4
|
|||||
|
|||||
|
RE: Selecting database
Okay, so the first one worked, but I don't get why this one doesn't, its pretty much exactly the same, I seriously can't see whats wrong
php Code:
|
|
#5
|
|||||
|
|||||
|
RE: Selecting database
Okay, now I have changed the code to this
php Code:
and its still not adding the information |
|
#6
|
|||
|
|||
|
RE: Selecting database
|
|
#7
|
|||
|
|||
|
RE: Selecting database
ah thank u, now I get this error, which is wierd because the code is pretty much exactly the same as my other codes
You have an error in your SQL syntax near 'add, link) VALUES ('www.epitaph.com', 'Epitaph')' at line 1Thank you! Information entered. Click here to view your link |
|
#8
|
|||
|
|||
|
RE: Selecting database
I have a feeling that the column name "add" is reserved. try changing it to something like "address" or "addy" and see if that works.
I think "link" isn't a reserved word in mysql, so it shouldn't be a problem, but if it still gives headaches, try changing that too.. |
|
#9
|
|
|
|