Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2.  
  3. //Written by ForthyUK
  4.  
  5. // $username="******";
  6. // $password="******";
  7. // $database="******";
  8.  
  9. // $title=$_POST['title'];
  10. // $description=$_POST['description'];
  11. // $date=$_POST['date];
  12. // $complete=$_POST['complete];
  13.  
  14. // mysql_connect("localhost",$username,$password);
  15. // @mysql_select_db($database) or die( "Unable to select database");
  16.  
  17. // mysql_query("INSERT INTO tasklist (title, description, date, complete)
  18. // VALUES ('$title','$description',NOW(),0)");
  19.  
  20.  
  21.  
  22. // if(!mysql_db_query($database,$query)) die(mysql_error());
  23.  
  24. echo "<p>The new task has been submitted!</p><br />";
  25. echo "<a href="tasktracker.htm">Click here to view the tasklist</a><br />";
  26. echo "<a href="addtaskform.htm">Click here to add another task</a>";
  27.  
  28. // mysql_close();
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement