$sql_notice = "select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";这句代码哪里错了,为什么降序实

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 15:50:25
$sql_notice="select*from$t_articleartinnerjoin$t_article_catcatwhereart.cat_id=cat.cat_idandcat.cat_

$sql_notice = "select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";这句代码哪里错了,为什么降序实
$sql_notice = "select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";
这句代码哪里错了,为什么降序实现不了?
$sql_cat = "select * from $t_article_cat where is_show=1 and shop_id='$shop_id' order by sort_order asc limit 0,1";
$cat_notice = $dbo->getRs($sql_cat);
foreach($cat_notice as $value){
$ncat_id=$value['cat_id'];
$sql_notice = "select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";
$notice = $dbo->getRs($sql_notice);

$sql_notice = "select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";这句代码哪里错了,为什么降序实
你没有设置连接关系 on art.cat_id=cat.cat_id ,修改如下
$sql_notice = "select art.* ,cat.* from ".$t_article." art inner join ".$t_article_cat." cat on art.cat_id=cat.cat_id where cat.cat_id='".$ncat_id."' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10";
echo $sql_notice;

S_USERNAME=:USERNAME AND S_PASSWORD=:PASSWORD;OracleParameter[] parms = { new OracleParameter(USERNAME,OracleType.VarChar),new OracleParameter(PASSWORD,OracleType.VarChar),};parms[0].Value = userName;parms[1].Value = password;string sql = SELEC $sql_notice = select * from $t_article art inner join $t_article_cat cat where art.cat_id=cat.cat_id and cat.cat_id='$ncat_id' and cat.is_show=1 and art.is_show=1 order by art.short_order desc limit 0,10;这句代码哪里错了,为什么降序实 在MFC环境中绘制正弦曲线的函数 CDC *pDC=GetDC();CPen NewPen;NewPen.CreatePen(PS_SOLID,2,RGB(255,0,0));CPen *pOldPen=pDC->SelectObject(&NewPen);pDC->MoveTo(20,yCenter);int y,x;double dy;for(int i=5;iLineTo(x,y);pDC->MoveTo(x,y);}pDC->Selec If you love two persons selec,求翻译.这句话的意思是什么? It's very simple...Enter your Twitter ID below and press ENTER,then find a design and press SELEC 2013房山一模初三英语阅读C篇求助!people choose to live close together in cities,the waste-disposal problem becomes increasingly difficult.///During the eighteenth century,it was usual for several neighboring towns to get together to selec 评改四级作文语法错误It's so freedom studying in camus!Now some universities allow students to select not only their subjects but also their lecturers.That means students have more chances to make decisions on their study.When students selec 求范文一篇(雅思A类小作文)The bar chart shows the percentage of independents between two age groups aged 15- and 65+ as well as that of those around the world in 5 different countries from 2000 to 2050.Summarize the information by selec SQL查询求每个同学的课程成绩的最高分,查询结果项包括:学生姓名、课程号及最高分student表Score表求每个同学的课程成绩的最高分,查询结果项包括:学生姓名、课程号及最高分方案一:SELEC terrible toothacheThe other day i got a very serious toothache.I have 4 wisdom teeth.On Friday night the pain was keeping me awake all night.I was tossing and turning in bed and could not sleep.Around 3 a.m.i got up and turned on the computer.I selec =? = = = = =? = =?