[PHP] pattern matching urls

2002-08-26 Thread tux
hey all, Just wanting some advice on something im doing, basically im storing news into mysql and what i want to do is, when the news is displayed, if a url is in there ie(http://www.blahblah.com OR mailto:[EMAIL PROTECTED]) it will automatically be displayed as a link, im considering using pr

[PHP] image manipulation

2002-08-31 Thread tux
Hey all, I was just wondering if anyone could recommend any tutorials or books or functions i should look into, to do the following: - decrease the size(kilobytes wise not height/width) of an image - imprint a transparent logo onto every picture displayed any feedback greatly appreciated. jo

[PHP] finding next and previous db entries

2002-09-04 Thread tux
hey all, if im displaying pages with data from a database eg www.domain.com/file.php?id=40 on that page i would like to have a previous and next link that would take it to id 41 and 39 respectively, the only problem being what if 39 or 41 was empty? then i would want the link to be id=42 or i