[PHP] Re: Select from 24 tables

2004-05-01 Thread Richard A. DeVenezia
.* from t24 where t24.list like "$criteria" ; This query can be created by 1. storing all the table names in an array 2. constructing the individual select portion using array_map() 3. combining all individual selects using join($selects, 'union') -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP, MySQL and Foreign Keys - relations()

2004-04-30 Thread Richard A. DeVenezia
1] => price [2] => reserved [3] => ticket ) ) ) [venue] => Array ( <-- table, no foreign keys [referential] => Array ( [Id] => Array ( <-- column id of this table is referred to by 5 other tables [0] => event [1] => paymenttype [2] => seat [3] => seatclass [4] => venueuser ) ) ) ... -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adult content censoring

2004-04-25 Thread Richard A. DeVenezia
byte code > 128 f replaced with any f looking characters with byte code > 128 Read a spample erectile dysfunction or pain medication mail to get the idea. Definition: spample - Spam samples; a sampling of spam. -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/

[PHP] Shared session ? (frames application)

2004-04-25 Thread Richard A. DeVenezia
$src as $line) { echo "document.writeln('${line}');\n"; } ?> //--> - left.php - Left Is it possible to access (read/write/set/unset) the variables of session ? - main.php - Main Is it possible to access (read/write/set/unset) the variables of ses

[PHP] SQL like processing on array of keyed arrays ?

2004-04-21 Thread Richard A. DeVenezia
Suppose I don't have access to a database server. I have any indexed array of like keyed arrays, essentially mimicing a database table. Are there any libraries or functions that I can use to 'query' the array in a SQL like manner ? e.g. $data = array (array(a=>1,b=>2,c=>3) ,array(a=>2,b=>3,c=>4)

Re: [PHP] [4.3.4] Can't ksort a subarray

2004-03-25 Thread Richard A. DeVenezia
Red Wingate wrote: > while (list($key,$dim2) = each ($A)) { > uksort ( $A[ $key ] , "strcasecmp"); > } > print_r ($A); > > $dim2 will not change $A[ $key ], so you will have to change your > script to alter them directly. > > -- red > Like thus: uksort ($myArray, "strcasecmp"); foreach (arr

[PHP] [4.3.4] Can't ksort a subarray

2004-03-25 Thread Richard A. DeVenezia
I have this little code. I want all arrays sorted case insensitive key order, but only the first dimension gets key sorted properly Thanks -- Richard A. DeVenezia array ( "x" => 1, "Z" => 2, "y" => 3) , "b" => array ( "z"

[PHP] Any security issues with preg_match and web form input ?

2003-12-09 Thread Richard A. DeVenezia
erm != "") { ... $contents = join ("", file($file)); if (preg_match ("/$search_term/i", $contents)) { } ... } Thanks, -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Richard A. DeVenezia wrote: > [snip] > > I can do > > - site.com/info/template.html and get two alerts > > - site.com/info/content1.html and see a new text under H1 > > -

[PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
Help: --- problem My page generated via a template can't find some javascript. setup I am hosted on Apache 1.* I have a folder containing many *.html containing content which I want to be displayed in another style of page. Suppose there is foo/ foo/content1.html ... foo/contentN.html fo