Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Importing Contacts from Web2Project Database to Php Address Book
include ("C:\Users\lavanyadeepak\Downloads\contacts.php");
foreach($contacts as $listitem)
$firstname = $listitem["contact_first_name"];
$lastname = $listitem["contact_last_name"];
$email = $listitem["contact_email"];
$home = $listitem["contact_phone"];
$notes = $listitem["contact_notes"];
$sql = "insert into addressbook (firstname,lastname,email,home,notes) values ('$firstname','$lastname','$email','$home','$notes');";
echo "$sql<br>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.