| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | Mysql/PHP issues using WHERE I'm currently using the following code to select and get info from the database: (I am using mysql 5 and php 5) PHP Code: Code: 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 'order WHERE status='pending'' at line 1 Any help is much appreciated |
| |
| | #2 (permalink) |
| NamePros Member | Replace PHP Code: PHP Code:
__________________ |
| |
| | #3 (permalink) |
| Senior Member | Thanks a bunch, rep added!
__________________ || VPSByte Virtual & Dedicated Solutions || True 24/7/365 support with a 1 hour guaranteed response time! || We offer budget, yet powerful dedicated servers and vps solutions. || All servers come w/ 10Mbps unmetered bandwidth & lite management standard. |
| |
| | #4 (permalink) |
| NamePros Regular | Camron, it would be good pratice to put `` around your field names, the better you get at creating complex queries, the easier it be to make mistakes, or use "keywords" in your queries. =)
__________________ Site Armory, tools for your website | Webmaster SEO Forums | PHP Tutorial and coding forums |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |