Search results

  1. I

    What's wrong with this php code ?

    <?php $s = $_POST["lname"]; $x = trim($s); $exists = false; $selectedRow = 0; mysql_connect (localhost,testuser,testuser); mysql_select_db (testuser); mysql_query("CREATE DATABASE myDatabase"); mysql_query("USE myDatabase"); mysql_query("CREATE TABLE myTable (firstname VARCHAR(20), " ...
  2. I

    What's wrong with this php code ?

    <?php $s = $_POST["lname"]; $x = trim($s); $exists = false; $selectedRow = 0; mysql_connect (localhost,testuser,testuser); mysql_select_db (testuser); mysql_query("CREATE DATABASE myDatabase"); mysql_query("USE myDatabase"); mysql_query("CREATE TABLE myTable (firstname...
  3. I

    what's wrong with this php code ?

    please help !!! <?php function f($s, $name) { $s = $_POST["lname"]; $rows=mysql_numrows($s); if($rows == 0) print $name . " is not in the database."; else { print "<pre>First Name Last Name " . "Your Date of birth is Birth date\n</pre>"...
  4. I

    Need help making a PHP ?

    it should search for a last name. If the last name is in the table the PHP script should print: first-name last-name Your date of birth is yyyy-mm-dd. Where first-name and last-name is a name of a person. yyyy is a year, mm is a month, and dd is a day. On the other hand if the last name is...
Back
Top