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);

?>

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.