Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQL Help

Featured Replies

SELECT f.id as id, f.forum_name as forum, f.forum_desc as description,
        count(forum_id) as threads, u.name as mod
        FROM forum_forum f
        LEFT JOIN forum_posts p
        ON f.id = p.forum_id
        AND p.topic_id=0
        LEFT JOIN forum_users u
        ON f.forum_moderator = u.id
        GROUP BY f.id;

this sql query keeps dispalying

 

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 'mod FROM forum_forum f LEFT JOIN forum_posts p ON ' at line 2

 

any ideas pleases

Edited by lee sands

Think you're missing a comma, or the 3rd line of your code is incorrect. Are there two tables, or what?

Edited by andyl

  • Author

nope same error i am using this code from a book to leran php and mysql to delvop applactions

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.