Email : info@mikemak.com
"; } elseif(!$_GET[id]){ //header("Location: http://127.0.0.1/cms/contact_menu.php"); $display = "
"; } else { $db_name= "testdb"; $table_name = "my_projects"; $connection = @mysql_connect("localhost","root","f474lh57") or die(mysql_error()); $db = @mysql_select_db($db_name, $connection) or die(mysql_error()); $chk_id = "SELECT id FROM $table_name WHERE id = '$_GET[id]'"; $chk_id_res = @mysql_query($chk_id,$connection) or die(mysql_error()); $chk_id_num = mysql_num_rows($chk_id_res); if ($chk_id_num !=1){ $display = "
"; } else { $sql = "SELECT p_name, client, date, descript FROM $table_name WHERE id = '$_GET[id]'"; $result = @mysql_query($sql,$connection) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $p_name = $row['p_name']; $client = $row['client']; $date = $row['date']; $descript =$row['descript']; } } $postedValue = ( stripslashes( $descript ) ) ; if($client !=""){ $display = "

$p_name      

$client      


$postedValue "; } else { $display = " $p_name

$postedValue "; } } ?>

     
 

© Mike Mak Design. 2014