Re: Help with php to MySql...
- From: "strawberry" <zac.carey@xxxxxxxxx>
- Date: 31 May 2006 02:36:20 -0700
Marcin's right, 'a query like that is just begging to be automated'
but, in any event, writing the query something like this would make
those kind of mistakes much easier to spot;
$query = "INSERT INTO table
(
value1, //you can even add comments
value2,
value3
)
VALUES
(
'value1',
'value2',
'value3'
);";
mysql_query($query) etc
.
- References:
- Re: Help with php to MySql...
- From: strawberry
- Re: Help with php to MySql...
- Prev by Date: Different binary results with different PHP versions
- Next by Date: Re: Different binary results with different PHP versions
- Previous by thread: Re: Help with php to MySql...
- Next by thread: Re: Help with php to MySql...
- Index(es):
Relevant Pages
|