39,316 Topics

Member Avatar for
Member Avatar for Shreya_8

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 …

Member Avatar for stephenlangton
0
81
Member Avatar for darkbox

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 …

Member Avatar for Biiim
2
368
Member Avatar for darkbox

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

Member Avatar for rproffitt
0
34
Member Avatar for showman13

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 …

Member Avatar for Dani
1
614
Member Avatar for larry29936

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

Member Avatar for Dani
0
133
Member Avatar for Python_1

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 …

Member Avatar for Dani
0
200
Member Avatar for armankhamalik

I am Arman Malik from pakistan, I also developer, but I want to ask you, how to install Forum Script on the WordPress?

Member Avatar for stuwer12
0
44
Member Avatar for darkbox

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 …

Member Avatar for darkbox
0
81
Member Avatar for Emil_4

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 …

Member Avatar for Emil_4
0
27
Member Avatar for cliffcc

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 …

Member Avatar for Kimanzi
0
18K
Member Avatar for showman13

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 …

Member Avatar for Dani
0
289
Member Avatar for theplayer

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 …

Member Avatar for Dani
0
119
Member Avatar for larry29936

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 …

Member Avatar for larry29936
0
168
Member Avatar for Abubaker_3

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

Member Avatar for Dani
0
133
Member Avatar for andreiviziru

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!'; } …

Member Avatar for Piyasi
0
23K
Member Avatar for Xozz

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?

Member Avatar for rproffitt
0
29
Member Avatar for Vitor_2

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 …

Member Avatar for john_111
0
106
Member Avatar for ronjacob012

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

Member Avatar for monika_12
0
14K
Member Avatar for GhostDragon

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 …

Member Avatar for bobgodwin
0
507
Member Avatar for Parker_1

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

Member Avatar for Jawass
1
192
Member Avatar for Kuldeepbsht3103

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.

Member Avatar for Dani
0
99
Member Avatar for Spark_3

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 …

Member Avatar for Arabic
0
1K
Member Avatar for messiahjoseph39

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 …

Member Avatar for NeighborDave228
0
178
Member Avatar for Spark_3

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 …

Member Avatar for smart_saru
0
96
Member Avatar for Deve381

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 …

Member Avatar for Dani
0
167
Member Avatar for z.smart

How can read line in file that line have recordor examplethe file: date new_cases new_deaths 2020-07-30 665 10 2020-07-31 590 9 2020-08-01 - 0 2020-08-02 - - 2020-06-04 738 8 2020-06-05 779 - 2020-06-06 770 5 4 line it is not record new_cases or new_deaths so wae ignore the line …

Member Avatar for stultuske
0
52
Member Avatar for Adolfo_1

Hi ... I want to create some php pages where I have to change the variables ( top of the page ) through a form and of course save them on the same page. I don't want to use databases. It's possible??? <?php $pageurl = "text1"; $title = "text2"; $description …

Member Avatar for Adolfo_1
0
207
Member Avatar for jeffersonalomia

Hi, I would like to ask how to redirect to another page, like for example dashboard page (because normally after successful login it will redirect the user to home page) ? I am new at laravel environment and I will highly appreciate all your comments and looking forward to learn …

Member Avatar for Dani
0
75
Member Avatar for Jesse_21

I am attempting to update my accounts table for the current session ID with the data posted from a form. My first prepare statement is functioning fine and can be seen functioning through the placeholder variables in the form. It is my second prepare statement that doesnt seem to be …

Member Avatar for Dani
0
90
Member Avatar for Pavan_23

Write a Python function maxaceregate(!) that takes a list of pairs of the form (name score) as argument, where name is a string and score is an Integer Each pair is to be interpreted as the score of the named player For instance, an input of the form [CKohir 73) …

Member Avatar for Dani
0
87

The End.