Edit report at http://bugs.php.net/bug.php?id=51747&edit=1

 ID:               51747
 Updated by:       degeb...@php.net
 Reported by:      debasishbasak132 at gmail dot com
 Summary:          nothing
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          Output Control
 Operating System: windows
 PHP Version:      5.3.2

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------
[2010-05-05 15:18:48] debasishbasak132 at gmail dot com

Description:
------------
<?php

include 'mysql-connect.php';

$username = $_POST['username'];

$password = $_POST['password'];

$firstname = $_POST['firstname'];

$lastname = $_POST['lastname'];

$age = $_POST['age'];

$ip = $_SERVER['REMOTE_ADDR'];



$result = mysql_num_rows(mysql_query("SELECT * FROM te2 WHERE
username='$username'"));

if($result == 1)

    {

    echo "username already exist";

    }

else

    {

    mysql_query("INSERT INTO te2 (username, password, firstname,
lastname, age, ip)

VALUES ('$username', '$password', '$firstname', '$lastname', '$age',
'$ip')");



    echo "u are successfully registered";

  

  <p>Click <a href="login.php">here</a> to login.</p>;}

?>

Expected result:
----------------
<?php

include 'mysql-connect.php';

$username = $_POST['username'];

$password = $_POST['password'];

$firstname = $_POST['firstname'];

$lastname = $_POST['lastname'];

$age = $_POST['age'];

$ip = $_SERVER['REMOTE_ADDR'];



$result = mysql_num_rows(mysql_query("SELECT * FROM te2 WHERE
username='$username'"));

if($result == 1)

    {

    echo "username already exist";

    }

else

    {

    mysql_query("INSERT INTO te2 (username, password, firstname,
lastname, age, ip)

VALUES ('$username', '$password', '$firstname', '$lastname', '$age',
'$ip')");



    echo "u are successfully registered";

  

  <p>Click <a href="login.php">here</a> to login.</p>;}

?>

Actual result:
--------------
in my code insert into values code dont work .pls help me


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51747&edit=1

Reply via email to