DNK>      I am trying to figure out how to use ucwords here :
DNK> if (submit)
DNK> $db = mysql_connect($dbhost,$dbuname,$dbpass);
DNK>           mysql_select_db($dbname,$db);
DNK>           ucwords($sql)  <<<<<  Is this correct ?
DNK>           $sql = "INSERT INTO $prefix";
DNK>           $sql .= "(first, last, email, company, address, city, state, zip,
DNK> phone, fax, mobile, comments)";
DNK>           $sql .= "VALUES";
DNK>           $sql .= "('$first', '$last', '$email', '$company', '$address',
DNK> '$city', '$state', '$zip', '$phone', '$fax', '$mobile', '$comments')";
DNK> also can you do this @ field level ?

Currently, you are ucwords-ing an empty string.  That being said, I'm
not sure what you are trying to do anyway. ucwords() upper-cases the first letter of 
words in a string.
(http://www.php.net/manual/en/function.ucwords.php)

such as:

$string = "this is a test";
$newstring = ucwords($string);
echo $newstring // This Is A Test


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20


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

Reply via email to