i'm new learn php and mysql and i got stuck can't get better logic for my brain i want to get message from page if i type url like index.php?user=user1 and page will show with data table and if username doesn't exist and page show no username found so this example when i type index.php?user=22222 and page show message no username found here my query
<?php
.....
if(isset($_GET['user'])) {
$result = mysql_query("select * from content where username = '" . $_GET['user'] . "' limit 3;");
$get_jml = mysql_query("select count(*) as jml from content");
$jml = 0;
while($h_jml = mysql_fetch_array($get_jml)){
$jml_artcles = $h_jml['total'];
}
}else {}
$jml_page = ceil($jml_articles);
?>
<?php while($data = mysql_fetch_array($result)){ ?>
/*some code here */
<?php } ?>
what can i add or change my query above sorry my english bad
thanks