actually i want to insert for example :
"insert in $table_name1 f$ield_name1, $field_name2, $field_name3 values $data1, $data2, $data3";
table & field variable i get from select statement form database.
and variable data i get from $_Request from previous page
all this variable, i also use array(for statement).
2. $fields = array($field1,$ field2,$field3) ;
$data...
User Profile
Collapse
-
insert into table using array(for)
-
insert into table using array
hi..
i want to know how to insert data using array in mysql where the data stored in field given? this field_name i taken from database....
thanks a lot... -
this is my code:
i hope u can understand:
<?php
$mysql_link = mysql_connect(" localhost", "root", "");
// select the 'store' database
mysql_select_db ("mydb", $mysql_link);
$petak=$_REQUES T["petak_no"];
for($a=0;$a<$pe tak;$a++){
$table_name[$a]=$_REQUEST["table_name "][$a];... -
insert into multi table with specific field
anybody of u can help me?
i want some code to insert array coding in database mysql..where this process to many table and to specified field...
this table name and field name i taken from database from select statement....
thanks....
No activity results to display
Show More
Leave a comment: