English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

'800a0401'

语句未结束

/left.asp,行 14

sql1="select top 5 * from Product1 where bigclassname='公司新闻' order by articleid desc" Set rs1= Server.CreateObject("ADODB.Recordset") rs1.open sql1,conn,1,1
----------------------------------------------------------------------------------^

2006-12-09 01:49:11 · 3 answers · asked by HongPeng M 1 in Computers & Internet Programming & Design

3 answers

ask th yahoo group

2006-12-09 01:57:20 · answer #1 · answered by Rim 6 · 0 0

First why you write the name of table by Japanese Lang ...when you Programing with php and mysql you must used English Lang
This the first thing ...
the sacand you must to but `` when you write name of table
and record cos mysql don't know if that is function of just name
of table cos that you must do like that
sql1="SELECT * FROM `pRODUCT1` WHERE bigclassname= '$varible'";
That is the correct .

2006-12-09 02:12:35 · answer #2 · answered by Rasmah.com 5 · 0 0

the "select top 5" should be "select top_5" or "select top5" as defined in the sql database with no spacing.

mercury of love

2006-12-09 01:59:51 · answer #3 · answered by mercury of love 4 · 0 0

fedest.com, questions and answers