Re: [PHP] Random Images

2003-02-05 Thread V Dub
Tom! Here's one way: I named all of the images to display 1.jpg - 7.jpg This code is at the top of the page: ?$jpg = rand(1,7);? I have this code where I want the image to appear: img src=img/?print $jpg;?.jpg width=632 height=422 HTH VW Quoting Tom Ray [EMAIL PROTECTED]: ### I'm trying

Re: [PHP] HTML if no PHP

2003-02-04 Thread V Dub
Quoting Bob Lockie [EMAIL PROTECTED]: ### ### I want to display an HTML page if PHP can't load an include file or ### otherwise has an error or just doesn't work. ### How do I do this? ### if (!$variable){print('your html stuff');} Kinda basic, but it might help. Cheers! VW ### ### --

Re: [PHP] Money format

2003-01-30 Thread V Dub
http://php.net search in functions for number_format Cheers! Quoting Ben Edwards [EMAIL PROTECTED]: ### I wish to format money with a £ sign, two decimal places and commas ### separating thousands. I seem to be able to do the £ and decimal places with ### ### sprintf or use money_format to

Re: [PHP] chat rooms

2003-01-29 Thread V Dub
Go to Hotscripts.comPHPScriptsandProgramsGroupware and download PhProjekt - chat and a whole lot more Could be too much, I dunno! VW Quoting Edward Peloke [EMAIL PROTECTED]: ### Does anyone have any suggestions for a good small FREe chat room to add to ### a ### family site? A friend here at