forked from bindumareedu/PhotoFlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
764 additions
and
309 deletions.
There are no files selected for viewing
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
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
Empty file.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ | |
$name_error = "Sorry, An account exists with this email ID"; | ||
} | ||
} | ||
pg_close($connection); | ||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
|
||
session_start(); | ||
require('connect.php'); | ||
|
||
if (isset($_GET['username']) and isset($_GET['fname']) and isset($_GET['lname']) and isset($_GET['email'])){ | ||
$photographer = $_GET['username']; | ||
$fname = $_GET['fname']; | ||
$lname = $_GET['lname']; | ||
$email = $_GET['email']; | ||
// $msg_subject = $_GET['Subject']; | ||
|
||
if(isset($_GET['facebook'])){ | ||
$facebook = $_GET['facebook']; | ||
} | ||
|
||
if(isset($_GET['twitter'])){ | ||
$twitter = $_GET['twitter']; | ||
} | ||
|
||
if(isset($_GET['instagram'])){ | ||
$instagram = $_GET['instagram']; | ||
} | ||
|
||
if(isset($_GET['pinterest'])){ | ||
$pinterest = $_GET['pinterest']; | ||
} | ||
|
||
if(isset($_GET['phone'])){ | ||
$phone = $_GET['phone']; | ||
} | ||
|
||
if(isset($_GET['title'])){ | ||
$title = $_GET['title']; | ||
} | ||
|
||
if(isset($_GET['about'])){ | ||
$about = $_GET['about']; | ||
} | ||
|
||
if(isset($_GET['address'])){ | ||
$address = $_GET['address']; | ||
} | ||
|
||
if(isset($_GET['projects'])){ | ||
$projects = $_GET['projects']; | ||
} | ||
|
||
if(isset($_GET['clients'])){ | ||
$clients = $_GET['clients']; | ||
} | ||
|
||
if(isset($_GET['skills'])){ | ||
$skills = json_decode(stripslashes($_GET['skills'])); | ||
} | ||
|
||
if(isset($_GET['percs'])){ | ||
$percs = json_decode(stripslashes($_GET['percs'])); | ||
} | ||
|
||
// echo $username; | ||
|
||
$query = "UPDATE public.users_info SET profile_email='$email',fname = '$fname',lname = '$lname',facebook_url = '$facebook',twitter_url = '$twitter',pinterest_url = '$pinterest',instagram_url = '$instagram',pnum = '$phone',designation = '$title',about = '$about',address = '$address',projects = '$projects',clients = '$clients' WHERE email = '$photographer'"; | ||
$result = pg_query($connection, $query) or die('Query failed: ' . pg_last_error()); | ||
if($result){ | ||
echo 'success'; | ||
} | ||
else { | ||
echo 'error'; | ||
} | ||
|
||
for($i=0; $i < count($skills); $i++){ | ||
$query2 = "INSERT INTO public.skills(photographer_id,skill_name,strength) VALUES ('$photographer','$skills[$i]','$percs[$i]')"; | ||
$result2 = pg_query($connection, $query2) or die('Query failed: ' . pg_last_error()); | ||
if($result2){ | ||
echo 'success'; | ||
} | ||
else { | ||
echo 'error'; | ||
} | ||
} | ||
|
||
pg_close($connection); | ||
// echo 'success'; | ||
} | ||
?> |
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
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
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
Oops, something went wrong.