38,020 Topics

Member Avatar for
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
178
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
257
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
264
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
132
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
194
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
116
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
217
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
551
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
101
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
305
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
253
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
414
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
263
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
289
Member Avatar for Lau_1

I have no idea how to open extra chat box if room_id record more than 1 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin</title> <script type="text/javascript" src="js/jquery-1.9.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // load messages every 1000 milliseconds from server. (1 second = 1000milliseconds) var roomID = $('#room_id').val(); load_data …

0
103
Member Avatar for Lau_1

Sorry, may i know what is the problem? load_data = {'fetch':1}; window.setInterval(function(){ $.post('shout.php', load_data, function(data) { $('.message_box').html(data); var scrolltoh = $('.message_box')[0].scrollHeight; $('.message_box').scrollTop(scrolltoh); }); }, 1000); $("#shout_message").keypress(function(evt) { if(evt.which == 13) { var iusername = $('#shout_username').val(); var imessage = $('#shout_message').val(); var roomID = $('#room_id').val(); post_data = {'username':iusername, 'message':imessage, 'roomID':roomID}; //send data …

Member Avatar for Lau_1
0
372
Member Avatar for Ventech_IT

Hi for some reason i keep getting a parse error when i try to load my view could someone tell me why it says unexpected end to file on line 20 <section id="login-landing" class="block block-gray"> <div class="container"> <div class="card card-container wow zoomInUp animated"> <a href="<?php echo base_url()?>"> <img id="profile-img" class="profile-img-card" …

Member Avatar for lps
0
281
Member Avatar for دليل تطبيقات
Member Avatar for abhi10kumar

Is it possible to connect USB device in the HTML page? If yes then How I can? I want to integrate Boogie Board into a dynamic page with a question.

Member Avatar for abhi10kumar
0
128
Member Avatar for UK-1991

Hello the valuies are not echoing when I am out side the loop <?php if(isset($_GET["catid"])) { $catid = $_GET["catid"]; $query_cat = mysqli_query($connection, "SELECT * FROM category WHERE cat_name='$catid'"); while($row = mysqli_fetch_assoc($query_cat)) { $h1 = $row["h1"]; $h2 = $row["h2"]; $span = $row["span"]; $catslide = $row["cat_slider"]; $ct_name = $row["cat_name"]; } ?> <div …

Member Avatar for diafol
0
149
Member Avatar for kannasekar

First of all I confess I am very new to PHP programming. Here is my problem. I just wanted to create a registration page for students. In that I need to populate the classes which the students want to enroll in checkboxes from database(because a student can enroll n number …

Member Avatar for kannasekar
0
179
Member Avatar for UK-1991

I created an add to cart function but not working properly on submit i see these errors on the place of product details Notice: Undefined variable: product_id in C:\wamp\www\connectdemo\product_details.php on line 218 etc etc.... product_details.php <?php session_start(); include_once("includes/layout/header.php"); include_once("includes/connection.php"); include_once("includes/functions.php"); if(isset($_POST["addtocart"])) { $pid = $_POST["productid"]; $prod_name = $_POST["productname"]; $prod_price = …

Member Avatar for cereal
0
273
Member Avatar for دليل تطبيقات
Member Avatar for Mark Christian

Hello there.. I am currently working with the referral program and I have a page wherein it displays all the personal information of a person who referred by the user login.. I have 2 functions for displaying the records.. Number 1 is just displaying the records when you go to …

Member Avatar for Mark Christian
0
1K
Member Avatar for Joe_10

I am trying to use pdo to update a database, the code is not returning any errors but the code does not work. Logic is the user would enter in user id and then a new location hit submit and the location would be updated. Here is the form code …

Member Avatar for Joe_10
0
304
Member Avatar for OsaMasw

hello guys, I know you may heard about Telegram bot API, and I want to use their API to send texts and photos, telegram API differs from bots API here is the full document about API https://core.telegram.org/bots/api I want to send photo using curl but its fail always, sending text …

Member Avatar for cereal
1
7K
Member Avatar for Thawdarwin

function Dot2LongIP (IPaddr) if (IPaddr == "") return 0; else $ips = explode(".", IPaddr); return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]*16777216);

Member Avatar for diafol
0
114
Member Avatar for davy_yg

Hello, How to fix this error? Array ( [application] => Array ( [nama] => John [sex] => Pria [food] => Array ( [0] => ayam [1] => bebek [2] => nasi ) ) ) Notice: Undefined offset: 3 in C:\xampp\htdocs\latihan2\print4.php on line 44 latihan4.php <html> <br><br> <?php echo "Current php …

Member Avatar for lps
0
151

The End.