我使用mysql连接器并从visual 2010中的数据库中提取数据。还成功地将数据作为值插入。但是没有插入变量的数据。需要帮助求你了。
这个起作用了。mysql_query(connect,"INSERT INTO input VALUES(111,'Bangladesh','Khulna','Male','Muhammad Ashikuzzamanstr="Muhammad A
我想从公式表中插入一条记录到MySQL数据库表中。问题是在$_POST变量中有一个不在表的列中的field,但它在formulaire中显示为textfield。我用这种方式插入字段的值:
$newRecord->insert($_POST); // we created a generic function insert($array) to insert records