SAPATILHA DE CICLISMO SHIMANO MTB SH-ME100 TAMANHO 41 PRETOCód. 7663
Problema encontrado
Erro: 0L65411064: 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 'int) asc, opc_valor2 asc, temestoque desc, opc_preco asc' at line 1 Linha : 86 Script: /home/santanabikeshopc/public_html/class.sql.php
Fatal error: Uncaught exception 'Exception' with message 'Query mysql erro: 0L6541 -> 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 'int) asc, opc_valor2 asc, temestoque desc, opc_preco asc' at line 1 Linha : 86 Script: /home/santanabikeshopc/public_html/class.sql.php -> select *, if( (opc_estoque-opc_reserva)>0,'1','0') as temestoque, if( opc_valor2='P','100', if( opc_valor2='M','101', if( opc_valor2='G','102', if( opc_valor2='GG','103', opc_valor2 ) ) ) ) as tamanhocalc from prodopcoes where opc_pro_id='209' and opc_del<>'1' and opc_tipo1='Cor' and opc_valor1='Preto' and opc_tipo2<>'' order by opc_tipo2 asc, cast(tamanhocalc as int) asc, opc_valor2 asc, temestoque desc, opc_preco asc' in /home/santanabikeshopc/public_html/class.sql.php:90
Stack trace:
#0 /home/santanabikeshopc/public_html/_busca_segundo_param.php(8): Sql->query('select *, if( (...')
#1 /home/santanabikeshopc/public_html/produto.php(281): include('/home/santanab in /home/santanabikeshopc/public_html/class.sql.php on line 90