in reply to a problem with a point...
Use of uninitialized value in array element at equal.txt line 16.
You can get rid of this warning by initializing $ff to zero.
$st=$db->prepare("SELECT relcode FROM bigone WHERE email = $zz "); $st->execute();
Don't ever interpolate data into your SQL strings, you'll only have problems with quoting. Use placeholders instead:
$st=$db->prepare("SELECT relcode FROM bigone WHERE email = ?"); $st->execute($zz);
Much safer!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: a problem with a point...
by Bass-Fighter (Beadle) on Jan 20, 2009 at 10:47 UTC |