[PHP-DB] Single Quotes in Form Inputs

2009-07-27 Thread Ben Miller
_lastName]"; $query = mysql_query("INSERT INTO customers (`cust_first`,`cust_last`) VALUES ('$firstName','$lastName')"); Ben Miller

RE: [PHP-DB] Date Translation in MySQL

2008-08-05 Thread Ben Miller
-Original Message- From: Ben Miller [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2008 8:10 PM To: PHP. DB Mail List Subject: [PHP-DB] Date Translation in MySQL I'm looking for a quick and simple way to query a MySQL database by date, or more specifically, by day of the week. My

[PHP-DB] Date Translation in MySQL

2008-08-05 Thread Ben Miller
I'm looking for a quick and simple way to query a MySQL database by date, or more specifically, by day of the week. My dates are stored in the DB in -MM-DD HH:MM:SS format. Question, is there a built-in for PHP or MySQL that will take this column and return only Saturdays, for example, withou