[PHP] String function

2002-11-28 Thread Shaun
Hi, Please can someone tell me how i can tell if a string contains a full stop? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date

2002-12-03 Thread Shaun
Hi, please could someone tell me how i can return a month in text from an int ie getMonth(12) returns Decmber. Is this possible? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date

2002-12-03 Thread Shaun
weleve and want to revert back to january? Thanks for your input "Dl Neil" <[EMAIL PROTECTED]> wrote in message 0ebf01c29ad8$1d733c60$c900a8c0@jrbrown">news:0ebf01c29ad8$1d733c60$c900a8c0@jrbrown... > Hi Shaun, > > > please could someone tell me how i can re

[PHP] Move Database

2002-12-09 Thread Shaun
Hi, I am moving my site from one server to another, how can i copy all the data in my datbase to my new server? Also is it possibel to do this one table at a time? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Table backup

2002-12-09 Thread Shaun
Hi, I am trying to backup my database can someone please tell me why the following commande wont work? mysqldump -h localhost -u username -p databasename > backup.sql thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Table backup

2002-12-09 Thread Shaun
OTECTED]... Take off the " > backup.sql" and see if you get any error's that might explain it. On Mon, 2002-12-09 at 10:07, Shaun wrote: Hi, I am trying to backup my database can someone please tell me why the following commande wont work? mysqldump -h localhost -u username -p

[PHP] upload image

2002-12-11 Thread Shaun
Hi, i am using a form to upload an image to the server, is it possible to get the image size during this process so i can store it for later use (i.e. determining the size of the popup window to view the image)? thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Add column to table

2002-12-11 Thread Shaun
Hi, please could someone tell me what the sql command is to add a colummn to a table? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Random Number Genertation

2002-12-18 Thread shaun
Hi, Say i have a set of non sequential numbers for example: 1 3 8 12 13 16 19 21. How can i get php to take a random number from this set? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Empty textfield

2002-12-18 Thread shaun
Hi, what is the best way to check if a textfield is empty, and is it the same for file fields? thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check Uploaded File

2002-12-19 Thread shaun
Hi, Is it possible to ensure that a user is uploading a jpeg file from a form and nothing else? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image resizing

2002-12-19 Thread shaun
Hi, My webserver doesn't have the GD library installed, please can someone tell me how I can resize uploaded images for thumbnails? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Number of rows

2003-03-04 Thread shaun
Hi, I am using the folling code to list all of my tables in a database: Table Action Records "; while ($row = mysql_fetch_row($result)) { print " $row[0] add data edit data

[PHP] MySQL Query

2003-03-04 Thread shaun
Hi, Is there a way of updating a table so that I can add some sort of identifier to each field, something as simple as x=1 will do. I want to be able to modify the table so I can set a variable for each column so I can tell whether I can let a user modify that field. If I modify the fieldname then

[PHP] Calendar Controls

2003-03-05 Thread shaun
http://calendar.msn.com/ has some great controls for veiwing dates day/week/month view etc. Are these windows specific (ie ASP only) or ise there a way to use these in my PHP? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Checking for empty values sent from a form

2003-03-06 Thread shaun
Is there an easy way to scan through an array of values sent from a form to see if any of them are empty? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread shaun
$_POST['your_input_name'] == '' ) //etc // field is empty this would be particularly useful for forms with lots of fields... "Niels Andersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since input from a form are strings, you can

[PHP] Content Management Systems

2003-03-09 Thread shaun
I would really appreciate some advice from anyone who has worked with or developed their own content management system. This is my scenario, when i have finished creating a site, i want to be able to add in the CMS with a minimum amount of fuss. I want to be able to get the CMS to recognize all th

[PHP] List tables

