[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image.

[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image.

[PHP] Request for...

2007-01-20 Thread Wikus Moller
Hi. Since this is a mailing list for web developers, I thought I might as well post an o f f t o p i c request. Does anyone know of any website where I can get a exe or jar sitemap generating software? Particularly not GsiteCrawler as it uses too much system resources. A java applet would be

[PHP] Get the shortened browser / HTTP_USER_AGENT

2007-01-19 Thread Wikus Moller
Hi. I want to strip everything after a / in the HTTP_USER_AGENT for example: Opera 9.10/blah/blah would become only Opera 9.10 Lets say $user = $_SERVER[HTTP_USER_AGENT]; $browser = (/, $user); Is this correct? Isn't something needed in the browser variable? Thanks Wikus -- PHP General

[PHP] Include files beneath pointed directory

2007-01-18 Thread Wikus Moller
Hi. I have a windows server and I know this issue has been dealt with before but I can't find it, I want to include a file from a directory beneath or aside my home directory. Can I use the C:\directory\anotherdirectory\file.php in the include function like include

[PHP] Table contents not updated

2007-01-08 Thread Wikus Moller
Hi. I am new to uising html forms with php and I am having a problem with database contents not being updated although it seems my coding is correct. It's a xhtml formatted site with html forms: Here are my functions: ? function login($uid, $pwd) { $pass = md5($pwd); $pasw =

[PHP] Re: Table contents not updated

2007-01-08 Thread Wikus Moller
The function page IS included on every page so that wouldn't be what is causing the errors. On 1/8/07, Wikus Moller [EMAIL PROTECTED] wrote: Hi. I am new to uising html forms with php and I am having a problem with database contents not being updated although it seems my coding is correct

[PHP] Search script problem

2007-01-06 Thread Wikus Moller
Hi. I am having problems with a script I wrote which searches keywords from a field in a mysql db table. It is a very simple, one-page script. My site is a toplist, very basic, still in it's infancy. When I go to the page, key in the keywords and press submit, the head, body etc. part of the

[PHP] Re: Search script problem

2007-01-06 Thread Wikus Moller
And the hits_in of the mysql query are the same, I just made a typing mistake. On 1/7/07, Wikus Moller [EMAIL PROTECTED] wrote: Hi. I am having problems with a script I wrote which searches keywords from a field in a mysql db table. It is a very simple, one-page script. My site is a toplist

[PHP] Re: Search script problem

2007-01-06 Thread Wikus Moller
tr class=\m2\td align=\right\$nlink/td/tr; echo tr class=\m2\td align=\left\$plink/td/tr; echo /table; echo div class=\cre\img src=\images/home.gif\ alt=\*\/a href=\index.php?uid=$uidamp;pwd=$pwd\Home/a/div; echo /body; echo /html; } ? On 1/7/07, Wikus Moller [EMAIL PROTECTED] wrote

[PHP] php 5 and register_globals=off gives lotsa errors

2006-12-30 Thread Wikus Moller
Hi to all. I am having huge problems running my script, which worked fine on a server with php 4 and register_globals turned on, on a server with php 5 and register_globals turned off. I get errors around the area in my script where I use $_GET (not the only error). For example the following