Hi I need to data search by php

Reply

Join Date: Sep 2008
Posts: 2
Reputation: afrojazad is an unknown quantity at this point 
Solved Threads: 0
afrojazad afrojazad is offline Offline
Newbie Poster

Hi I need to data search by php

 
0
  #1
Dec 28th, 2008
Hi, I need mysql data searchin by php. But do not complete the data view smothly. so, pls help me.
my data wiew now:
Name: Mobile Blood City Donation date
Sinha 01912266936 A+ Dhaka 9-10-2008
Munna 01917755515 A+ Dhaka 0-0-0000

I want to view my data like this.
Name: Sinha Name: Azad
Mobile: 01912266936 Mobile: 01712266936
Blood Group: A+ Blood Group: A+
City: Dhaka City: Dhaka
Donation Date : 12-12-2007 Donation Date : 12-12-2007

Name: Shamim Name: Karim
Mobile: 01912266936 Mobile: 01712266936
Blood Group: A+ Blood Group: A+
City: Dhaka City: Dhaka
Donation Date : 12-12-2007 Donation Date : 12-12-2007
Previous>>1 2 3 4 <<Next
you can see my website also.
www.bloodfoundationbd.com
Thanks
Azad
afrojazad
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 19
Reputation: ashafaaiz is an unknown quantity at this point 
Solved Threads: 1
ashafaaiz ashafaaiz is offline Offline
Newbie Poster

Re: Hi I need to data search by php

 
0
  #2
Dec 29th, 2008
Originally Posted by afrojazad View Post
Hi, I need mysql data searchin by php. But do not complete the data view smothly. so, pls help me.
my data wiew now:
Name: Mobile Blood City Donation date
Sinha 01912266936 A+ Dhaka 9-10-2008
Munna 01917755515 A+ Dhaka 0-0-0000

I want to view my data like this.
Name: Sinha Name: Azad
Mobile: 01912266936 Mobile: 01712266936
Blood Group: A+ Blood Group: A+
City: Dhaka City: Dhaka
Donation Date : 12-12-2007 Donation Date : 12-12-2007

Name: Shamim Name: Karim
Mobile: 01912266936 Mobile: 01712266936
Blood Group: A+ Blood Group: A+
City: Dhaka City: Dhaka
Donation Date : 12-12-2007 Donation Date : 12-12-2007
Previous>>1 2 3 4 <<Next
you can see my website also.
www.bloodfoundationbd.com
Thanks
Azad

Hi,
I think you have retrieved the data from database. Then no problem, you should design the html form using tables and display whatever you want.

  1. <?
  2. //made database connections here
  3. ?>
  4. <form>
  5. <table>
  6. <?
  7. $q1=musql_query("select * from <tablename>");
  8. while($row=mysql_fetch_array($q1))
  9. {
  10. ?>
  11. <tr>
  12. <td>Name</td><td><? echo $row['Name']; ?></td>
  13. </tr>
  14. <tr>
  15. <td>Mobile</td><td><? echo $row['Mobile']; ?></td>
  16. </tr>
  17. <tr>
  18. <td>Blood Group</td><td><? echo $row['Bloodgroup']; ?></td>
  19. </tr>
  20. <tr>
  21. <td>City</td><td><? echo $row['City']; ?></td>
  22. </tr>
  23. <tr>
  24. <td>Donation</td><td><? echo $row['Donation']; ?></td>
  25. </tr>
  26. <?
  27. }
  28. ?>
  29. </table></form>

i hope it works.
Last edited by peter_budo; Dec 29th, 2008 at 5:48 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: afrojazad is an unknown quantity at this point 
Solved Threads: 0
afrojazad afrojazad is offline Offline
Newbie Poster

I need to data search by php

 
0
  #3
Jan 2nd, 2009
Thank you. I do not want to searh result in sigle colum I want 2 colum with limit.

the page like
Name: Name:
Mobile: Mobile:

<<<Previous 1 | 2 | 3 next>>>
afrojazad
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC