39,323 Topics
| |
Hi all, I am trying to populate text on my website from data stored in a MySQL database. I have this script before the <head> of my HTML to establish the connection: <?php $username = "USERNAME"; $password = "PASSWORD"; $hostname = "127.0.0.1:3306"; //connection to the database $dbhandle = mysql_connect($hostname, $username, … | |
Any body help me to get click value in another page using sessions my code is <table class="table table-condensed"> <thead> <tr> <th>S No</th> <th>Student Name</th> <th>Standard</th> <th>branch</th> <th>Action</th> </tr> </thead> <tbody> <?php $candarr=explode(",",$cand_id_mul); $count=count($candarr); for($i=0;$i<$count;$i++){ $cand_id=$candarr[$i]; $rt=mysql_query("select * from candidate where cand_id='$cand_id'")or die(mysql_error()); $count_rt=mysql_num_rows($rt); while($row_rt=mysql_fetch_array($rt)) { $cand_id=$row_rt['cand_id']; $_SESSION['cand_id']=$cand_id; echo $cand_id; … | |
hello everyone, i want chage stone and metal of selected ring in php and that changes are requred to save . plz help me | |
Dear Sirs, I have two tables (Clients and Country), my below php code is for creating a new client with a dropdown box from country to insert the id_country into clients table. When click add new nothing added to table clinets: any help please: <?php $jsFile = 'newClient'; // Add … | |
i would like to know if php can replace javascript as a client side script. one can use javascript to do all kinds of things like computing values in textboxes and check them for errors and so on. is it possible to use php in its stead? lets say i … | |
Any body help me. I am getting Notice: A session had already been started - ignoring session_start() in C:\xampp\htdocs\ramu\Online Admission\multicand.php on line 78 <table class="table table-condensed"> <thead> <tr> <th>S No</th> <th>Student Name</th> <th>Standard</th> <th>branch</th> <th>Action</th> </tr> </thead> <tbody> <?php $candarr=explode(",",$cand_id_mul); $count=count($candarr); for($i=0;$i<$count;$i++){ $candunique=$candarr[$i]; $rt=mysql_query("select * from candidate where cand_id='$candunique'")or die(mysql_error()); … | |
| Hi, Im creating a website and i basically need to do the following. I have a drop down menu with names in it. What I need is on the selection of one of those options in the drop down menu, that information which is wriiten into the drop down menu … |
I am using codeigniter 3 And i am trying to build stay signing functionality In hash_hmac() i am passing an array , but i want to convert it into a string , Can any one tell me how to convert it? /* | --------------------------------------------------------------------------- | REMEMBER ME TOKEN | --------------------------------------------------------------------------- … | |
Hy i'm using php excell to export some data from my db, one of the collum have full path of a image, instead of show me the path it is possible to make a link? like <a href="row[photo]">Link</a> ? i've tryied to search but nothing...i'm using the lasted phpexcell class | |
hi, i am a begineer in php, i have written the below code to upload all file type except executable file (.exe file), but whenever i run it in web browser like mozzila it works for me but whenever i try it in google chrome it does not work i … | |
Hi, i am a beginer in php, before few days back i learned about file uploading in php, but i tried a lot ot run the progarm in browser but it shows warning messesege : **Warning: POST Content-Length of 39895242 bytes exceeds the limit of 8388608 bytes in Unknown on … | |
Hi!, Need a little help... thanks in advance!!!! Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/exponentialprofi/public_html/affiliates/topreferrals.php on line 22 (code in question) <?php $dsplynumreftop="5"; $qryreftop = "SELECT usrnam, (usrpoints + usrpointsindirect) AS maxpoints FROM scraffiliateusr ORDER BY maxpoints desc"; $rslreftop=mysql_query($qryreftop); //$arrreftop = mysql_fetch_row($rslreftop); $nreftop = … | |
Hi there, How to add flat rate for specific category in opencart? | |
--Hi Daniweb. 1st of all I apologize if I'm asking this Qn. in a wrong place,but as I came across this subject while I'm doying PhP code and so I thought I'd share it here as I hope someone may be came across the same scenario as I have. The … | |
Hello, Currently I am using my computer as a webserver, as I own an IP I have made the config to access it from outside. So now I can access my php sripts via http://MY_PUBLIC_IP:PORT/site.php The weird thing is that I cant get the visitors IP This script is working … | |
My code is <script type="text/javascript" language="javascript"> function displayHideBox(boxNumber) { if(document.getElementById("LightBox"+boxNumber).style.display=="none") { document.getElementById("LightBox"+boxNumber).style.display="block"; document.getElementById("grayBG").style.display="block"; document.getElementById('t').value; } else { document.getElementById("LightBox"+boxNumber).style.display="none"; document.getElementById("grayBG").style.display="none"; } } </script> <style> .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: fixed; /*top: 55%; left: … | |
I am facing problem for getting the value of after decimal <?php $a=5.4243423; $c = round($a,1); echo $c; ?> Out put is 5.4 How to get 4 value? Any body help me to get after decimal value | |
Sessions wont work on ipage, I know there are post like this all over internet but i did try all the answers and nothing seems to work i tried this.. session_save_path("your home directory path"/cgi-bin/tmp); session_start(); tried changing the value of session.save_path from php.ini session.save_path = "N;/path" To this session.save_path = … | |
I am trying to creating a website, i want to know which of these function is more secure to upload the image on database ? 1.) getimagesize 2.)get_file_contents 3.)cURL Thanks a lot!!! | |
Im sure this question has been asked before but i cannot seem to get what i need working right for me. i need this ajax to process my php form, i got that for, at least i think. I wrote some ajax to do this and it WILL at least … | |
Hello i 'd like to post something because i believe its right but for some reason it doesnt work... I d like to make a link that gets the ID from the url and then displays data the url returns as wanted e.g. localhost/rove/login/php?showallphoto=536 so they is no need to … | |
Hello, I have a question in my mind whene ever we create a login page why we store the variables in $_SESSION why is this done so my senior developer told me when recently i was creating cms in which I created 1 admin and 1 user page he sent … | |
How can I add a filter option to be displayed only when the table displays more than 25 results. So when the table displays less than 25 results, the filter option will also no longer be displayed. <div class="container"> <div class="row"> <div class="col-md-6"> <h2> Dicey Dining Results</h2> </div> </div> <?php … | |
I am not getting the totalapps any body help me <?php $event_time = "9:30 am"; $end_time="11:00 am"; $event_length = 4; $dtime_1 = new Datetime($event_time); $dtime_2 = new Datetime($end_time); $diff = $dtime_1->diff($dtime_2); $hourone=$diff->format('%H'); $minuteone=$diff->format('%I'); $hourtotalmin=$hourone*60; $totalmin=$minuteone+$hourtotalmin; $totalapps=$totalmin/$event_length; echo $totalapps; ?> | |
if ($count == 1){ $suc= move_uploaded_file($file_tmp, $destin.$file_name); echo"<br/>"; $query = mysqli_query($con,"INSERT INTO login ( profile_img) VALUES ('$file_name') WHERE useremail='".$_SESSION["sess_useremail"]."'") or die("can t still upload ".mysql_error());} | |
A) Create an associative array called cars. The array should hold information about some cars. Each array key represents the car registration number and its associative value contains a numeric array of size 4 that holds car model name, mileage, number of accidents and car colour respectively. [Create at least … | |
function getAllReferrals(){ $sql = "(SELECT r.referral_date,c.lastname,c.middlename,c.firstname,c.gender,r.presenting_problem,e.employee_nickname AS nickname FROM CLIENT c INNER JOIN referral1 r ON c.referral_id = r.referral1_id INNER JOIN assign_psychotherapist ap ON ap.a_referral_id = c.referral_id INNER JOIN employee e ON ap.a_psychotherapist_id = e.empid WHERE r.referral_status ='Assigned' OR r.referral_status ='Accepted' ORDER BY referral_date DESC ) UNION ALL (SELECT r.referral_date,c.lastname,c.middlename,c.firstname, … | |
Some times getting NAN error and total minures divisible by prime getting invalid output Any body help me <html> <head> </head> <body> <!DOCTYPE html> <?php $event_time = "9:30 am"; $end_time="11:00 am"; $event_length1 = "25"; $event_length=(int)$event_length1; echo $event_time."<br>"; echo $end_time."<br>"; $dtime_1 = new Datetime($event_time); $dtime_2 = new Datetime($end_time); $diff = $dtime_1->diff($dtime_2); … | |
$sql = (" SELECT referral1.*, client.*, employee.* FROM ( select r.referral_date,c.lastname,c.middlename,c.firstname,c.gender,r.presenting_problem,e.employee_nickname from client c inner join referral1 r on c.referral_id = r.referral1_id inner join assign_psychotherapist ap on ap.a_referral_id = c.referral_id inner join employee e on ap.a_psychotherapist_id = e.empid where referral_status ='Assigned' OR referral_status ='Accepted' order by referral_date desc ) as … | |
Hi guys Need help with my php booking form code.... basically when the customer selects a particular activity the database checks for the value assigned to that activity for example in my database ive assigned football and basketball with the value of 4 badmington, tennis and table tennis with the … |
The End.