<html>
<body>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mydb", $con);
$sql="INSERT INTO users(firstname, lastname)
VALUES
('$_POST[firstname]','$_POST[lastname]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($con)
?>
</body>
</html>
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
SirMahlon 0 Junior Poster in Training
SirMahlon 0 Junior Poster in Training
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
SirMahlon 0 Junior Poster in Training
broj1 356 Humble servant Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.