[PHP] How is this done?

2001-08-06 Thread mjriding
Being the golf enthusiast I am, I'm always visiting a few interesting golf stie. The one I visit most is www.golfinohio.com. They have a rotating banner ad at the top of their page, but, as I view the source of the page, I notice that it displays one image on some banners, two or three on other

Re: [PHP] get value

2001-08-06 Thread mjriding
$data=mysql_fetch_row($result); $count=$data[0]; That's it! On Mon, 6 Aug 2001, Jeremy Morano wrote: > hi,,, > > can someone tell me how to access the value of count? please? > > - > $db = @mysql_select_d

Re: [PHP] No php.ini?

2001-03-28 Thread mjriding
You should look in one of the following areas: /etc /etc/httpd /etc/httpd/conf /user/local You may also want to use the locate instead of find. locate php.ini should do it. Michael Ridinger On Wed, 28 Mar 2001, Zhu George-CZZ010 wrote: > Someone else installed the PHP4.0.4, but I couldn't f

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread mjriding
How about something like this: $secs = number of seconds; $hours = intval($secs/360); $minutes = intval(($secs-$hours*360)/60) $seconds = $secs - $hours*360 - $minutes * 60; Hope this helps. Michael Ridinger On Mon, 19 Mar 2001, Yoshi Melrose wrote: > Can someone direct me or send me a scrip

Re: [PHP] Generate Random Letters?

2001-03-09 Thread mjriding
You could use: select char(rand(128)); Will dispaly character with ascii value of 0 - 128. Thanks, Michael Ridinger On Fri, 9 Mar 2001 [EMAIL PROTECTED] wrote: > I know it is possible to generate a random number using rand() I don`t > suppose there is anyway to generate a random letter seq

Re: [PHP] Undefinded Index on Mysql Result under Win98/PWS

2001-02-23 Thread mjriding
Check your php.ini file. The line for error report is set to E_ALL by default. Change it to E_PARSE so that minor errors (like the one you mentioned) aren't reported to the screen. Thanks. On Fri, 23 Feb 2001, Greg Kopp wrote: > I am using PHP4 + MySQL + PWS + Windows 98. > > We are tryi

Re: [PHP] Parsing a string

2001-02-23 Thread mjriding
Yes... you can use the explode function. Example: if $item where "Hello,There", $parts[0] would = "Hello" and $parts[1] would = "There". Thanks, Mike Ridinger On Fri, 23 Feb 2001, Todd Cary wrote: > I have a comma delimited string that I need to parse into an array. Is > there a PHP funct