GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Dec-2004, 07:10
Fighter Fighter is offline
New Member
 
Join Date: Dec 2004
Location: Armenia
Posts: 2
Fighter is on a distinguished road
Question

need help


I have a question..and will be happy if anyone can help me.
The problem is in the function addSlashes()
I work with PHP4, OS - winXP, mySQL 4.1.x at home, here everythin'g ok
but the function works incorrectly under win2000, maybe it's
because of the Iternet Explorers old version which is in the win2000.

beforehand thanks.
  #2  
Old 23-Dec-2004, 09:15
dopee dopee is offline
Awaiting Email Confirmation
 
Join Date: Feb 2004
Location: south africa
Posts: 109
dopee will become famous soon enough
What do you mean the function works incorrectly? Surely if it's executed correctly one one operating system it'll work in any other situation, cos php.exe is used to execute the script?
How are you executing the php?
  #3  
Old 24-Dec-2004, 04:19
Fighter Fighter is offline
New Member
 
Join Date: Dec 2004
Location: Armenia
Posts: 2
Fighter is on a distinguished road
thanks for reply.

incorrectly-i mean when i use it before putting the string into the data base
on my OS i don't see the added slashes in the database, and that's right, but on the other OS i can see the added slashes in the db.
for example before putting string "_files\catalogues\maths\mathematical_physics.pdf" into the db i used addSlashes(), ad everything was ok, in the database it looked like the same string. But on the University's PC the result in the database was "_files\\catalogues\\maths\\mathematical_physics.p df"
I removed addSlashes() and only then i got rid of the first slashes.
I just wonder what's the matter with it.
if i'm not mistaken i must use addSlashes() in order to quote string with special symbols..

ps. magic_quotes_gpc is off in both cases
thanks :]
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:26.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.