[PHP] selecting words

2001-08-07 Thread Jamie Saunders
Hi, What I'd like to do is take a string (paragraph) of text consisting of say 500 words and display only the first 100 words. Is there a function able to do this? Thanks. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] resetting the pointer in a MySQL database table

2001-05-09 Thread Jamie Saunders
of resetting it? Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] simple form validation

2001-04-26 Thread Jamie Saunders
Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm currently working on a Computer Studies project for a local business which involves setting up several databases

[PHP] reading records alphebetically

2001-06-30 Thread Jamie Saunders
' beings with A } else if ($letter = B) { ... I'm just starting out on this, so please excuse my ignorance :) Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] shtml includes

2001-07-01 Thread Jamie Saunders
What I would like to happen is for the PHP script to be able to look for the !-- include -- tags within the text files and parse them as PHP include(); tags. Is there any way of achieving this? Thanks. Jamie Saunders -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] multiple entries in the same field

2001-07-04 Thread Jamie Saunders
by simply changing each comma to a 'br' in the script? Thanks. Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] displaying latest DB entries

2001-07-19 Thread Jamie Saunders
want to list the last 5 records entered from each table but from the whole database. Is there any easy way of doing this? Thanks. Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Newbie question - adding vars

2001-04-28 Thread Jamie Saunders
Hi, How do you add text vars together e.g. $varone = hello; $vartwo = world; $varthree = ($varone, $vartwo); Obviously the above example doesn't work so can someone tell me how to do this? Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing

[PHP] grabbing variables from the query string

2001-04-28 Thread Jamie Saunders
any information relating to the query string. Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] integer checking problem from query string

2001-04-28 Thread Jamie Saunders
($phonenumber)) { echo Integer; } else { echo Not Integer; } ? /html However, for some reason the script doesn't recognize the number as an Integer - why is this and how can I remedy it? Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General

[PHP] adding text to a variable name

2001-05-01 Thread Jamie Saunders
Hi, Is it possible to add text onto the end of a variable name? e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] searching a MySQL database

2001-05-06 Thread Jamie Saunders
Hi, I've set up a MySQL database and an HTML search form. I'd like to know how to search the database with whatever it entered into the form. It only needs to be a simple search, returning anything that matches the word(s) entered into the input box in the form. Thanks. Jamie Saunders

[PHP] if string contains...

2001-05-06 Thread Jamie Saunders
Hi, I want to check whether a string contains a certain word e.g. $varOne = this is a string; if ($varOne contains is) { return true; } else { return false; } Is there an operator for 'contains', if not how do you do this? Thanks. Jamie Saunders Mail

[PHP] URL redirection

2001-05-06 Thread Jamie Saunders
Hi, Is there a PHP function that will redirect the current page to another url? e.g. if ($varTwo == $varOne) { URL redirection code } else { echo You stay right where you are!; } Thanks. Jamie Saunders Mail: [EMAIL