|
Posted by Rik Wasmus on 09/04/07 07:05
On Tue, 04 Sep 2007 08:02:42 +0200, stiki <laptopia@gmail.com> wrote:
> On Sep 3, 4:15 am, Erwin Moller
> <Since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote:=
>> ELINTPimp wrote:
>> >> // First run ONLY - need to create table by uncommenting this
>> >> // Or with silent @ we can let it fail every sunsequent time ;-)
>>
>> >> $q =3D <<<CREATE
>> >> create table pix (
>> >> pid int primary key not null auto_increment,
>> >> title text,
>> >> imgdata longblob)
>> >> CREATE;
>> >> @mysql_query($q);
>>
>> > This makes babies cry.
>
>
> Can someone give an example of why this is bad programming practice?
> Is it because he is storing the image in the database?
It's the @, and continuing on with a query one knows for sure to create =
an =
(sql) error again and again and again after the first time. Never =
appropriate.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|