require("conn.php");
$sql = "select * from pemohon where kp_baru='$kp';";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
if($row == TRUE)
{
echo $row['kp_baru']; // can display
}
else
{
echo "No KP tiada didalam pangkalan data."; // can't display
}
}
dina85 0 Light Poster
RoryGren 2 Junior Poster in Training
dina85 0 Light Poster
TonyG_cyprus 36 Newbie Poster
RoryGren 2 Junior Poster in Training
dina85 0 Light Poster
minitauros 151 Junior Poster Featured Poster
dina85 0 Light Poster
minitauros 151 Junior Poster Featured Poster
dina85 0 Light Poster
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.