Re: [PHP-DB] Re: Regular Expression

2004-04-18 Thread Kelly Hallman
Apr 18 at 11:01pm, Andy Ladouceur wrote: > Andy Amol wrote: > > I would like to test whether a given sting contains only character, it > > should also support spaces. eg "Course Book String". I am able to test > > "CourseBookString". Also I would like to know how can we avoid wild > > chars like *,

[PHP-DB] Re: Regular Expression

2004-04-18 Thread Andy Ladouceur
A regexp like this should work: /^([a-zA-Z]|\s)+$/ Cheers, Andy Ladouceur Andy Amol wrote: Hi, I would like to test whether a given sting contains only character, it should also support spaces. eg "Course Book String". I am able to test "CourseBookString". Also I would like to know how can

Re: [PHP-DB] How to write file & store file-name to DB...

2004-04-18 Thread Marcjon Louwersheimer
http://ca2.php.net/manual/en/ref.filesystem.php Look here for write or fwrite. That should be what you want. -- Marcjon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] How to write file & store file-name to DB...

2004-04-18 Thread Sukanto Kho
Hi, I want to save pages that show records for each user's identity, to HTML files then add the file-name to database.. Each page contain information of certain user.. How to save page to HTML file with PHP...?? Nicholas Sk2 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP-DB] Regular Expression

2004-04-18 Thread andy amol
Hi, I would like to test whether a given sting contains only character, it should also support spaces. eg "Course Book String". I am able to test "CourseBookString". Also I would like to know how can we avoid wild chars like *, or any other char apart from alpha numeric char. Thanks.

[PHP-DB] Re: Double Submission into DB if Hit Refresh

2004-04-18 Thread Torsten Roehr
"Craig Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is the best way to avoid data being resubmitted (entered twice) to > DB (mysql) if the user hits refresh after POSTING data via a form? You can make it even more easy for inserts by using the SQL command IGNORE. Jus

[PHP-DB] Storing route in DB

2004-04-18 Thread Robert Ian Smit
Hi, I am not sure if my issue can be partially solved by a good database design or that all stands or falls with the application. If I have a bunch of locations in a table and I want to describe a route between a number of these locations, what's the best way to do it, considering that it must b