39,320 Topics
| |
I am new for PHP. I tried to display text box value based on drop down selection. it seems code working. no error display here. But when i change the drop down, text box value shows empty. Even print the data it will display only null. HTML:- <select name="cat" id="cat"> … | |
I have a script that calls image files through a database. It all works well but the image list is too long and loading is slow.I need to implement lazy loading after the third image. How do I implement this? <?php $query = mysqli_query($con, "SELECT * FROM image_uploads WHERE filename … | |
Hi, This might be a simple question, but I have an affiliate site that I want to drive traffic to, and the traffic will be coming from various sources. All I want to know is that I got the traffic count that is being contracted for from each source... My … | |
I am trying to create a quiz whereby user will key in their answer in a textfield. If the answer the user keys in matches with the answer in the array, the score will increase. However my $answer only returns the last value the user entered which does not allow … | |
> Hey there! I don't know why "Your Password is Incorrect!" is printed before I fillin the form. I've started learning php two weeks ago <!DOCTYPE html> <html> <head> </head> <body> <form action = "" method="POST"> <label id="first"> Name: </label><br/> <input type="text" name="username" placeholder= "Name" required><br/> <label id="first">Password: </label><br/> <input … | |
I am trying to use on form to insert data into 3 different tables <?php if (isset($_POST["submit"])){ $servername = "localhost"; $username = "root"; $password = ""; $db = "test_db"; $conn = new mysqli($servername, $username, $password, $db); if ($conn->connect_error){ die("Connection failed: ". $conn->connect_error); } $Vehicle_type = $_POST["Vehicle_type"]; $Vehicle_colour = $_POST["Vehicle_colour"]; $Vehicle_licence … | |
I created an html page with days of the week Mon Tue Wed Thu Fri Sat Sun The corresponding page is linked to each day I would need that when the page opens, the day is automatically highlighted based on the day of the week and that there is a … | |
Good evening, I need a little help. After having extracted the data from a database table, I would need to print them on the screen in a certain part of an html page with 3 frames (exactly in section B of the "test" page as shown in the example) ![esempio1.png](https://static.daniweb.com/attachments/4/68617445861c8603f35770e7e94d851a.png) … | |
Using PHP / MySQL This is a sort of long explanation, but trying to provide all the information the first time. Hopefully someone can tell me what I’m missing or doing wrong, without too much criticism. I am trying to create a FUNCTION that I can use to retrieve a … | |
My website has a mirror of the download directory in the U.K.. On my download page I have 2 buttons, one for a U.S. download and one for a U.K. download. The current download page passes the filename to the download script. The download script (located in the download directory) … | |
Hi guys I am after a pre written PHP script or a tutorial which displays records from a table each with a checkbox. ( I have worked to this part) When the check box is ticked and the submit button is pressed, the records with a checkbox get inserted into … | |
I am Arman Malik from pakistan, I also developer, but I want to ask you, how to install Forum Script on the WordPress? | |
Good evening everyone, I created this file to be able to print the data from the database on the screen. Everything ok but all the data contained in the database appear on the same line. I would like them to print like this: nome email titolo dataeora msg nome email … | |
Hey, I would need some help. I use Facebook API to get all the Ad Campaigns that exist on my account. I would want each ad campaign that exists, to print out seperatly, one ad campaign per box for example (https://emildeveloping.se/screenshots/POWERPNT_JcaaOq2NXx.png). This is my code now: https://pastebin.com/HAjSD6Nr This is the … | |
How to create submit button on each row ? If i press the button on that row, the information on that row will be confirmed. What is the problem? [CODE] ;<input name="<?php echo $row['id']; ?>" type="submit" id="<?php echo $row['id']; ?>" value="Confrim">&[/CODE] The whole code [CODE] <?php $host="localhost"; // Host name … | |
Hi All, It has been a long while since I've been here, but I have hit a wall/mind block/ whatever you want to call it. This should be simple, but drawing a complete blank. I have an affiliate website where my clients can refer us to their friends and receive … | |
I have an error with the registration form, when someone registers or connects it gives me : Warning: mysql_num_rows() expects parameter 1 to be resource, null given in \public_html\include\global.php on line 37 Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in \public_html\include\global.php on line 38 Warning: Cannot modify … | |
My main download page passes an id number for the file to be downloaded. In the mydloader.php (located in the download folder), I have a pdo sql query to set $l_filename to the filename in the database. I need to use $l_filename in <a href to download the file. My … | |
hey every one thank you in advance i have a jason resonse befofe the start of the json respone i get a hyphen like this i have been stuck for a day here so any help is much appreciated -{ "responseCode": "", "responseStatus": "200", "responseMessege": "Success", "product": { "id": "60", … | |
so i have <?php ob_start(); session_start(); ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file"><br><br> <input type="submit" value="Upload"> </form> <?php $file_name = $_FILES['file']['name']; $file_size = $_FILES['file']['size']; $file_type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; $error = $_FILES['file']['error']; if (isset($file_name)) { if (!empty($file_name)) { $location = '/user/'.$_SESSION['Username'].'/'; if (move_uploaded_file($tmp_name, $location.$file_name)) { echo 'Uploadat!'; } … | |
Hello. I'm trying to build a website which should accept uploaded files. My question is: how do you retrieve the filetype of uploaded files? | |
This is the scenario: **User A:** Access the website and choose a questionnaire. The questionnaires are separated on different pages in the same domain, for example: **Home:** "surveys.com" **Questionnaires:** "surveys.com/type1" "surveys.com/type2" After choosing one, he (**User A**) puts the following information: **1** = Recipient's email **2** = His email And … | |
I want to create a webpage which will automatically send an email before 2 days. <form action="try.php" method="post"> <p>Date From : <input type="date" name="date1" /></p> <p>Date To: <input type="date" name="date2" /></p> <input type="submit" name="submit" value="Submit" /> </form> <?php // echo("First name: " . $_POST['firstname'] . "<br />\n"); echo("Last name: " … | |
Hello, I'm new into PHP. Just migrated from Java recently. I'm trying to make a conversion machine that conver number to romans number. Here is the code I wrote : !DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Latins to Romans Conversion</title> </head> <body> <h2>Latin to Romans … | |
Link in MySQL: https://wahlburgers.com/dorchester Variable loaded: $website = $row["website"]; How can I echo the word "Website" as a hot link to $website ( https://wahlburgers.com/dorchester ) inside an HTML form? This is what I've tried: <input type="text" id="website" name="website" value="<?php echo "<a href= '" . $website . "'>" . "Website" . … | |
I want to create a tool for my website that convert word document to html form and vice versa. I don't know the process how it works. I wnat to make it in JS, PHP or codemirror. I dont know how and where to start. Thanks. | |
i just want to create a update form by using modal but when i click the button update nothing happen no popup appear or did with a wrong ways? i already change the position of the end curly braces but still not working. Any ideas? here is what i working … | |
Good day, I am actually a young programmer, who wants to develop a webpage that enables someone to take a practice test. It was given to me as an assignment that determines if I will remain a programmer. I know little about PHP codes but none in Mysql. I came … | |
HI , First at all i'm a newbie and sorry if this a dumb question. i want to create a form that only can be submitted once per day by each user, each user has thier own id. My question is how to create a process that will check if … | |
I have 3 radio buttons on my form A , B , C but when i clicked on A radio it shows specific dropdown which get data from database table but by fruitid 1 and when i clicked on B it will show data fruitid 2 as onnword. i need … |
The End.