39,393 Topics

Member Avatar for
Member Avatar for Stephano

Iam using gravity forms. I have a registration form that people fill in,the form has both entry fields and drop down fields. i want to capture the entries that they enter in the drop down fields because there is another form that has similar fields, and would not want them …

0
74
Member Avatar for anmol.raghuvanshi1

hello,everyone i am trying to access user id from database in session data but no success till now?? //Controller function upload() { $user_id = $this->session->userdata('user_id'); //set preferences $config['remove_spaces']=TRUE; $config['encrypt_name'] = TRUE; // for encrypting the name $config['upload_path'] = './upload/'; $config['allowed_types'] = 'jpg|png|gif'; $config['max_size'] = '10248'; //load upload class library $this->load->library('upload', …

Member Avatar for lps
0
2K
Member Avatar for UK-1991

Hello, I tried to create a gallery using php admins can upload multiple images all the images are uploading correctly like the image is saving in the database as much as I can but the problem is that the image is saving once in the folder Like loop runs images …

Member Avatar for lps
0
245
Member Avatar for lloyd.farrell.7

Hi everyone - Just a quick request for help please, I am trying to add two additional country codes to the following if statement. if ($country_code == "GB"){ I would like to add or "sct" or "wls" - But everytime I try I get error messages... Sorry if its a …

Member Avatar for lloyd.farrell.7
0
86
Member Avatar for javaid97

Hi, If anybody want to test simple email online form, here is a sample: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Test php mail</title> </head> <body> <?php $to = "example@example.com" . ", "; //writing mail to the user $subject = "mailer"; …

Member Avatar for javaid97
-1
212
Member Avatar for kyupa.suria

.............................. <form action="introducere.php" method="POST" enctype="multipart/form-data"> .............................. <td>Picture 1:<input id="picture1" name="picture1" type="file"><br> Picture 2:<input id="picture2" name="picture2" type="file"><br> Picture 3:<input id="picture3" name="picture3" type="file"> </form> .............................. **introducere.php** ............................ if(isset($_FILES['picture1'])){ $file = $_FILES['picture1']; $file_name = $file['name']; echo $file['name']; $picture1 = $file['name']; if(!$picture1){//if no picture browsed $picture1="NULL"; } } if(isset($_FILES['picture2'])){ $file2 = $_FILES['picture2']; $file_name2 = …

Member Avatar for pritaeas
0
325
Member Avatar for Hendo

Sorry, not sure how to even word the article title...it's been so long since I did HTML or PHP. I have a small web page that I wrote several years ago. It's all HTML/CSS with one segment of PHP that is used to call to my database to populate scores …

Member Avatar for Hendo
0
198
Member Avatar for Aeonix

I'd like to create `/admin.php` page, which would have AJAX request, sent over to `/core/adm/index.php`, that's easy, basic AJAX request will do just that. But I don't want any direct access to `/core/adm/index.php`, I want it to be accessed only by AJAX request from `/admin.php`. Is there a way to …

Member Avatar for Aeonix
0
230
Member Avatar for Aeonix

$replacedString = str_replace(array_keys($array1), $array1, $externalVariableString); I have an entire array above that called `$championToIdConversionArray`, it has about 650 switches, it looks something like this $array1 = array( "1" => "Banana", "12" => "Monkey", "2" => "Apple", "121" => "Human" ); Now if I let script parse numbers "121", it won't …

Member Avatar for Aeonix
0
190
Member Avatar for elbren

# my Form # <form role="form" method="post"> <div class="form-group"> <label for="email">Email address:</label> <input type="text" class="form-control" id="email" name="email"> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="text" class="form-control" id="pwd"> </div> <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal" name="submit">Submit</button> </form> # my Modal # <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- …

Member Avatar for Aeonix
0
582
Member Avatar for hell hansen

Hi guys! Im trying to get the ighest value from any array coming from mysql query. What i've till now is it! class vfsClass{ function localvfs() { try { $sql = $this->link->prepare("select Vfs_ID from tbl_track order by id asc"); $sql->execute(); $rs = $sql->fetchAll(PDO::FETCH_ASSOC); return $rs; } catch (PDOException $e) { …

Member Avatar for hell hansen
0
2K
Member Avatar for praba_web

How to make pagination in slim framework? i have list of deals. I have to set pagination for deal listing.

Member Avatar for cereal
0
347
Member Avatar for chaitu11

<div class="hor-menu "> <ul class="nav navbar-nav"> <li class="active"> <a href="index.html">Dashboard</a> </li> <li class="menu-dropdown mega-menu-dropdown"> <a data-hover="megamenu-dropdown" data-close-others="true" data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"> Categories <i class="fa fa-angle-down"></i> </a> <ul class="dropdown-menu" style="min-width: 710px"> <li> <div class="mega-menu-content"> <div class="row"> <div class="col-md-4"> <ul class="mega-menu-submenu"> <li> <h3>Level 1</h3> </li> <li> <a href="add_category.php" class="iconify"> <i class="icon-plus"></i> Add Categories …

Member Avatar for jkon
-2
3K
Member Avatar for SimonIoa

Hello, i have a problem with a variable i use to call a statement. The statement its ok, returns data from database as wanted, i checked it on phpmyadmin. I think that the problem is on the variable. Here is the code $select =mysqli_query($db,"SELECT * FROM table WHERE row is …

Member Avatar for SimonIoa
0
220
Member Avatar for Stefce

I have a problem with this code and i really can't understand what is it.. i have unique ID for every ticket and it works good but i have made a button to open a `modal (#myModal)` and from there to send the ticket to some username but the problem …

Member Avatar for jkon
0
1K
Member Avatar for gkumaravel

Hi, I want to run php function using jquery ajax, Task is i have two dropdown(html select) **Filter_by_class.php** <form action="filter.php" method="POST" id="filter_students_form"> <div class="field"> <label for="stud_class_filter" class="cbx-lbl lbl-width">Select Class</label> <span class="dbl-dote">:</span> <select name="studclass_filter" id="stud_class_filter"> <option value="">-- SELECT STUDENT CLASS --</option> <?php if ($getStudentClass = $db->query("SELECT * FROM classes")) { if …

0
183
Member Avatar for دليل تطبيقات

i want to know the error in this code <?php $firstname = $_POST ['firstname']; $lastname = $_POST ['lastname']; $pass1 = md5($_POST['pass1']); $pass2 = md5($_POST['pass2']); $email = $_POST ['email']; // filters name function filtername ($field) { $field = filter_var(trim($field), FILTER_SANITIZE_STRING); if (filter_var($field, FILTER_VALIDATE_REGEXP, array ("options"=> array ("regexp"=>"/^[Z-zA-Z\s]+/")))) { return $field; } …

Member Avatar for broj1
0
258
Member Avatar for Ritika_1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form name="entry" method='post' action=""> <label>NAME </label> <input type="text" /></br></br> <label>mobile</label> <input type="text" /></br></br> <input type="submit"/> </form> </body> </html> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = …

Member Avatar for diafol
0
268
Member Avatar for saravanan369

In my project the client pay money to admin using paypal system . sometimes Admin need to return back some amount to the user .now my client ask us to done it systamatically .is it possible ? please advise on this

Member Avatar for saravanan369
0
134
Member Avatar for mark103

Hi guys, I am working on my PHP script as I want to add the value in the variable to add it to 5 hours forward. When I use this: <?php $links = $row['links']; $html = file_get_html($links); $base = $row['links']; $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, …

Member Avatar for jkon
0
199
Member Avatar for دليل تطبيقات

Hello i want to know how create form signup php&mysql And how security form for inpot with insert data in database 1- firstname 2- lastname 3 -password 4- ُEmail

Member Avatar for diafol
0
121
Member Avatar for Mohammad_20

Dear All help me pls.. i am unable to fetch result in dropdown from database... connection.php $db = new PDO("mysql:host=localhost;dbname=test","root",""); ----------------------------------------- Add_student.php <tr> <th>City</th> <td><select name="st_city" id="st_city"> <?php echo get_option_list("city","City_id","City_name"); ?> </select> </td></tr> ----------------------------------------- functions.php function get_option_list($table,$id,$name) { $SQL=$db->query("SELECT * FROM ".$table." ORDER BY". $name); $get_list="<option value=0>Please Select</option>"; while($row=$SQL->fetch(PDO::FETCh_ASSOC)) { …

Member Avatar for diafol
0
218
Member Avatar for mangel.murti

id,ancestor,descendant,lvl,tier_id 1, 11, 11, 0, 0 2, 11, 65, 1, 1 3, 65, 65, 0, 0 5, 11, 66, 1, 2 6, 66, 66, 0, 0 i am using closure table model. i placed tier_id cloumn there. let say new entry save in above table then tier_id should be placed …

Member Avatar for diafol
0
554
Member Avatar for divyakrishnan

Hi All, I am using php to create a Webservice API calls. I am checking all the service calls in Chrome's Postman and sending the data in JSON format. I want to upload an image in JSON format with other datas.Actually I have converted the image to base64 before uploading.Its …

Member Avatar for cereal
0
2K
Member Avatar for javadb9

I want to fetch Students results from this site http://202.63.105.206:8585/JNTUHResults/PortalGUI/Results/StudentResult.aspx?result=10224 1.I want to create a script ,which reads all Roll No Values(from a file) one by one and save the result in any format. 2.This script should always return same Date of Birth Value 3.This Script should copy the captcha …

Member Avatar for diafol
0
103
Member Avatar for brispea

hello daniwebers... I am really stuck with this design of tables for calendar. Here is the thing...there are employees in a specific company. Each employee accepts customers of the company per day. The number of customers is limited by the doctor on a day by day basis. So for e.g. …

Member Avatar for mattster
0
315
Member Avatar for praba_web

Hi there, my table fields are. id mobile email date. Here mobile and email should be unique. How to check exisitng email and existing mobile number in php. i want to put the message separately. this is what i done . public function createUser($name, $email, $password, $mobile_no) { $response = …

Member Avatar for cereal
0
255
Member Avatar for LRNPHP

Hi There, I'm checking if I can get all the occurrences of a variable in a php file. What will the best and easest method be? Any help is greatly appreciated. Regards

Member Avatar for LRNPHP
0
418
Member Avatar for Ventech_IT

Hi i am currently building a admin section for my website but i am stuck at a certain point, right now my user authentication is working and my form validation is working great, when i log in as admin i want it to display the admin dash and when a …

Member Avatar for diafol
0
271
Member Avatar for kannasekar

Hi I am newbie to PHP. I just wanted to create a registration page for students. In that page I've populated checkboxes for students who wants to enroll more than one classes. Everything got done. But I'm stuck with the final phase of this idea. I just wanted to save …

Member Avatar for kannasekar
0
297

The End.