RE: [PHP-DB] Convert String to Array

2005-09-30 Thread Hutchins, Richard
Is it possible for you to store the vehMdlCd array as a serialized field in your database? I'm not sure how your data is structured, but you would serialize() your data on the way into the db then unserialize() it when you select it. When it's unserialized, you'll get it back in the original array

RE: [PHP-DB] WAMP

2006-03-15 Thread Hutchins, Richard
WAMP5. I use it myself. http://www.en.wampserver.com/ Rich -Original Message- From: Philip Pryce [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 11:55 AM To: [email protected] Subject: Re: [PHP-DB] WAMP apache triad 2 is good, http://apache2triad.net/ very well tested. b

RE: [PHP-DB] Serialize

2006-05-24 Thread Hutchins, Richard
Simon, You really should run at least the mysql_real_escape_string function as one part of a defense against SQL injection attacks. "Serialize"-ing really only converts your array into a format the database can store and retrieve; it doesn't do anything to protect you from intentional or unintenti

RE: [PHP-DB] Array

2006-09-29 Thread Hutchins, Richard
Use the strtolower function to reduce all letters to lower case. Then use the stripos() function to find where the spaces are in the string and use that position in the substr() function to parse out the individual words in the string. From there you can put the chunks into an array or a query or

RE: [PHP-DB] Query executing

2007-10-05 Thread Hutchins, Richard
The mysql_affected_rows() function will tell you how many rows were affected by the DELETE query you just fired. You can also test for TRUE or FALSE on the mysql_query() function if you just want to know if the query was successful or not. Rich -Original Message- From: ron.php [mailto:[E

<    1   2   3   4