ucwords() usage QUICKIE
| From: | Daniel Negron/KBE | Date: | Fri, 14 Jun 2002 21:06:13 +0000 |
| Subject: | ucwords() usage QUICKIE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102268@lists.php.net to get a copy of this message | ||
Hi All,
I am trying to figure out how to use ucwords here :
if (submit)
$db = mysql_connect($dbhost,$dbuname,$dbpass);
mysql_select_db($dbname,$db);
ucwords($sql) <<<<< Is this correct ?
$sql = "INSERT INTO $prefix";
$sql .= "(first, last, email, company, address, city, state, zip,
phone, fax, mobile, comments)";
$sql .= "VALUES";
$sql .= "('$first', '$last', '$email',
'$company', '$address',
'$city', '$state', '$zip', '$phone', '$fax',
'$mobile', '$comments')";
also can you do this @ field level ?
Danny