PostgreSQL and PHP4

admin

Administrator
Staff member
I am using this line to access a particular record called by an HTML page:

$result = pg_exec($conn, "SELECT * FROM tasklist WHERE taskcode = $tcode;")

when i enter 'ET-A01' I get an error "attribute 'et' was not found in blah,blah,blah in line blah.

but when i plugged the exact data i get a result.

where am i wrong?

thanks in advanced.
 
Back
Top