Hii..this is mysql query

$querry="SELECT CONCAT(`insert_id`, `type`) AS 'order_id' FROM orders WHERE email='$email'";
$order_id=mysql_query($querry);
    echo $order_id;

i need to convert this into ** mysqli**.
Any Help??

Recommended Answers

Hi, use prepared statements, start from here:

Look at the first example in the first link, I'm not converting the code directly …

Jump to Post

All 3 Replies