| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | Mysql_query help Hello, ????: NamePros.com http://www.namepros.com/programming/295084-mysql_query-help.html I have got a field in mysql. There is <br> after each entry. The first entry is a link for an image all the time. So in the row it looks like this http://www.google.com/a.gif<br>http://www.yahoo.com<br>http://www.aa.com<br> Ofcourse the links changes for every row. But the first entry is an image file with bmp, gif and jpg extantion at all the time. Is it possible to disregard the first data in this row when i display the results. I mean i do not want to show the first data which is the link of the image. Instead of showing http://www.google.com/a.gif http://www.yahoo.com http://www.aa.com in the results, I want to show http://www.yahoo.com http://www.aa.com Thank you all. |
| |
| | #2 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You couldn't stip out the first part through MySQL, but it's simple with PHP. Query for whichever rows you want and then PHP Code: |
| |
| | #3 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | This is how I would do it, except there is probably a better way. PHP Code: ????: NamePros.com http://www.namepros.com/showthread.php?t=295084 Dan beat me to it - and taught me a new function, yay! lol |
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | How can i use that code for $row['links'] Thanks PHP Code: |
| |
| | THREAD STARTER #5 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() |
Thanks It worked. | ||||
| |