Web Development
Member Avatar
 <html> <head></head> <link rel="stylesheet" type="text/css" href="style.css"
<body> <?php

$db = mysqli_connect('localhost', 'root', '', 'formdb');

$formId = '';
$LastName = '';
$FirstName = '';
$Email = '';
$Birthday = '';
$Birthplace …
Topic by Charles_38

Feel free to ask a question.

Web Development
Member Avatar
 <html> <head></head> <link rel="stylesheet" type="text/css" href="style.css"
<body> <?php

$db = mysqli_connect('localhost', 'root', '', 'formdb');

$formId = '';
$LastName = '';
$FirstName = '';
$Email = '';
$Birthday = '';
$Birthplace …
Web Development
Member Avatar

Signup.php

<form name="sign-up" method="post" action="process.php?action=sign-up">
<h3><span>Sign-Up</span></h3>
<table width="100%" border="0" cellspacing="1" cellpadding="1">   
<thead> User Details </thead>
<tr>
      <th scope="row">*User ID :</th>
      <td><label for="playerid"></label>
      <input type="text" name="playerid" id="playerid" required="required"></td>
    </tr>
    <tr>
      <th …
Topic by Adhri

@Dani, I should have added the word "page" which is what I meant. Tabular data is perfectly fine and is exactly what tables should be used for. But with that …

Web Development
Member Avatar

Signup.php

<form name="sign-up" method="post" action="process.php?action=sign-up">
<h3><span>Sign-Up</span></h3>
<table width="100%" border="0" cellspacing="1" cellpadding="1">   
<thead> User Details </thead>
<tr>
      <th scope="row">*User ID :</th>
      <td><label for="playerid"></label>
      <input type="text" name="playerid" id="playerid" required="required"></td>
    </tr>
    <tr>
      <th …
Topic by Adhri

Tables for layout went out in the 90's. We use CSS now.

Web Development
Member Avatar

Signup.php

<form name="sign-up" method="post" action="process.php?action=sign-up">
<h3><span>Sign-Up</span></h3>
<table width="100%" border="0" cellspacing="1" cellpadding="1">   
<thead> User Details </thead>
<tr>
      <th scope="row">*User ID :</th>
      <td><label for="playerid"></label>
      <input type="text" name="playerid" id="playerid" required="required"></td>
    </tr>
    <tr>
      <th …
Microsoft Windows
Member Avatar

Hello,

I have a PC at the office, which was by default a Windows 8 Pro OEM licensed one (not 8.1), but for some unknown reasons, it was downgraded to …

Topic by Ritesh_4

Having vms for software testing or whatever else is a great option. Once you have a clean install of an OS on VM, take a snapshot, then install whatever you …

Microsoft Windows
Member Avatar

Hello,

I have a PC at the office, which was by default a Windows 8 Pro OEM licensed one (not 8.1), but for some unknown reasons, it was downgraded to …

Topic by Ritesh_4

While not a bad idea to do the second clean install the upgrade is smart enough to put all the "crap" in a folder called windows.old which has everything from …

Microsoft Windows
Member Avatar

Hello,

I have a PC at the office, which was by default a Windows 8 Pro OEM licensed one (not 8.1), but for some unknown reasons, it was downgraded to …

Web Development
Member Avatar

Hi

I am struggling with some code and was wondering any someone could please help me. My php skills are VERY limited and only get stuff done by reading forums …

Topic by Robert_79

Didnt you like the answers on all the other forums you cross posted on?

Web Development
Member Avatar

Hi

I am struggling with some code and was wondering any someone could please help me. My php skills are VERY limited and only get stuff done by reading forums …

Web Development
Member Avatar

Hey guys!

