UnlimitedMB.comUnlimitedMB.com
Home    |    About Us    |    Forums    |    Signup    |    Login    |    Support
UnlimitedMB.com


 
UnlimitedMB.com



Go Back   UnlimitedMB.com Forums > General Forums > Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Database information not displaying properly
  #1  
Old 2 Days Ago
destrugter destrugter is offline
Member
 
Join Date: Nov 2006
Posts: 75
Default Database information not displaying properly

Ok, this has to do with some code i received help on...its listed below.
Code:
Ok, now when someone puts a ' for something like "Cook's assistant" it will be diplayed "Cook/s assistant"
How can i fix this?

Last edited by destrugter : 2 Days Ago at 08:10 AM.
Reply With Quote
  #2  
Old 2 Days Ago
UnlimitedMB UnlimitedMB is online now
Administrator
 
Join Date: Jun 2006
Posts: 2,350
Default

add this function and in your existing code change mysql_escape_string to mysqlstring

Code:
function mysqlstring($string){
if (get_magic_quotes_gpc()){
$string = stripslashes($string);
}
return mysql_escape_string($string);
}
__________________
Eric,
Admin

Please do not PM me unless I ask you.
Reply With Quote
  #3  
Old 2 Days Ago
destrugter destrugter is offline
Member
 
Join Date: Nov 2006
Posts: 75
Default

Thanks a ton...it worked!
Reply With Quote
Reply

« Previous Thread | Next Thread »

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

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