Sometime you get MySQL Error like
Try to follow some rules........
This is just because of some misunderstanding about MySQL queries. This error occurs, when you try to search same column, which exists in two tables. For it, you need to write proper query that you can use in MySQL.Error Number: 1052 Column 'id' in order clause is ambiguous
Try to follow some rules........
- When you write any query, must sure that you have checked that in PHPMyAdmin > SQL
- If you need to use variables in MySQL query, Try to use concatenation for that variable like:
$query = "select * from users where name = " . $username[2];
- Try to avoid special characters in MySQL query.
- Try to use updated PHP5.5.x functions.
- Make sure that your order sequence is correct.
- Again must check that every query is working correct in Local Host.
- Try to take attention on "Order by", "Limit", "Rand", "Atoms" functions
- Use mysql_real_escape_string() function with variables to avoid hacking.
Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.
---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards