|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Editting row problem
This is my first time posting a PLEASE HELP!!! topic here... so... I really appreciate it if someone could help me.
The Problem When I tell my script to update the information in the database, it somehow cannot update. So, I'm wondering if there's a solution to my script. PHP Code:
Thanks in advance! |
|
#2
|
|||
|
|||
|
Take a look at this line: if ($row[permission] != 1)
I think you should have quotes around permission. Also, why so much space between your query items PHP Code:
PHP Code:
PHP Code:
These may not solve your problem, but it will help. Also, you might want to echo out your query and post it here.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
||||
|
||||
|
I think your problem might be the comma between the last set clause and the WHERE. Try pulling that out and see if it works.
|
|
#4
|
|||
|
|||
|
Try using error reporting side of PHP. If you put after all of your SQL statements (mysql_connect, mysql_select_db, mysql_query) a
PHP Code:
it will help you a lot. Another thing that I find strange is the way you put together your query. Try it this way: PHP Code:
I appologize for the wide post [ ] |
|
#5
|
|||
|
|||
|
Thanks dhouston! Yes, it was the comma.
To laidbak - I'll keep those single quotes in mind =D (I'm still a bit rusty on PHP.) and to rainbow - I didn't like long strings or whatever you guys call it, so I made it the way I made it. Thanks for the error thing. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Editting row problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|