MySQL Forums
Forum List  »  PHP

Re: insert array
Posted by: Stephen Van Tuyl
Date: February 26, 2017 02:42PM

FINALLY!
Fixed with this edit.

$sql = "INSERT INTO ip_data (name, ip)
VALUES";


$sql .= implode(", " , $DataArr);
mysqli_query($conn, $sql);

Thanks for all your advice.

Options: ReplyQuote


Subject
Written By
Posted
February 26, 2017 11:23AM
February 26, 2017 11:28AM
February 26, 2017 12:02PM
February 26, 2017 12:56PM
February 26, 2017 01:19PM
Re: insert array
February 26, 2017 02:42PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.