AMRUTA Posted September 28, 2013 Share Posted September 28, 2013 Hello everyone.. i am stuck with following code and i want to use it in PDO plz help me if($number>0) { $id=mysql_result($result,0,"id"); $_SESSION['id']=$id; somepage.php } Quote Link to comment https://forums.phpfreaks.com/topic/282495-using-mysql_result-in-pdo/ Share on other sites More sharing options...
Ch0cu3r Posted September 28, 2013 Share Posted September 28, 2013 If you're using PDO then you cannot use the mysql_* function library along side it. fetchColumn is an equivalent to mysql_result Quote Link to comment https://forums.phpfreaks.com/topic/282495-using-mysql_result-in-pdo/#findComment-1451524 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.