How to get value from other table and insert the value to new table using php and oracle -


this coding. value id "add basket" button. select form artwork values artwork want insert table sales. insert not function.

<?php     include("dbconn.php");     $artid =$_get['id'];     $temp=oci_parse($conn, "select * artwork artw_id = '$artid'");     oci_execute ($temp);   $p = oci_fetch_assoc($temp);     $ids = $_post['artw_id'];     $title = $_post['artw_title'];     $yy = $_post['artw_year'];   $price = $_post['artw_price'];     $sql = oci_parse($conn, "insert sale values ('".$ids."', '".$title."', '".$yy."', '".$price."')");     header("location: checkout.php");     exit();  ?> 


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -