PHP 8.2
Old version of site running on thats working..
/*!
App Connect
Version: 1.14.12
@build 2023-03-14 12:22:18
*/
I have been running on ver 6.8 for a long time and today i decided to do a full update and code update eg server connect .. the whole shebang… the latest version of everything ![]()
If i go back to the older version and older server connect it works.. .. is this a simple fix??.. or is the error within wappler.. dont know…. im just worried that if its breaking “older” code that was working that it might.. cause other problems for me down the road as well…
any help would be great… as I would love to “update” my site to the latest tech… ![]()
"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `reserved_price` <= ? AND `received_price` < ? AND `item_sold_live` <> ?)' at line 1"
if it might narrow this down
this is the code snippit directly out of the sc file
"sql": {
"type": "SELECT",
"columns": [
{
"table": "auction_items",
"column": "id",
"recid": 1
},
{
"table": "auction_items",
"column": "reserved_price",
"recid": 2
},
{
"table": "auction_items",
"column": "received_price",
"recid": 3
},
{
"table": "auction_items",
"column": "auction_id",
"recid": 4
},
{
"table": "auction_items",
"column": "client_id",
"recid": 5
}
],
"table": {
"name": "auction_items"
},
"joins": [],
"wheres": {
"condition": "AND",
"rules": [
{
"id": "auction_items.id",
"field": "auction_items.id",
"type": "double",
"operator": "equal",
"value": "{{$_POST.id}}",
"data": {
"table": "auction_items",
"column": "id",
"type": "number"
},
"operation": "=",
"table": "auction_items"
},
{
"id": "auction_items.reserved_price",
"field": "auction_items.reserved_price",
"type": "double",
"operator": "less_or_equal",
"value": "{{$_POST.received_price}}",
"data": {
"table": "auction_items",
"column": "reserved_price",
"type": "number"
},
"operation": "<=",
"table": "auction_items"
},
{
"id": "auction_items.received_price",
"field": "auction_items.received_price",
"type": "double",
"operator": "less",
"value": "{{$_POST.received_price}}",
"data": {
"table": "auction_items",
"column": "received_price",
"type": "number"
},
"operation": "<",
"table": "auction_items"
},
{
"id": "auction_items.item_sold_live",
"field": "auction_items.item_sold_live",
"type": "string",
"operator": "not_equal",
"value": "Yes",
"data": {
"table": "auction_items",
"column": "item_sold_live",
"type": "text"
},
"operation": "<>",
"table": "auction_items"
}
],
"conditional": null,
"valid": true
},
"query": "SELECT id, reserved_price, received_price, auction_id, client_id\nFROM auction_items\nWHERE id = :P1 /* {{$_POST.id}} */ AND reserved_price <= :P2 /* {{$_POST.received_price}} */ AND received_price < :P3 /* {{$_POST.received_price}} */ AND item_sold_live <> 'Yes'",
"params": [
{
"operator": "equal",
"type": "expression",
"name": ":P1",
"value": "{{$_POST.id}}"
},
{
"operator": "less_or_equal",
"type": "expression",
"name": ":P2",
"value": "{{$_POST.received_price}}"
},
{
"operator": "less",
"type": "expression",
"name": ":P3",
"value": "{{$_POST.received_price}}"
}
],
"orders": []
}
i have also “opened” this query in Wappler (new version) and saved it.. so i have no idea…











