Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username="root";
- $password="password";
- $database="memocloud";
- mysql_connect(localhost,$username,$password);
- mysql_close();
- ?>
- <?
- $username="root";
- $password="password";
- $database="memocloud";
- $noteid=$_POST['noteid'];
- $userid=$_POST['userid'];
- $title=$_POST['title'];
- $color=$_POST['color'];
- $row=$_POST['row'];
- $content=$_POST['content'];
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query = "INSERT INTO contacts VALUES ('','$noteid','$userid','$title','$color','$row','$content')";
- mysql_query($query);
- mysql_close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement