39,316 Topics
| |
I the objective of the code that I attached this note is to Collect data in a form. Post to a PHP file where the collected information is turned into a JSON Write the JSON information to a file Return the JSON and print it to the an ID in … | |
$result = mysqli_query($con,$addtothedb); $cur = "USERS/"; echo $des = $cur.$email.'/'; if($result){ if ( mkdir($des,0777) ) { //http://pastebin.com/7J0BM5fD echo "<br/>"; echo "<br/>"; echo $file_name = $_FILES['file']['name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; echo $file_tmp =$_FILES['file']['tmp_name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; move_uploaded_file($file_tmp, $des.$mfix); echo "<img src='<?php echo $mfix ;?>' alt='Image' style='width:100px;height:100px'>"; /*echo "<img … | |
hello guys i'm new in php programming, currently i'm developing simple student information system, but whenever i try to populate school name and school code, i face this problem You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right … | |
Hi, I am displaying brochure from db under that there is a link for all ,called download, if i click that link I want to download, which I clicked, | |
Hi.. I am using Google map to show the route path between the longitude and latitude points. Here the default stroke color of the route path is blue. I want to set it into different colors. That is,from point A to B is reb,B to C is green,C to D … | |
I have some break times available in my module. In one for loop i need to remove break times. I have three break times 11:30 am to 11:45 am and lunch break 01:30 pm to 02:30 pm and tea break 04:30 pm to 04:45 pm <?php $start = new DateTime("09:30 … | |
Hello, I am wanting to collect the IP address of anyone that visits my site and submits a form (Saving it to my DB). I have been researching this and have found the following: ` <?php if (getenv('HTTP_X_FORWARDED_FOR')) { $pipaddress = getenv('HTTP_X_FORWARDED_FOR'); $ipaddress = getenv('REMOTE_ADDR'); echo "Your Proxy IP address … | |
Hello again. I have insert title, author and content data into table with admin-are page and now want to create a user-view-page.php that everybody enter into that page and see all posts one after an other, something like this model: first title by first author first content seconr title by … | |
i am new to php i need to create php code for automate monthly wise uploads files 2014 under sub category like months january(2014) under this uploads are grouped january month for example http://www.journalijdr.com/past-issue | |
<?php $con=mysqli_connect("localhost","root","","uplod"); if (mysqli_connect_error()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else{ echo work $sql ="UPDATE tea SET name = ' 8req' WHERE id = '3 ' "or die ("cant update" . mysql_error()); if($sql) echo"working"; } ?> Who can tell me which is error is the … | |
Hello, I want to check difference between 2 arrays I have two array with key value pair. I want to check diff between these two. If there is diff then I will insert. But in some cases, i have extra size in any one of arrays or both array can … | |
I'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help | |
I currently have a search form on one page that will look up various restaurants within city limits. Once submitted, you will be directed to a second page with the results displayed within a table. I need to filter based on the results that are produced from the overall search … | |
Hello, I am currently using bound parameters in regards to user input on my form. I have read about escape strings also and thought of using both together. Is this possible and, importantly, is it necessary considering I am already using bound parameters? I would like to use both. Thank … | |
I want to Create a Forum For My Project But I don't Know The Process And Please Suggest Me Any Free Template Thank You | |
My PHP code starts like this, <?php // Standard Receipt Data $amount = null2unknown($_GET["vpc_Amount"]); $vpc_message = null2unknown($_GET["vpc_Message"]); $cardType = null2unknown($_GET["vpc_Card"]); $receiptNo = null2unknown($_GET["vpc_ReceiptNo"]); $merchTxnRef = null2unknown($_GET["vpc_MerchTxnRef"]); $transactionNo = null2unknown($_GET["vpc_TransactionNo"]); $txnResponseCode = null2unknown($_GET["vpc_TxnResponseCode"]); $authorizeID = null2unknown($_GET["vpc_AuthorizeId"]); I checked the previous pages for these GET variables ie., vpc_Amount etc., but I could … | |
This is a novice question and I hope some one can help. So far I have written 2 forms and a 3rd file. The first pulls every record from a table where the user can choose to modify a particular record. On the second form the user modifies the record … | |
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 | --------------------------------------------------------------------------- … |
The End.