dimis283 — 2011-09-15T06:04:10-04:00 — #1
I have the code below.I know that the query has 1 column as result but the code return false for the row.
What is wrong?
$query = "select ac_min_price,ac_final_date from auction_products
$idresults = $dbh->prepare(query);
$row = $idresults->fetch(PDO::FETCH_ASSOC);
dimis283 — 2011-09-15T06:17:49-04:00 — #2
I solve it.
$idresults = $dbh->prepare(query); is $idresults = $dbh->prepare($query);
ahundiak — 2011-09-15T14:23:35-04:00 — #3
Is your best friend.
michael_morris1 — 2011-09-15T16:30:57-04:00 — #4
Unless you have the misfortune of working with an ancient codebase that kicks out over 7000 notice and warning level errors each time it runs (I'm not joking).
starlion — 2011-09-15T16:51:18-04:00 — #5
Or a script that kicks out 8 errors into an error log, and is cron'd to run every 60 seconds of the day....(2 GB log per day...)
michael_morris1 — 2011-09-15T16:58:58-04:00 — #6
You too eh? Ancient code. Keeps us employed. One day PHP will pass away in favor of a better language, but I bet there will be a few of us left even then. Just like the COBOL guys today.