39,326 Topics
| |
Hi everyone, I have a submit form on my website that display's to the user once is has been submitted, The problem I have is the text is being displayed as Chris & Amy\'s 30th It should be displayed as Chris & Amy's 30th What is the best way to … | |
how to use php variable as a html variable? <?php $num=array(); for($i=0;$i<5;$i++) echo '<input type="number" name="$num[$i]">'; ?> i need to display the inputted number in the array. it's not working. please help | |
I have a simple form that I want the user to input their name and submit a picture. The name user name and photoname will goto the database. The form submits to the database, and fileuploads and renames correctly. My issue is how to I return the renamed filename to … | |
Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with … | |
how can i pass the value of $lat and $long in the while loop going to the script for googlemap.. kindly see the code below; while($row = mysqli_fetch_array($query)){ $station = $row['STATION']; $pei = $row['PEIS']; $pga= $row['PGA']; $pgv= $row['PGV']; $lat = $row['LAT']; $lon = $row['LON']; } <script> function initMap() { var … | |
hi So ive deployed a small website i worked on, and before deployemnt on Amazon web services, i was of course testing everything on localhost. after seeing that things are working on localhost, i changed the localhost to the deployment link provided on AWS and things looked fine and all … | |
Hello, I have about 5 years proffessional experience with PHP. I will try to apply for new jobs soon. But I was considering - maybe I should get the certification so they would believe my skills more. I myself understand that it does not bring much value to the business, … | |
How to retrieve data from another database using PHP, mySQL? | |
How to retrieve data from one database to another using PHP , mySQL? | |
I have been all over the internet trying to figure out how to plan an embedded youtube video in full screen automatically and have failed at every turn. Any ideas here? <iframe src="//www.youtube.com/embed/9ptECXgpIwk?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe> several links on the web say that the rel=0 is what makes it happen, but … | |
Dear Experts, I am using these codes <?php require_once("../includes/connectw.php"); require_once("../includes/functions.php"); $error=""; if(isset($_POST['login'])) { $muser=clean($_POST['username']); $mpass=clean($_POST['password']); if(empty($muser)) { $error="User name must not be empty"; } elseif (empty($mpass)) { /*echo ('<script>alert("Password must not be empty")</script>');*/ $error="User name must not be empty"; } else { $query="select * from admin where user ='".$muser."' and … | |
$sql = "INSERT INTO kladilnica (Username, Uplata, Dobivka, Date, regTime, Odds, isActive, ticket_id, isShared, is_wined, Location) VALUES ('".$user."', '".$bet."', '".$gain."', '".$date."', '".$regTime."' '".$odds."', 1, $randomTicketID, 0, 0, '".$userLocation."')"; $result = $conn->query($sql); trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); I searched on google and found that … | |
Hi, i have two tables in mysql. Tbl1 - lets call it {$tbl_p} has product_id and tax_id fields. Tbl2 - lets call it {$tbl_c} has product_id and tax_id_w fields. Tbl1 needs to be updated (only tax_id field) from Tbl2 based on values of tax_id_w field. But, tax_id_w field in tbl2 … | |
I tried your example in "how to inserting files on mysql using LARAVEL" article. When i choose the .docx file for file upload, i get an error "CLI has stopped working". Kindly help to resolve this issue. Code is exactly the same as the one in your article. Laravel version … | |
The code is: `echo " AS " . $index - 10 . " - " . $index . " SA ";` `$index` is an integer. The output is: `-10 - 0 SA` The expected output is: `AS -10 - 0 SA` What am I missing? | |
I'm using `html2canvas.js & jquery.plugin.html2canvas.js` to save generated receipt. Receipt have 985px height & 350px width. But it is saving only 100px height of image **Need help to find problem AND/OR save receipt** <div class="confirmation-wrapper booking-summary" id="canvas"> <div class="confirmation-content"> <h4>Your Booking Information</h4> </div> <ul class="book-sum-list"> <li></li><li></li>.... <!--All Booking Information--> </ul> … | |
Hi, ive been working on a project which in web with php and mysql. My goal is simple user/admin can input two dates then the result of the query will exported in excel. here's my code which i manage to extract the query from database: if(isset($_POST['submit'])){ // $frdate = $_POST['fr-date']; … | |
I am using the [jQuery File Upload plugin by Blueimp](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](http://blueimp.github.io/jQuery-File-Upload/), … | |
I drew a picture of the database performance for editing. But I try not to choose a new image. Then press the update appears that it does not send the originals back. If you choose a new image It was able to get regular updates. If not, select and click … | |
I have a code that is going to pick the page title of the previous page and autopopulate a field in a form i have created. Users pick the job they want then upon clicking apply the go to an application form. There is a field that is being autopopulated … | |
Before asking, I would like to clarify, youtube-dl is **not** available to me as I'm on shared web hosting. Is there any way to download a Youtube video using PHP WITHOUT youtube-dl? | |
Hi, I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of my league!!! I am creating a website for a training company and I need to get the course info from … | |
hello, I have four arrays. Three arrays are in one group and fourth is in the second group. And I need to use array_diff somehow between theese two groups. First group has one array which contains unique numbers (like barcode number), second array with a product name and third array … | |
**I want to add multiple Record. Add 1 record if it is to insert 1 record , but if 5 recoed data will insert 5 record. Sorry i'm not good english** images 1 [Click Here](http://i.stack.imgur.com/K4XdO.png) images 2 [Click Here](http://i.stack.imgur.com/K4XdO.png) <?php include_once("connect.inc.php"); if (isset($_POST['submit'])) { $i = 0; foreach ($_POST as … | |
I want to parse .doc files or convert it to HTML or txt files when user upload it. i found this link ( [url]http://instruform.com/wordconv.phps[/url]) but it is not working. Can anybody suggest some php script for the same.(need urgently). please give some suggestion.... Thanks in advance | |
Hi guys I need a help here, I’m trying to use Ajax to update the column of the table in the database with combobox without a submit button, by the way it update the column finely but unfortunately the column data is erased to **0** when a webpage is refreshed. … | |
Sir, I have following codes $host="localhost"; $username="a6354924"; $password="123456"; $db_name="a6354924_abc"; $con=mysqli_connect($host, $username, $password,$db_name); Database and error screen shots are attached. Facing this error Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'a6354924'@'localhost' (using password: YES) in /home/a6354924/public_html/includes/connectw.php on line 8 Please help ![bb.png](/attachments/large/4/fbdbb0256159fb1e37206885586bb629.png "align-center") ![aa.png](/attachments/large/4/a698d9811a5f5dc1b6d3644051ab551e.png "align-center") | |
Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can … | |
i have project named myapp in C drive and i am using php built in server so my doc root of project is set to be myapp/public/ containing js,css etc now these js files have some ajax code and calls php scripts in myapp/src folder outside public folder so obivously … | |
i need help, i want to create a smart auto complete using a text box, it fill clients names from client database, is it any way to create those without jquery, thanks |
The End.