For the past few days, my database was working fine for both tables but just recently (I must have done something to my code but can't remember), my …

Topic by gdi888

As you have been told by many on the other forum you crossposted on, you need to fix your Database before you do anything.

php
Web Development
Member Avatar

Hey guys!

For the past few days, my database was working fine for both tables but just recently (I must have done something to my code but can't remember), my …

php
Web Development
Member Avatar

hi...
this is my index page...

include("config.php");
session_start();

if($_SERVER["REQUEST_METHOD"] == "POST")
{
// username and password sent from form 

$myusername=addslashes($_POST['username']); 
$mypassword=addslashes($_POST['password']); 

$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);

$sql="SELECT id FROM …
Topic by danielbala

this is my html code
<html> <head> <h1 align=center>LOGIN PAGE</h1> </head> <body align=center> <div align=center> <form method="post" action="welcome.php" > <label>USERNAME</label> <input type="text" value=""></input> <br><br> <label>PASSWORD</label> <input type="password" value=""></input><br><br> <input type="submit" …

php
Web Development
Member Avatar

Hi, I got this error. Please help.

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in

$result_1= mysqli_query($link, "SELECT $criteria FROM table ORDER BY '".$crieria."' ASC);

$array1 = …

Topic by Jiaxin

My Code:
<?php
include("validation.php");
include("conection.php");
if(isset($_POST["button"]))

$pwde = md5($_POST[password]);

$sql="INSERT INTO administrator (adminid, adminname, password, address, contactno)
VALUES
('$_POST[adminid]','$_POST[adminname]','$pwde','$_POST[address]','$_POST[contactno]')";

if (!mysql_query($sql,$con))

die('Error: ' . mysql_error());

else

  echo "1 record Inserted …
php
Programming
Member Avatar

Hey guys:

I am trying to make this form to clear after being submited. As it is now the form submits, however, the input fields do not clear and when …

Topic by Peter_68

You need to learn about PRG. Post/Redirect/Get

By the way, PHP_SELF is vulnerable to an XSS Attack.

php
Programming
Member Avatar

Hey guys:

I am trying to make this form to clear after being submited. As it is now the form submits, however, the input fields do not clear and when …

php
Microsoft Windows
Member Avatar

It seems Microsoft new update ruined my pc.once I click on start some error appears everytime

Topic by HAMMAD_5

some error appears everytime

It would have helped if you would have told us exactly what the error is. We dont have magic Crystal Balls.

Microsoft Windows
Member Avatar

It seems Microsoft new update ruined my pc.once I click on start some error appears everytime

Web Development
Member Avatar

Hi,
I'm trying to copy the data from a table in one database to another table (with the same fields of the origin table) in another database. And this is …

Topic by Sana'a_1

Writing a proper query would be helpful.

INSERT INTO table2
SELECT * FROM table1

https://dev.mysql.com/doc/refman/5.7/en/insert-select.html

php
Web Development
Member Avatar

Hi,
I'm trying to copy the data from a table in one database to another table (with the same fields of the origin table) in another database. And this is …

php
DaniWeb Community Feedback
Member Avatar

I just posted something and had to go through the "Click the photos with street signs" test before my post was accepted. I was logged in. I don't remember ever …

Topic by AssertNull

Their threads may have disappeared but their names (often the name is spam) and their 1-800-BUYSPAM messages were still visible on the front page post-ban.

This bug was corrected. …

Databases
Member Avatar

how to automatically sum the scores that is being inputted in the textbox and display to the specific rows of textbox

this is my code for inputting score

while …
Topic by arnold_5

You have bigger problems to worry about. You are using obsolete, dangerous code that has been completetly removed from Php. You need to use PDO with Prepared Statements.
PDO Tutorial

Databases
Member Avatar

how to automatically sum the scores that is being inputted in the textbox and display to the specific rows of textbox

this is my code for inputting score

while …
Web Development
Member Avatar

I'm creating an online learning courseware using PHP 5.5 and connecting via PDO. But I'm confused as to how to get the courseware to work, as I want. This is …

Topic by mexabet

I'm creating an online learning courseware using PHP 5.5

Why? Php 5.5 has already reached end of life and is no longer supported.
Click Here

Web Development
Member Avatar

I'm creating an online learning courseware using PHP 5.5 and connecting via PDO. But I'm confused as to how to get the courseware to work, as I want. This is …

Databases
Member Avatar

Hello Guys,
So im a student at 12 grade and im trying to build a website from scratch and i've been successfull until now, i've been stuck in this error …

Topic by Marco_5

You first need to start with code that is not dangerous and obsolete and removed from Php. Start with this tutorial
Click Here

Where ever you are learning that code …

Databases
Member Avatar

Hello Guys,
So im a student at 12 grade and im trying to build a website from scratch and i've been successfull until now, i've been stuck in this error …

Web Development
Member Avatar

Hello,

When I try to import this sql into phpmyadmin I am getting this error message:

Query SQL:

 CREATE TABLE `customers` (
  `customerNumber` int(11) NOT NULL,
  `customerName` varchar(50) NOT NULL, …
Topic by davy_yg

Good catch on the tutorial DB. Would have been nice if the OP had mentioned it came from there. He left out the conditional comments and created his own problem.

Web Development
Member Avatar

Hello,

When I try to import this sql into phpmyadmin I am getting this error message:

Query SQL:

 CREATE TABLE `customers` (
  `customerNumber` int(11) NOT NULL,
  `customerName` varchar(50) NOT NULL, …
Topic by davy_yg

@AssertNull, Your talking about two different things, table creation and data insertion, both of which can each have their own contraint issues. The OP's first post clearly has to do …

Web Development
Member Avatar

Hello,

When I try to import this sql into phpmyadmin I am getting this error message:

Query SQL:

 CREATE TABLE `customers` (
  `customerNumber` int(11) NOT NULL,
  `customerName` varchar(50) NOT NULL, …
Topic by davy_yg

The answer is simple. You just need to disable the foreign key checks first, run your querys, then turn the foreign key checks back on.

SET FOREIGN_KEY_CHECKS=0;
//Run Querys
SET …