39,323 Topics

Member Avatar for
Member Avatar for James_43

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, …

Member Avatar for jj.dcruz
0
300
Member Avatar for ramsiva

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; …

Member Avatar for DaveAmour
0
178
Member Avatar for kajuu

hello everyone, i want chage stone and metal of selected ring in php and that changes are requred to save . plz help me

Member Avatar for broj1
0
36
Member Avatar for ribrahim

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 …

Member Avatar for ribrahim
0
322
Member Avatar for Ravenous Wolf

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 …

Member Avatar for abexer
0
419
Member Avatar for ramsiva

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()); …

Member Avatar for ramsiva
0
229
Member Avatar for Andrew_23

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 …

Member Avatar for Andrew_23
0
156
Member Avatar for chaitu11

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 | --------------------------------------------------------------------------- …

Member Avatar for diafol
0
2K
Member Avatar for bolfescu

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

Member Avatar for broj1
0
383
Member Avatar for Kamal_6

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 …

Member Avatar for cereal
0
137
Member Avatar for Kamal_6

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 …

Member Avatar for cereal
0
168
Member Avatar for duchaine

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 = …

Member Avatar for rubberman
0
263
Member Avatar for fireburner29
Member Avatar for Bile

--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 …

Member Avatar for Bile
0
6K
Member Avatar for developer707

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 …

Member Avatar for cereal
0
357
Member Avatar for robertkt6

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: …

Member Avatar for robertkt6
0
223
Member Avatar for ramsiva

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

Member Avatar for DaveAmour
0
153
Member Avatar for centenond

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 = …

Member Avatar for Gaurav_20
0
927
Member Avatar for phoenix254

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!!!

Member Avatar for cereal
0
649
Member Avatar for berserk

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 …

Member Avatar for berserk
0
383
Member Avatar for SimonIoa

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 …

Member Avatar for SimonIoa
0
491
Member Avatar for UK-1991

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 …

Member Avatar for UK-1991
0
163
Member Avatar for mgreiner28

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 …

Member Avatar for mgreiner28
0
331
Member Avatar for ramsiva

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; ?>

Member Avatar for ramsiva
0
160
Member Avatar for phoenix254

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());}

Member Avatar for pritaeas
0
176
Member Avatar for Saqoom

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 …

Member Avatar for almostbob
0
122
Member Avatar for rjgapz

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, …

Member Avatar for DaveAmour
0
153
Member Avatar for ramsiva

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); …

0
88
Member Avatar for rjgapz

$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 …

Member Avatar for rjgapz
0
124
Member Avatar for siralv1

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 …

Member Avatar for siralv1
0
200

The End.