I have two relation table and I've made a php sql query out of it ...
What I need is to insert the sql result into a new database table...
Anyone ?
this is my code
<?php
$con = mysql_connect("localhost","sample","sample");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("logging", $con);
$result = mysql_query("SELECT `members`.`name`,`time_attendance`.`time` FROM members\n"
. "LEFT JOIN `log_time`.`time_attendance` ON `members`.`code` = `time_attendance`.`code` LIMIT 0, 30");
From this query, I would like to insert all the data inside a new database table... well let say..
"history_log"
column - (NAME),(TIME)