|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
update/ delete in a db
alright I have a few things to do for my site which require that the user get to update or delete their info, so, how can I do this? Here is the coide that I thought was needed:
PHP Code:
it then goes on to do some other code, not important. so what is wrong here, is UPDATE even a function i can use here? how can i do this? and delete? thanks guys.
__________________
hey it's the CHARKING |
|
#2
|
|||
|
|||
|
Is it a SQL query for Updating data?
Where is SET? You are probably confused with correctness of query of SQL update syntax. |
|
#3
|
||||
|
||||
|
You're pretty close, cept update statements look like this:
UPDATE tablename SET field = value, field2 = value2 WHERE field = foo So, just move the WHERE part to the end. |
|
#4
|
|||
|
|||
|
Try this:
PHP Code:
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#5
|
|||
|
|||
|
still not working
okay i tried using the code guys, and it made sense, but it still wont work. here is my code... can anyone see the msitake?
PHP Code:
thanks for the help guys |
|
#6
|
|||
|
|||
|
any help?
hey guys anyone know what the problem is?
|
|
#7
|
||||
|
||||
|
In SQL, Strings require single quotes around them, as do dates.
|
|
#8
|
|||
|
|||
|
PHP Code:
|
|
#9
|
|||
|
|||
|
thanks guys
WHEW after much trying and failing and trying again it works. okay thanks a lot you guys.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > update/ delete in a db |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|