我有第一個表名是發佈會。如何使用php mysql將行標識插入到另一個表字段?
我想插入表格會議行ID(81)到另一個第二表名conf_dates
,並有現場conf_id使用的會議保存行ID
問題是該值爲空插入第二個表個conf_dates作爲第二臺圖像
這裏顯示的是PHP代碼
<?php
$id = $_GET["id"];
$trans = array("strtdate"=>$strtdate,"enddate"=>$enddate,"conf_id"=>$id);
$query = $db->insert($trans,PREFIX."conf_dates");
?>
這裏是HTML代碼,
<p>
<label>Conference ID</label>
<input name="conf_id" class="text-input medium-input" type="text" id="conf_id" value="" />
</p>
請告訴我如何插入行ID到另一個表領域?
做一個'的print_r($反)爲變量的值;',並告訴我們你得到了什麼 – hungrykoala