Importing Contacts from Web2Project Database to Php Address Book
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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