/    Sign up×
Community /Pin to ProfileBookmark

problem with href

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[/url] will go to same result libya book ///and the result will be different every time …

(the column is {g_wep}
========================================================


[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’>&#1575;&#1587;&#1605; &#1575;&#1604;&#1583;&#1604;&#1610;&#1604;</th><th width=’120′>&#1575;&#1604;&#1606;&#1588;&#1575;&#1591;</th> <th width=’80’>&#1585;&#1602;&#1605; &#1575;&#1604;&#1607;&#1575;&#1578;&#1601;</th> <th width=’110′>&#1575;&#1604;&#1576;&#1585;&#1610;&#1583; &#1575;&#1604;&#1575;&#1604;&#1603;&#1578;&#1585;&#1608;&#1606;&#1610;</th><th width=’90’ >&#1575;&#1604;&#1605;&#1608;&#1602;&#1593; &#1575;&#1604;&#1575;&#1604;&#1603;&#1578;&#1585;&#1608;&#1606;&#1610;</th><th width=’70’>&#1575;&#1604;&#1605;&#1606;&#1591;&#1602;&#1577;</th><th width=’200′><div align=’right’></div>&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606;</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>&nbsp;</p>
</body>[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @moktar1985 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...