0

im getting unexpected '$sql' when I run this code.. and idont know why..

<?php
include('connect/connection.php');
if(isset($_POST['pid2']))
{

    $pid = $_POST['pid2'];
    $name = $_POST['name']


$sql="INSERT INTO tbl_wishlist (prod_id, name)
    (select prod_id, image from tbl_product where prod_id ='$pid' AND image ='$name' )";


}else{ echo 'mali';}
mysql_close();

?>
2
Contributors
2
Replies
8
Views
3 Years
Discussion Span
Last Post by markii.borabon
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.