I have been trying to find what is wrong with the code below as I keep seeing the error saying mysql_fetch_array() expects parameter 1 to be mysql. I know that the issue is with the SQL statement itself. The first SQL statement is successfully executed, populating the DB with the inserted data. Please have a look to see what could have gone wrong with the SQL statement. Thanks a lot.
$address = addslashes($_POST['address']);
$query = mysql_query("insert into crd_article_desc(article_desc,article_title,article_category) values ('$address','$_POST[title]','$_POST[category]')");
$query = mysql_query("SELECT article_desc from crd_article_desc where article_title=$_POST[title]");
$article_desc = mysql_fetch_array($query);
Using mysql, not mysqli.
mysqlibut your code ismysql