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
fixtatik
post Nov 18 2009, 12:21 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



File order doesn't matter, because you're linking to one from the other. It wouldn't even matter if you combined them all into one.

All you really need is the code to check for username & password, and to update the database with a new note & time. You can create the table yourself prior to running the script (inside phpMyAdmin, or something similar). The script runs when a user pushes the submit button (that's what if(isset($_POST['user'])) or if(count($_POST) > 0) does).
 

Posts in this topic


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