954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make Link of PHP Echo Dynamic Result

Dears
I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows.
Now I want to make a hyperlink on count so it can show all details of query in new .
How I can make echo"$num_rows \n"; dynamic link.

$result = mysql_query("SELECT * FROM lims_payment WHERE `crDate` LIKE '0000-00-00' AND `cDate` NOT LIKE '0000-00-00' AND `Reasons` !=  ''");
$num_rows = mysql_num_rows($result);
echo "$num_rows \n";
ayesha789
Posting Pro in Training
496 posts since Jun 2009
Reputation Points: 17
Solved Threads: 7
 

link to num rows?
do you mean like this

echo "<a href='youpage.php?id=$num_rows'>$num_rows</a>";
praveen_dusari
Posting Whiz in Training
204 posts since Jun 2008
Reputation Points: 21
Solved Threads: 29
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You