in reply to Why does $sql = <<EOSQL; require EOSQL to be in column 0?
Alternatively, you can break at the first blank line by doing$sql = <<" EOSQL"; ... EOSQL
Though that's a bit controversial to some.$sql = <<""; update employee set ...
Also, I suggest that you consider using bind parameters in the query. E.g.,
and then pass the bindings to execute().update employee set fname = ?, lname = ?, team = ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why does $sql = EOSQL; require EOSQL to be in column 0?
by dvergin (Monsignor) on Feb 23, 2001 at 00:55 UTC | |
by chipmunk (Parson) on Feb 23, 2001 at 08:33 UTC |