RE: [PHP-DB] I have a " in my db ?

2002-03-06 Thread Gurhan Ozen

Hi,
Can u please give us more information?? Are you trying to insert data into
database or pull data out of database.. Also can you show the queries you
are using???
Thanks,

Gurhan


-Original Message-
From: Dave carrera [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] I have a " in my db ?


Hi All



I think this has something to do with either



Stripslashes or Addslashes but which one. And where do I use it.



I have a product that has a " in the name and I have created a drop down
list from the names.



I cant get it to reg the name. all it reg is 15" instead of th full name
which is 15" lcd Monitor.



How do I get past this issue



The php manual has no usage examples relevant to my needs.



Please help



Dave c



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] I have a " in my db ?

2002-03-06 Thread Beau Lebens

try using 

echo htmlspecialchars($name);

that wya the " will convert to a " and should display properly in the
HTML

(check your source before doing this, it is probably all there, but the " is
causing HTML rendering problems or something)

HTH

Beau

// -Original Message-
// From: Dave carrera [mailto:[EMAIL PROTECTED]]
// Sent: Thursday, 7 March 2002 1:38 AM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] I have a " in my db ?
// 
// 
// Hi All
// 
//  
// 
// I think this has something to do with either
// 
//  
// 
// Stripslashes or Addslashes but which one. And where do I use it.
// 
//  
// 
// I have a product that has a " in the name and I have created 
// a drop down
// list from the names.
// 
//  
// 
// I cant get it to reg the name. all it reg is 15" instead of 
// th full name
// which is 15" lcd Monitor.
// 
//  
// 
// How do I get past this issue
// 
//  
// 
// The php manual has no usage examples relevant to my needs.
// 
//  
// 
// Please help
// 
//  
// 
// Dave c
// 
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php