doumanju2533 2013-09-30 05:30
浏览 7

too long

I never did such PHP/MYSQL tricks to join multitables. Please who has experience in this field Help:

$qry=mysql_query("select {$table_prefix}user_cv.*, {$table_prefix}advertising.* from {$table_prefix}user_cv, {$table_prefix}advertising where {$table_prefix}user_cv.publish='yes' and {$table_prefix}advertising.publish='Y'");

mysql query return 0 results .

  • 写回答

1条回答 默认 最新

  • dsiimyoc804955 2013-09-30 05:40
    关注
    $qry = "SELECT {$table_prefix}user_cv.*, {$table_prefix}advertising.*
            FROM {$table_prefix}user_cv
            LEFT JOIN {$table_prefix}advertising ON {$table_prefix}advertising.publish='Y'
            WHERE {$table_prefix}user_cv.publish='yes'";
    mysql_query($qry);
    

    I did not test this! I could be wrong but it might be a step in the right direction. (Still new myself)

    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题