Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("dbcon.php");
- $newsid = 0;
- if( isset($_GET['newsid']) )
- $newsid = (int)$_GET['newsid'];
- if( $newsid ) {
- $sql = "select content from news where id={$newsid}";
- $rs = $db->query($sql);
- $row = $rs->fetch();
- echo $row['content'];
- }
- ?>
Add Comment
Please, Sign In to add comment