Ad:
 
  • PHP Discussion Thread
  • Marked Solved
  • Views: 830
  • PHP RSS
Similar Threads
Mar 1st, 2010
0

How to make Link of PHP Echo Dynamic Result

Expand Post »
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 <div>.
How I can make echo"$num_rows \n"; dynamic link.

PHP Syntax (Toggle Plain Text)
  1. $result = mysql_query("SELECT * FROM lims_payment WHERE `crDate` LIKE '0000-00-00' AND `cDate` NOT LIKE '0000-00-00' AND `Reasons` != ''");
  2. $num_rows = mysql_num_rows($result);
  3. echo "$num_rows \n";
Reputation Points: 13
Solved Threads: 5
Posting Pro in Training
ayesha789 is offline Offline
425 posts
since Jun 2009
Mar 1st, 2010
0

Re: How to make Link of PHP Echo Dynamic Result

link to num rows?
do you mean like this
PHP Syntax (Toggle Plain Text)
  1. echo "<a href='youpage.php?id=$num_rows'>$num_rows</a>";
Last edited by praveen_dusari; Mar 1st, 2010 at 1:53 am.
Reputation Points: 21
Solved Threads: 24
Junior Poster
praveen_dusari is offline Offline
193 posts
since Jun 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: mysql query dropdown
Next Thread in PHP Forum Timeline: session based php mail function.





About Us | Contact Us | Advertise | Acceptable Use Policy
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC