hello every body
i have problem with href
when i select the data from database and displys it in the form as table
i want to link the result in the same result
ex: [url]www.libyabook.net
[code]
<?php
“Content-Type: text/html; charset=”windows-1256″n” .// Make a MySQL Connection
mysql_connect(“localhost”,”root”, “”) or die(mysql_error());
mysql_select_db(“libyabook”) or die(mysql_error());
// Get all the data from the “guide” table
//result = mysql_query
//echo ($_GET[‘c_name’]);
//exit();
//select all data in database by select it from the form
$result = mysql_query(“SELECT * FROM guide WHERE c_name ='”.$_GET[‘c_name’].”‘ AND p_name = ‘”.$_GET[‘p_name’].”‘ AND t_name = ‘”.$_GET[‘t_name’].”‘ “)// g_act = ‘”.$_GET[‘g_act’].”‘ ” )
or die(mysql_error());
echo “<table border=’3′ width=’900′ bordercolor=’#FFFFFF’>”;
echo “<tr><th width=’90’>اسم الدليل</th><th width=’120′>النشاط</th> <th width=’80’>رقم الهاتف</th> <th width=’110′>البريد الالكتروني</th><th width=’90’ >الموقع الالكتروني</th><th width=’70’>المنطقة</th><th width=’200′><div align=’right’></div>العنوان</th></tr>”;
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
echo “<tr><td align=’center’><p class=’style1′>”;
echo $row[‘g_name’];
echo “</p></td><td align=’center’><p class=’style1′>”;
echo $row[‘g_act’];
echo “</p></td><td align=’center’><p class=’style1′>”;
echo $row[‘g_pho’];
echo “</p></td><td align=’center’><p class=’style1′>”;
echo $row[‘g_mail’];
echo “</p></td><td align=’center’><a href=$row[‘g_wep’]’><p class=’style1′>”;
echo $row[‘g_wep’];
echo “</a></p></td><td align=’center’><p class=’style1′>”;
echo $row[‘p_name’];
echo “</p></td><td align=’right’ ><p class=’style1′>”;
echo $row[‘g_add’];
echo “</p></td></tr>”;
}
echo “</table>”;
?>
<table width=”800″ align=”center”>
<tr>
<td height=”76″><a href=”#” onMouseOut=”MM_swapImgRestore()” onMouseOver=”MM_swapImage(‘copyres’,”,’image/pic/copy reserved.png’,1)”><img src=”image/pic/copy reserved.png” name=”copyres” width=”751″ height=”30″ border=”0″></a></td>
</tr>
</table>
</div>
<p> </p>
</body>[/code]