me explico
tengo una tabla en mysql con los campos
nombre, telf, edad, pais
y tengo este array
Código PHP:
$arrayOne[0] = "Juan";
$arrayOne[1] = "0123456";
$arrayOne[2] = "17";
$arrayOne[3] = "españa";
Código PHP:
$astring = implode("', '", $arrayOne);
$astringTwo = "'".$astring."'";
$conexion = mysql_connect("localhost","root","");
mysql_select_db("agenda",$conexion);
mysql_query("insert into cane VALUES (".$astringTwo.")");
Código PHP:
$arrayOne[0] = "Juan";
$arrayOne[1] = "0123456";
$arrayOne[2] = "17";
$arrayOne[3] = "españa";
$arrayOne[4] = "pedro";
$arrayOne[5] = "789456";
$arrayOne[6] = "25";
$arrayOne[7] = "chile";