2003-03-15 Thread shaun
Hi, i would like to list all of the tables and field names in my database e.g. table 1 field 1 field 2 field 3 table 2 field 1 field 2 field 3 table 3 field 1 field 2 field 3 etc is there a simple way to do this? thanks for your help -- PHP General Mailing List (http://ww

[PHP] Scrolling through values sent from a form

2003-03-16 Thread shaun
Hi, i have a form on a page which is built dynamically and consists of fields in a certain table and checkboxes. The puropse of the form is to update the the status of a table called CMS_FIELDS which stores data of all the fields for all the tables in the database. Using the following code i am a

[PHP] PHP Upgrade Problem

2003-07-24 Thread Shaun
Hi, The following code snippet is supposed to return the current page i am on and append some variables. $s = getenv('SCRIPT_NAME'); $link = "$s?month=$month&year=$year&goto_date=yes"; However, since upgrading to PHP version 4.3.2 it returns the following URL: execscriptdir/php.cgi?day=19&month

[PHP] Get the current file name

2003-07-25 Thread Shaun
Hi, due to a current PHP upgrade i am unable to use the following code to get the filename of the page: $s = getenv('SCRIPT_NAME'); I need to get the filename without any avariables attached. For example if the URL is www.mydomain.com/test.php?test=yes using $s = getenv('PHP_SELF'); returns t

Re: [PHP] Get the current file name

2003-07-25 Thread Shaun
thanks for your reply, but that doesn't seem to work either, how about removing everything after and including the ?, how would i do that? "Manoj Nahar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > u can try > $filename=$_SERVER[SCRIPT_NAME];

[PHP] Frames

2003-03-17 Thread shaun
Hi, I am designing a system which will have a different menu option for different users i.e. admin/standard etc. If I am using frames how could I change the page a user sees in the top frame for each different type of user? I know how to do this with standard pages, its just the frames that are p

[PHP] Re: (newbie) how to redirect to html page from php

2003-03-17 Thread shaun
i use two files for this purpose as i use sessions to check the user is always logged in: validate_session.php authenticate_user.php: you would want to replace authorization_required.php with login.php. i hope this helps "Bobby Rahman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

[PHP] Session problem

2003-03-17 Thread shaun
Hi, I get the following error when using using the following script to authenticate a user. The login form is inside a frameset, is this whats causing th eproblem, and is there a way round this? Warning: Cannot send session cookie - headers already sent by (output started at /home/w/o/workmanagem

Re: [PHP] Session problem

2003-03-17 Thread shaun
gt; session_start(); > require("... > ... > > or > > ob_start(); > require("... > ... > > You're trying to output stuff to the screen (which implicitly sends the > headers) then trying to send more headers by calling session_register() > (which implicitly c

[PHP] User Authentication

2003-03-18 Thread shaun
Hi, Using the following code I am able to authenticate which type of user is visiting my page, however if I try to log in again with a different type of user the session variables still assume that the original user was logged in, is there a way to reset the session variables, I have tried session

Re: [PHP] User Authentication

2003-03-18 Thread shaun
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- shaun <[EMAIL PROTECTED]> wrote: > > Using the following code I am able to authenticate which type of user is > > visiting my page, however if I try to log in again with a d

Re: [PHP] User Authentication

2003-03-18 Thread shaun
;something'; > > instead of: > > session_register("ses_name"); > > session_register("ses_pass"); > > session_register("ses_level"); > > All $_SESSION entries are automatically registered. > > See the following for more info > http

Re: [PHP] User Authentication

2003-03-18 Thread shaun
27;ses_pass'] = 'something'; > $_SESSION['ses_level'] = 'something'; > > instead of: > > session_register("ses_name"); > > session_register("ses_pass"); > > session_register("ses_level"); > > All $_SESSION entrie

[PHP] MySQL Date

2003-03-19 Thread shaun
Hi, I have a date stored in a table in my MySQL Database using a DATE type for the column. How can i compare the date in the table to today e.g. $today = mysql_result($result, $i, Booking_Date); if($today = *HELP*){ echo "you are booked today"; }else{ echo "you are free today"; } than

[PHP] date problem

2003-03-19 Thread shaun
hi, using date(dS); how can i can increase the days so that it shows 19th 20th 21st I have tried while ($i < 2){ $day++; echo' '.$day.''; $i++; } but i get: 19th 19ti 19tj thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] Date Conversion

2003-03-19 Thread shaun
Hi, when retrieving a date from MySQL in n/MM/DD, how can I present this to the user of a site in readable format i.e. 19th March 2003? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Srange error

2003-03-20 Thread shaun
Hi, I would be very grateful if someone could explain to me why this is happening. I am trying to convert a date sent from a textfield. The textfield is initially populated by a JavaScript calendar control. Using the following code I am attempting to read in the date sent from the textfeild: //i

[PHP] Increase a month

2003-03-20 Thread shaun
Hi, could someone tell me why this: "; $month = $month + 1; echo "\$month: ".date(F,strtotime($month)).""; ?> outputs this: $month: March $month: March surely it should be: $month: March $month: April Thanks in advance for your help. -- PHP General Mailing List (http://www.php.net/

[PHP] mysql_close();

2003-03-21 Thread shaun
hi, I include a file called bottom.php which goes at the bottom of all my pages and looks like this:   I use this to make sure that I haven't left a connection open accidentally, however I sometimes get an error message even though I am using the @ symbol: Warning: mysql_close(): n

[PHP] php and javascript

2003-03-21 Thread shaun
Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to enable me to select all of the checkboxes on my form.