Re: Query problems with PostgreSQL



webhead74 wrote:

$myresult = pg_exec($connection, "SELECT * FROM
public.archived_with_photos
WHERE identification_no = '$id_no'");

Could be something funny going on with the variable interpolation. Try:

$myquery = "SELECT *
FROM public.archived_with_photos
WHERE identification_no = '$id_no'";
$myresult = pg_query($connection, $query);
var_dump(array('Q'=>$query, 'R'=>$myresult));

Does the var_dump reveal the query you expected?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

.



Relevant Pages

  • Re: HOVER TECHNIQUE
    ... funny. ... >how just typing on a keyboard can kind of convey things. ... But if I query a recordsource, ... >Edmonton, Alberta Canada ...
    (microsoft.public.access.formscoding)
  • Re: putting the total row at the end of a cross tab query
    ... > Funny thing is that it looks exactly the same in the design view but ... a few properties about a table and/or query that you do not see in the GUI. ... Column order, Column width, Hide/Show of Columns, Sorts and Filters applied ...
    (microsoft.public.access.queries)
  • Re: [PHP] PHP & MySQL Problem
    ... The funny thing is that all vars are being received except for the last two: ... [PHP] PHP & MySQL Problem ... The query then just goes like ... script" - I would guess the relevant part is not the query but rather ...
    (php.general)
  • Re: FOAK: Death certs for lost at sea
    ... Contact the Royal Naval Association regarding your query, ... actually die killed in combat, ... And some cunt on here thinks it's funny? ... So now you've got the gag, you want to start on me then? ...
    (uk.rec.motorcycles)
  • Re: Rounding errors
    ... My original query was: SELECT ... In the Immediate Window: ... SELECT CDbl/CDbl/CDblAS MyResult; ... Allen Browne - Microsoft MVP. ...
    (microsoft.public.access.queries)