Re: Subject: SQL Statement
| From: | Neil Smith [MVP, Digital media] | Date: | Wed, 19 May 2004 19:55:07 +0000 |
| Subject: | Re: Subject: SQL Statement | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34481@lists.php.net to get a copy of this message | ||
You're missing a closing quote at the end of the line, following the group by
calls, it should end as
, calls";
Since you are passing a string to PHP to hand off to the DB engine. Also, PHP function mysql_error($connection) is useful as this will return any errors generated by your database (if present).
Cheers - Neil
At 00:57 19/05/2004 +0000, you wrote:
======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player. VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.$sqlwrk .= " WHERE ($sqlwrk .= " GROUP BYpk_phone_number= " . $fk_phoneâ) AND (dateBETWEEN â'$my_startdate'â AND â'$my_enddate'â)â;pk_phone_reports,fk_ph_num,date,calls;