39,326 Topics
| |
My memory informs me that this is the third time I have tried to upgrade to a 5.3 version of PHP and failed. As best as I can tell, I am not downloading the correct combination of PHP and most likely the Apache server to get a working developing environment. … | |
hya im following a tutorial through a video and im having issues in the following line its showing a error in my editor $pm_ui .= '<button id="pmBtn" onclick="postPm(''.$u.'',''.$log_username.'','pmsubject','pmtext')">Send</button>'; see full code below including this line if anyone can help be much appreciated <?php // Protect this script from direct url … | |
<a data-toggle="modal" data-id="<?php $row_dtodaytransferRecordset1['id'];?>" href="#mymodal" class="open-dialog btn btn-primary btn-xs" data-target="#myModal" >view passengers</a> <!-- pop up starts here for view passengers --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <?php $id = $row_dtodaytransferRecordset1['id']; mysql_select_db($database_cn, $cn); $query_paxRecordset1 = "SELECT … | |
I am working on a website which has English and Hindi both versions. Firstly tell me the way to create site in Hindi-- in that i also need the information about which Hindi font will support the internet explorer. Thanks in advance dear. | |
I have database 'website' having fields - title, url, snapshot to collect information of websites . Users will fillup the form so, There is no file input for fileupload. Form have inputs for title & url. How to generate snapshot using 'imagegrabwindow' or other php functions for given url? How … | |
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());} |
The End.