![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Is there anything wrong with this code?
is there anything wrong with this code, if there is please point it out for me. Thanks
No members have liked this post.
|
||||
|
#2
|
||||
|
||||
|
You should be running all your variables through the vbulletin cleaner - http://www.vbulletin.org/forum/showthread.php?t=154411
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#3
|
||||
|
||||
|
so instead of the code above. you want me to use this below? I tried to replace it. But it still doesn't do the trick.
No members have liked this post.
|
||||
|
#4
|
||||
|
||||
|
You never said anything was wrong, you just asked *if* anything was wrong and I told you that you at least need to secure it by running it through the cleaner. What is wrong?
And once you've assigned it ($day = ....), then you can just use that variable $day. This is actually the article I meant to link you to, sorry - http://www.vbulletin.org/forum/showt...hlight=cleaner
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#5
|
||||||||
|
||||||||
|
here is what i'm trying to do. I try to edit/modify/update a class from the schedule table.
So far i have: http://qtresources.com/tienganh/ese/schedule.php << working fine http://qtresources.com/tienganh/ese/schedule.php?do=add << working fine http://qtresources.com/tienganh/ese/...e.php?do=admin << everything is ok, but when I tried to edit a class....I'm able to pull it up, but when i submit it, nothing change. ex: http://qtresources.com/tienganh/ese/...?do=edit&id=49 here is my php code:
here is my edit templete:
No members have liked this post.
|
||||||||
|
#6
|
||||||||
|
||||||||
|
Like I said, if you already assigned $day to the cleaned variable, you can just use $day. Have you tried just:
in your query? Or, if you feel the need to escape it,
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
||||||||
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 10:53.


