[PHP] Detecting if GET field is Numeric or Alpha numeric

2003-03-18 Thread Stephen of Blank Canvas
Hi Everyone, Does anyone know if it is possible to check the values of a $_GET field and see if the submitted data is numeric or contains any letters. What I want to do is allow users to link to a record in a MySQL db using the record id's and the values of the name field.

[PHP] Does remote file(image) exist ?

2003-01-18 Thread Stephen of Blank Canvas
Hi Everyone, Sorry I have no example code at all for this at all, I know some people don't like that but I just do not know where to start so am asking for help. I have a system there users can put a picture of themselves by method of URL in a MySQL field, however many of this image URL's do

[PHP] Setting session variables from a MySQL field value.

2003-01-15 Thread Stephen of Blank Canvas
Hi Everyone, I'm trying to use MySQL to store some general settings for a site I am working on, which I was then going to access as session variables on pages as needed without having to call the dB each time. However I am having problems setting the name of the session variable in a way that I

[PHP] include option and calling only part of a file.

2002-12-28 Thread Stephen of Blank Canvas
Hi Everyone, I have one file with several sections of code which I have so far accessed using a good old fashioned - - if ($HTTP_GET_VARS['action'] == Update) - - however I now want to include this code within some other web pages, I thought I may be able to use the following code - -

[PHP] How to display field after MySQL join.

2002-12-25 Thread Stephen of Blank Canvas
Hi Everyone, I'm trying to display the content of two mysql tables on a single page, I have successfully joined them with the following statement. $query = SELECT serv.*, cat.* FROM site_services AS serv, site_servicescat AS cat WHERE serv.servicescat_id = cat.servicescat_id AND serv.theme_id

[PHP] Variable Value 2 Session Name

2002-11-05 Thread Stephen of Blank Canvas Group
I'm trying to create what I believe should be a simple script to help with logging users into my site. My problem is that at the top of my script I set a variable with it's value and then at later script I cannot appear to access it. Extract of my code is as follows and fails: $IDField =