[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 comma

[PHP] displaying latest DB entries

2001-07-19 Thread Jamie Saunders
? I don't 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,

[PHP] capatalising letters

2001-07-04 Thread Jamie Saunders
Hi, I've got a list of strings in the following format: item one item two item three What I'd like to do now is to capitalise the first letter of each word so the list becomes: Item One Item Two Item Three Can anyone tell me how to do this? Thanks. Jamie Saunders [EMAIL PROTECTED]

[PHP] multiple entries in the same field

2001-07-04 Thread Jamie Saunders
ly by simply changing each comma to a '' 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] shtml includes

2001-07-01 Thread Jamie Saunders
t to be able to look for the 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: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] reading records alphebetically

2001-06-30 Thread Jamie Saunders
ich field 'name' 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: [E

[PHP] resetting the pointer in a MySQL database table

2001-05-09 Thread Jamie Saunders
ay 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] 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 Ma

[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 t

[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. Jami

[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 unsubscri

[PHP] integer checking problem from query string

2001-04-28 Thread Jamie Saunders
Hi, I'm submitting a phone number from an HTML form to a PHP page that examines it to see if it's an integer: form.html: validate.php: However, for some reason the script doesn't recognize the number as an Integer - why is this and how can I remedy it? Jami

[PHP] grabbing variables from the query string

2001-04-28 Thread Jamie Saunders
ed in the PHP manual but can't find 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: [E

[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-

[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