Jump to content

how to pass html link in mysql where condition


beboo002

Recommended Posts

hello all

 

1.->I am facing some problem how html link value pass to mysql select query in where condition here i am paste my html code and mysql code.

2->and also want that same mysql select code pass to page to page and pick the page to page link pass to where condition like this site

 

http://www.offshoreoutsourcingsite.com/

 

database coding

 

 

<?php

$con = mysql_connect("localhost","root","")

or die("Could not connect ");

mysql_select_db("offshore", $con)

or die("could not find db");

$select1 = "select reciprocallinkurl from recordonsubmit

where category='2d and 3d animation'"; (need here link)

$result = mysql_query($select1,$con);

echo "<table border=1>

<tr>

<th>Reciprocal Link URL</th>

 

</tr>";

while($row = mysql_fetch_array($result))

{

 

echo "<tr><td>";

echo $row['reciprocallinkurl'];

echo "</td></tr>";

}

echo "</table>";

mysql_close($con);

?>

thanks for reply

but i connot use catagory value like 2d and 3d animation in here i pass link value

<html>

<body>

<a href = "2d and 3d animation.html">2d and 3d animation</a>

</body></html>

here my qus. is how i am pass 2d and 3d animation link to where conditions.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.