On 15-Mar-2003 Sime wrote:
> Andrew wrote:
>> can you explain how I would do this tracking?
>>

<snip>

> 
> Hi Andrew,
> 
> Try building the query to a variable first, then output the variable to
> see
> if what MySQL is receiving is what you expected..
> 
> eg,
> $querystring="select * from mytable;";
> echo("\n\n$querystring\n\n");
> mysql_query($querystring);
> 
> will output..
> select * from mytable;
> 
> You can check the syntax of the command this way.
> 

Yep. My code is littered with:

// echo $qry;exit;

-- and --

echo "<!-- $qry -->";

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                            (53kr33t w0rdz: sql table query)

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to