Hey all, haven't been around lately.
Anyway, I have a problem with my cart script. I have 2 tables that contain shipping rates. Now, these tables only account for weights up to 128. So what I was doing was checking if the number to be used in my query is > 128 and then set that number back to 128 if it is. However, for some reason whenever I try to select from this table with any increment greater than 80 it just gives me an error(the increments are 96, 112, and 128).
I get this error from pg_last_error() : ERROR: parser: parse error at or near "," at character 55
Here is some code:
<?php
...
$priquery = "SELECT cost from us_prioritymail WHERE weight = $priorlookup";
$priorresult = pg_query($priquery) or die(pg_last_error());
...
?>