Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~15.4K People Reached
Favorite Tags
Member Avatar for johnef_sh

I am inserting answer of each of my questions I need to get the question id and inserted into the answer table see my code <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" id="quiz" class="container width_648"> <?php $getTheQuiz = $db->prepare("SELECT * FROM rec_employer_quiz WHERE ad_id=?"); $getTheQuiz->bind_param('i', $ad); if ($getTheQuiz->execute()) { $res = $getTheQuiz->get_result(); …

Member Avatar for johnef_sh
0
672
Member Avatar for johnef_sh

I am using PHPASS to store password encrypted and compare when login. here is the code ob_start(); $userName = $password = ""; $userNameErr = $passwordErr = $loginErr = ""; $hasher = new PasswordHash(8, false); if (isset($_POST['subEmployee'])) { if (empty($_POST['user_name'])) { $userNameErr = "User name is required"; } else { $userName …

Member Avatar for diafol
0
243
Member Avatar for johnef_sh

I am try to figure out how to check current time against time in database and header the user to "expired page" if the current time is greater than the one in database "1 hour" $email = $token = $check_time = ""; $crossToken = $db->prepare("SELECT email, token, check_time FROM pw_reset_company …

Member Avatar for johnef_sh
0
270
Member Avatar for johnef_sh

I want if the user clicks submit to return the the selected value when the form reloads that what I try and no luck <?php $getData = $db->prepare("SELECT * FROM first_university_degree_list"); if ($getData->execute()) { $res = $getData->get_result(); while ($data = $res->fetch_array()) { ?> <option value="<?php echo $data['univ_degree']; ?>" <?php if($FirstUniversityDegree …

Member Avatar for almostbob
0
200
Member Avatar for johnef_sh

I am trying to validate my form fields and redirect the user to success page so this is the PHP code if (empty($_POST['experiences'])) { $error['experiencesErr'] = "Experiences Required"; } else { $experiences = check_input($_POST['experiences']); if (!preg_match("/^[0-9_a-zA-Z ]*$/", $experiences)) { $error['experiencesErr'] = "Only letters, numbers and '_' allowed"; } } $courses …

Member Avatar for johnef_sh
0
276
Member Avatar for johnef_sh

I need to upload 5 images at ones with they labels I have made this before to upload many images at one it works fine but I need to have an label for each image how this can be done take a look at my code. this is the HTML …

Member Avatar for Mike_danvers
0
473
Member Avatar for johnef_sh

I am working on a Google Map api3, I am adding points on the map and save it to my database this part is working fine now in the end of adding the map and click on save and close I need to redirect to another page which will tell …

Member Avatar for johnef_sh
0
247
Member Avatar for johnef_sh

I am trying to use PHP with Google map JavaScript this is my JavaScript code I have with the PHP the file name is face.php <?php if(isset($_GET['p'])){$p=$_GET['p'];} ?> <!DOCTYPE html > <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Property Map</title> <link rel="stylesheet" href="../../../../css/960.css" type="text/css" media="screen" charset="utf-8" /> …

Member Avatar for johnef_sh
0
1K
Member Avatar for johnef_sh

hi I using PHP/MySQL with Google Maps from here https://developers.google.com/maps/articles/phpsqlajax_v3 and then I used PHP's DOM functions to Output XML from here https://developers.google.com/maps/articles/phpsqlajax_v3#outputxml everything working fine with me but I need to center google map on the marker. here is the code that center the map and make the zoom …

Member Avatar for johnef_sh
0
9K
Member Avatar for johnef_sh

0 down vote favorite I am trying to share my products image on Facebook but somethings gos wrong with the URL of the products I used this code on the header of the page (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id …

Member Avatar for johnef_sh
0
293
Member Avatar for johnef_sh

I have many pages which has the same form so I made a page called contactsGo.php and all the forms on the other pages should send to this page what I need is to redirect from contactsGo.php to each page sent the form this is my code <?php $name=$_POST['name']; $email=$_POST['email']; …

Member Avatar for diafol
0
419
Member Avatar for johnef_sh

I am trying to upload multi-images I am using this script everything is fine and the images uploaded successfully the problem here is I don't want to duplicate the images name so I used this script to avoid this but no luck any idea this is my code <?php if(isset($_POST['submit'])){ …

Member Avatar for anas.man
0
262
Member Avatar for johnef_sh

hay I have this code to upload images it works OK bu there is 2 things not working 1- when the image has the same name it doesn't display the message "A file of the same name already exists" it just give me this Notice "Notice: Undefined variable: success in …

Member Avatar for LastMitch
0
306
Member Avatar for johnef_sh

hay how is everybody here, I have this form which should sign up users and send email to them to confirm they emails the users sign up OK but the Email don't go at all to the users email see my code and please need help on this. <?php if(isset($_POST['submited'])) …

Member Avatar for johnef_sh
0
250
Member Avatar for johnef_sh

Hey, I'm running a mysqli query, and would like to run a script if the query returns no results. this is my code <?php $SM_pro_info="SELECT * FROM special_marketing_ads ORDER BY id desc LIMIT 4"; $QSM_pro_info = $db->query($SM_pro_info)or die($db->error); $SM_pro=mysqli_fetch_array($QSM_pro_info); if($SM_pro){ while($SM_pro=$QSM_pro_info->fetch_object()){ ?> <table width="208" border="0"> <tr> <td width="129" height="35" align="right"><span …

Member Avatar for phorce
0
567
Member Avatar for johnef_sh

Hay everybody, I have this Form I am trying to upload my image but every time I do "update" the page return normal and nothing uploded to my folder "ProfilesImages" where is my fault. if(isset($_POST['update'])){ $ProfileImage = $_FILES['ProfileImage']['name']; $Fname = clean_text($_POST['Fname']); $Lname = clean_text($_POST['Lname']); $Uemail = $_POST['Remail']; $Uwebsite = $_POST['website']; …

Member Avatar for blocblue
0
98
Member Avatar for timwhelan

I am trying to build a query that will display the Amount of people that signed up in a certain month. I am adding the date_time to the database at the time someone signs up for a course. I want to display the months and total sign-ups for the month. …

Member Avatar for johnef_sh
0
538