Re: No data being put into the DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 04 March 2004 10:36, jeffrey_n_Dyke@xxxxxxxxx wrote:

> >>IMO it is better to use the braces syntax:
> >>"insert into show
> >>values('','{$_POST['Accnt_name']}','{$_POST['acc_num']}', ...)"
>
> I'm not second guessing at all, just curious as to why?  Is it less work on
> the parser?
> Do you find it cleaner? 

Consistent - items in arrays are always referenced by $array['item'].
Clean - no jumping in and out of double-quotes

> I've often used Richard's method myself, for the
> color coding that shows
> in my editors(Ultraedit and VIM) when concatenating with . , mainly for
> readability...but have found myself, of late, using the braces more...

The braces syntax highlights fine on Quanta.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
Never go to bed mad.  Stay up and fight.
		-- Phyllis Diller, "Phyllis Diller's Housekeeping Hints"
*/

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux