suelow
asked on
How to display the select result at the same page ?
Hi,
I'm now doing a searching program, and I wish to display the search result at the same page where the searching keyword is on top and the result result is at the bottom of the page. What is the best way of doing it ?? Please provide me some sample code. Thanks..
p/s : Is it possible to do it without using frame ??
I'm now doing a searching program, and I wish to display the search result at the same page where the searching keyword is on top and the result result is at the bottom of the page. What is the best way of doing it ?? Please provide me some sample code. Thanks..
p/s : Is it possible to do it without using frame ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
one curly braces "}" is missing ..
add that bfore ur clossing PHP tah "?>"
Hope this helps..
Lk
add that bfore ur clossing PHP tah "?>"
Hope this helps..
Lk
ASKER
HAHA..I got it... thanks !! :-)
ASKER
I have tried the following code .. but there is an error
"Parse error: parse error in /usr/local/apache/htdocs/o
and I dun know why how to fix the error. Coz I have check the code. It seems there is no syntax error.. pls advice.
Code:
-----------------
<html>
<head>
<title>Testing</title>
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="<?php echo $PHP_SELF?>">
<p>From Supplier :
<input type="text" name="fromSupp">
To Supplier :
<input type="text" name="toSupp">
</p>
<p>From Nd :
<input type="text" name="fromNd">
To Nd :
<input type="text" name="toNd">
</p>
<p>From Vd :
<input type="text" name="fromVd">
To Vd:
<input type="text" name="toVd">
<input type="submit" name="submit" value="Submit">
</p>
</form>
<?php
if($submit)
{
$db = mysql_connect("localhost",
mysql_select_db("Optics", $db);
$result=mysql_query("selec
$myrow=mysql_num_rows($res
if ($myrow=mysql_fetch_array(
echo "<table width 100% style=font-size:11; font-family:arial><tr BGCOLOR=#8099E6>
<td width=8%><div align=center><b><font color=#ffffff>Glass Type</font></b></div></td>
<td width=10%><div align=center><b><font color=#ffffff>Desc</font><
<td width=8%><div align=center><b><font color=#ffffff>Suppplier</f
<td width=8%><div align=center><b><font color=#ffffff>ND</font></b
<td width=8%><div align=center><b><font color=#ffffff>VD</font></b
do {
printf("<TR bgcolor=#f7f7f7><TD><div align=center>%s</div></TD>
} while($myrow = mysql_fetch_array($result)
echo "</table><br>";
}
?>
</body>
</html>