i'm having problems uploading images into the posrgres database. the code i'm using is
$sqlquery = "insert into binary_data1 values (nextval('value_sequence'),
'$description',
lo_import('$data'),
'$input_file_name',
'$input_file_size',
'$input_file_type',
'0');";
$res_id = pg_Exec ($sqlquery,$conn_id);
echo " the value of res_id is $res_id";
$new_id = pg_getlastoid($res_id);
the error i get is
Warning: 0 is not a PostgresSQL link index in fileman.php3 on line 155
the value of res_id is
Warning: 0 is not a PostgresSQL result index in /fileman.php3 on line 158
i would really appreciate it if someone could help me with this problem
thanks in advance