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 Guidelines:
1) I love to read comments, but please avoid spam.
2) Like this blog, share your insights, and spread the word.
3) You can use basic HTML/xHTML tags.
4) All comments are DoFollow—please use the section professionally.
5) Kindly mention your name or brand below your comment.
6) Constructive suggestions for improvement are always welcome.
Thanks for visiting Samee Articles.
========================================
Best Regards,
Samee U. Feroz