What is the wrong code here?

mysql_select_db($database, $check);
$id=$_GET['post_id'];
$query_getID = "SELECT * FROM news WHERE post_id='$id' LIMIT 1";
$getID = mysql_query($query_getID, $check) or die(mysql_error());
$row = mysql_fetch_assoc($getID); 
$totalRows_getID = mysql_num_rows($getID);
<b class='title'><a href="newsevents.php?post_id=<?php echo $_GET['post_id']; ?>">
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.