Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_GET['id']))
- {
- $id = $_GET['id'];
- $server = "localhost";
- $username = "greenfrog";
- $password = "test";
- $database = "test";
- $con = mysql_connect($server, $username, $password);
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db($database, $con);
- $result = mysql_query("SELECT newsletterId, title, body, date, isSent FROM newsletter WHERE newsletterId =" . $id);
- }
Add Comment
Please, Sign In to add comment