ورود

View Full Version : ارور هنگام بازخوانی اطلاعات از بانک اطلاعات



resatak
جمعه 26 آذر 1389, 13:09 عصر
با سلام خدمت شما دوستان من ارروی که داشتم اینه که اسکریپتم تو لوکال هاست سالم کار میکنه ولی رو سرور ارور زیر میده تنها تفاوت لوکال با سرور هم ورژن mysql و php extention هست.
تو لوکال


MySQL client version: 5.0.27
Used PHP extensions: mysql

تو سرور


MySQL client version: 5.0.22
Used PHP extensions: mysqli

نمیدونم ربطی به این داره یا نه اینم اروری که میده.




object(Cuscus_Error)#4 (1) {
["data"]=>
array(6) {
["mysql_error"]=>
string(147) "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 ')' at line 1"
["mysql_errno"]=>
int(1064)
["reason"]=>
string(26) "mysql_query returned false"
["function"]=>
string(3) "q()"
["code"]=>
int(3)
["function_arguments"]=>
array(1) {
["query"]=>
string(186) "SELECT s.url, u.id as uid, s.id as sid, s.hs, s.credits, u.email, a.name as atn, u.credits as uc FROM site s join user u on u.id=s.usrid join acctype a on a.id=u.acctype where s.id in ()"
}
}
}