Log In · Register

 
notepad
Maccabee
post Oct 24 2009, 12:39 AM
Post #1


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



im wanting to make an online notepad for personal use. ive got a server. it could be like the one cb uses or this.
http://jumk.de/notepad/

i use that all the time but it sucks. haha.

i figured the best way to do this would be with a database as opposed to cookies or something so that way you can always access it from any pc.

how would i go about this? i only started learning database stuff recently.

fanks. its also just for the learning experience.
 
 
Start new topic
Replies
Maccabee
post Oct 24 2009, 09:27 AM
Post #2


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



ok so basically each time a user signs up it creates a new row? and that row contains the notes? and then to access that row it requires a username and pass? cause when i made the database i gave it a username and pass. so is this:

CODE
<?php
// Create a new user
if(count($_POST) > 0) {
  $user = $_POST['user'];
  $pass = md5($_POST['pass']);
  if($user && $pass) mysql_query("INSERT INTO memo ('', '$user', '$pass', NOW(), '', '')");
}
?>


the script to do that? wow. you did this by memory? hmmm, i dont get how to put that into form view. ill keep studying.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: