800 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for madantwo

foreach ($_SESSION["cart_item"] as $item ){ $name=$item['name']; $a=$item['p1']; $b=$item['img1']; $pname=$item['pname']; $email=$item['email']; $size=$_POST['sizea']; $ddate=date('Y/m/d'); $p="insert into orders(order_id,ddate,customer,product,pname,p_img,size,email) values('$last','$ddate','$name','$a','$pname','$b','$size','$email')"; mysql_query($p) or die(mysql_error()); } <select name="sizea[]" id="planida" > <option>Select Plan</option> <option value="XL">XL</option> <option value="M" >M</option> </select> Output: Size: Array // not work

Web Development mysql php
Member Avatar for madantwo
0
87
Member Avatar for BlurrieBlue

Hi, I tried to view crystal report by using crystal report viewer in Visual Studio 2010. However when i tried to declare ReportDocument, it is underlined with blue curly line. I had done the following in the code behind file. [CODE]Imports System.Data Imports System.Data.Odbc Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports CrystalDecisions.Web[/CODE] …

Web Development asp.net
Member Avatar for TAKUDZWA_1
0
2K
Member Avatar for questionpond

Hi all, Used Asp.net Menu Control have designed a navigation bar .Using touchscreen Desktop in Internet Explorer(IE11), single tap not appear but double tap submenus appears but in Microsoft Edge/Google Chrome browser not appear submenus by single tap/double tap . Touch is working in Edge/Chrome by single tap in other …

Web Development asp asp.net javascript jquery
Member Avatar for rproffitt
0
363
Member Avatar for Chua_1

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 …

Web Development php
Member Avatar for fearless359
0
250
Member Avatar for r4ds

Hello. I noob programing. I need extracting "ALGARROBO" and put in variable in JS. <select> <option value="0560200101">ALGARROBO</option> <option value="0760200601">CALIFORNIA</option> "" "" "" +70 options </select> Someone would be so kind to give me the js code? It is not possible to change the "value", since that information goes to api …

Web Development javascript sql
Member Avatar for rproffitt
0
89
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 …

Web Development html-css javascript php
Member Avatar for Biiim
2
372
Member Avatar for cosmo13

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

Web Development mysql php sql
Member Avatar for Biiim
0
176
Member Avatar for Pocokos

Hi, I am new to web development so I am still kind of unsure to how everything works so sorry if it is something obvious. To create the scenario, I need to create a music player using html5, javascript and css. I very much got stuck on how to shuffle …

Web Development javascript
Member Avatar for Biiim
0
162
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 …

Web Development php
Member Avatar for stephenlangton
0
82
Member Avatar for Avi_4

![code.png](https://static.daniweb.com/attachments/4/87cafae5fd0eda16b78319ca17b8eb01.png) hello everybody, this is my code how can I show (div and p) apposite to each other by using css?

Web Development
Member Avatar for adisharma
0
52
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 …

Web Development mysql php
Member Avatar for Dani
1
617
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) …

Web Development php
Member Avatar for Dani
0
134
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 …

Web Development php
Member Avatar for Dani
0
200
Member Avatar for Pocokos

Hii :) I have a list which is presented on one line so I am using css 'float: left' to do this. In one list there is 3 entries. It should look like this <ol> <li> 1 </li> <li> text </li> <li> 1.30 </li> </ol However the way it is …

Web Development html-css
Member Avatar for Dani
0
143
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 …

Web Development email gui php
Member Avatar for Kimanzi
0
18K
Member Avatar for Ivan_7

Hi,my friend and I are making our student project.And so far we create our 'back end' but in front (angular) somehow we are not able to get new socket.id when user change room.I will share your code with me hope someone will be able to help. This is our ANGULAR …

Member Avatar for rproffitt
0
526
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 …

Web Development apache php
Member Avatar for Dani
0
290
Member Avatar for 3IA13_

Dear Friends, Help me to fix this.. Error Message : mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in Code is, <?php class Login { public function login_proses($u, $p){ include ('koneksi.php'); $pass = base64_encode($p); $_mysqli->query("START TRANSACTION;"); $cek_login = $_mysqli->query("SELECT * FROM penduduk, hak_akses, hak_akses_user WHERE penduduk.nik = hak_akses_user.nik AND …

Web Development mysql
Member Avatar for pritaeas
0
65
Member Avatar for Eugene_15

Hi guys, my siema slider plugin is not working in the jquery tab, everything i switch my tab, my image slider unable to slide image, only if I resize my browser and the slider image will function back again. Below there is a demo codepen link, hope i can get …

Web Development html-css javascript jquery
Member Avatar for Dani
0
244
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 …

Web Development php
Member Avatar for larry29936
0
168
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!'; } …

Web Development php
Member Avatar for Piyasi
0
24K
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", …

Web Development javascript json php
Member Avatar for Dani
0
135
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 …

Web Development mysql php sql
Member Avatar for Dani
0
120
Member Avatar for Olivia Alex

Which programming language used for the below url? How to know the programming language of particular website? htt ps ://www.f orm1099onli ne.com/

Web Development javascript
Member Avatar for Andres_6
0
110
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: " …

Web Development email php
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 …

Web Development php
Member Avatar for bobgodwin
0
522
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" . …

Web Development mysql php
Member Avatar for Jawass
1
194
Member Avatar for Dani

Does anyone know of an automated tool that will convert a lot of jQuery code to native javascript? I think the bulky jQuery library is really slowing down my site but manually converting all my code seems very daunting. Ideally there would be something that was so flawless I could …

Web Development jquery
Member Avatar for Dani
0
320
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 …

Web Development php
Member Avatar for Arabic
0
1K
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 …

Web Development mysql php sql
Member Avatar for Dani
0
169

The End.