RE: [PHP] How to call Calling Non-Existing function

2002-01-22 Thread Tim Ward
This generates a parse error if Draw_Table() doesn't exist rather than returning false, unless there's something in my set up that's different to yours. Tim www.chessish.com -- From: val petruchek [SMTP:[EMAIL PROTECTED]] Sent: 21 Janu

[PHP] RE: Printer funtions

2002-01-22 Thread Tim Ward
Why would you expect these functions to do anything on the client machine? These are for printers attached to the server. Tim www.chessish.com -- From: James Mclean [SMTP:[EMAIL PROTECTED]] Sent: 21 January 2002 23:48 To: [EMA

[PHP] RE: file upload with story

2002-01-22 Thread Tim Ward
I found everything I needed to upload images here: http://www.php.net/manual/en/features.file-upload.php Tim www.chessish.com -- From: will hives [SMTP:[EMAIL PROTECTED]] Sent: 2

RE: [PHP] Nobody know nothing about? Php login scripts using PHP4.01, Apache3.01 CGI on W2K

2002-01-22 Thread Tim Ward
Use html form for user input with text field for user name and password filed for password. Hold password encrypted using MySQL password() function and check login by "SELECT * FROM users WHERE user='$user' AND pass=PASSWORD($password)". If (mysql_num_rows($result)) login = true; Tim www.chessish

RE: [PHP] PHP-JavaScript

2002-01-21 Thread Tim Ward
5:59 > To: Tim Ward > Cc: Mårten Andersson; [EMAIL PROTECTED] > Subject: Re: [PHP] PHP-JavaScript > > Unfortunately, that won't work if the value of the JS variable needs to > change dynamically based on user interaction; document.write() only > works as the pa

[PHP] RE: recursive

2002-01-21 Thread Tim Ward
I'm not quite sure what you're having difficulty with, but this is, in principle, like mapping a file system structure ... which I do like this: function sitemap($path) { if ($dhandle = opendir($path)) { echo(""); while ($file_name = readdir($dhandle))

[PHP] RE: Printing structure and data of array

2002-01-21 Thread Tim Ward
Foreach($array as $key=>$value) ech0("$key=>$value"); Tim www.chessish.com -- From: Daniel Alsén [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 19:33 To: PHP List Subject: Printing structure and data of array

RE: [PHP] PHP-JavaScript

2002-01-21 Thread Tim Ward
Or get the JS to rewrite a query string in a link, but personally I wouldn't rely on JS that far. Tim www.chessish.com -- From: Richard Crawford [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 23:32 To: Mårten Andersson

[PHP] RE: While on array?

2002-01-21 Thread Tim Ward
Foreach($anotherarray as $key=>$value) Tim www.chessish.com -- From: Daniel Alsén [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 20:30 To: PHP List Subject: While on array? Hi, i am fiddling with a

[PHP] RE: Beginner: Open URL

2002-01-16 Thread Tim Ward
If you mean redirection, then try the header() function in the on-line manual. Tim www.chessish.com -- From: Tommi Trinkaus [SMTP:[EMAIL PROTECTED]] Sent: 16 January 2002 08:04 To: [EMAIL PROTECTED] Subject: Beginner:

[PHP] RE: PHP array or SQL problem

2002-01-15 Thread Tim Ward
An option is to create a sortfield in your query, something like "SELECT *, CONCAT(nickname, fname) AS sortfield FROM ORDER BY sortfield". I'm assuming MySQL and haven't actually tested this. You may need to check the sql documentation for some of the details. Tim www.chessish.com

[PHP] RE: checkboxes vs text filed array and hidden variables

2002-01-15 Thread Tim Ward
Sounds to me like your problem is that only the checkboxes that are checked are passed back. e.g. for ($I = 1; $I <= 10; $I++) { echo(""); echo(""); echo(""); echo(""); } when the form is submitted 2 arrays are posted, textfield and cbox. Textfield has 10 elements bu

[PHP] RE: serial array vs. hash....

2002-01-09 Thread Tim Ward
As far as I know all arrays in php are hash arrays. Your "serial" array is actually a hash array with numeric keys, so in your example using numeric keys and having to loop through them has nothing going for it. I'm sure someone will tell me if I'm wrong. Tim www.chessish.com

RE: [PHP] global generation

2002-01-08 Thread Tim Ward
-- From: Boget, Chris [SMTP:[EMAIL PROTECTED]] Sent: 07 January 2002 19:20 To: 'Kevin Stone'; Rodney Davis; [EMAIL PROTECTED] Subject: RE: [PHP] global generation > Wait until after the for loop has completed. > for ($i=0; $i<

[PHP] RE: bcc

2002-01-07 Thread Tim Ward
If you mean blind carbon copy on e-mails then www.php.net/manual/en/function.mail.php explains how to do it. If you mean anything else please elaborate Tim www.chessish.com -- From: Deependra B.

[PHP] RE: File opening, writting and location

2002-01-04 Thread Tim Ward
http://www.php.net/manual/en/ref.filesystem.php everything you need is here, in particular fgets. What you'll need is something like ... If ($fhandle = fopen("filename", "r")) { while ($fline = fgets($fhandle) && ++$count < $X) {

[PHP] RE: application variable

2002-01-04 Thread Tim Ward
I think what you mean is sessions, but that can't really do what you want. The best you can do is record on the database when the user last accessed a page of the site and infer if they are currently logged in or not. I would be interested to know how ASP does better than this in a response drive

[PHP] RE: array_multisort?

2002-01-03 Thread Tim Ward
If title can be guaranteed to be unique then just amend your code to ... $product = array($id, $title, $price); $shop[$title] = $product; if not then you'll have to make the key unique, something like ... $product = array($id, $title, $price); $sh

[PHP] RE: Help with Sessions - Should be easy =]

2001-12-21 Thread Tim Ward
<http://www.php.net/manual/en/ref.session.php> . Tim Ward www.chessish.com <http://www.chessish.com> -- From: Tomasz Jachimczak [SMTP:[EMAIL PROTECTED]] Sent: 20 December 2001 14:53 To: [EMAIL PROTECTED] Subject: Help with Sessions - Should b

RE: [PHP] Logo proposal

2001-12-11 Thread Tim Ward
Chinchillas are fluffy, and I don't think anyone is using them for their logo. -- From: Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]] Sent: 10 December 2001 16:58 To: PHP Subject: [PHP] Logo proposal Hello world of php-programmers!

[PHP] RE: @file problems w/ remote files

2001-12-11 Thread Tim Ward
How about wrapping the "@file(...);" in an "if(file_exists(...)) {...}" Doesn't seem to give an error at all , even without the @. I've tested this on non-existant domain names and with my firewall internet connection blocked. Tim http://www.chessish.com/ ---

[PHP] RE: "trigger" words

2001-12-07 Thread Tim Ward
Yes, use a combination of file and string (or regex) functions to scan the file for the string you want. Tim -- From: Deron [SMTP:[EMAIL PROTECTED]] Sent: 07 December 2001 02:21 To: [EMAIL PROTECTED] Subject: "trigger" words Is there a

RE: [PHP] Multidimensional array construction

2001-12-07 Thread Tim Ward
I haven't seen the rest of this thread so this may be irrelevant ... but foreach($array as $key=>$value) { $array[$key] = "fred"; } ... alters an array while traversing it. Your case seems more complicated but I would have thought nesting foreaches in this way would allow you to access the

[PHP] RE: How do I convert from perl to php?

2001-11-21 Thread Tim Ward
$required = array($name, $address, $phone); foreach($required as $value) { if (!$value) echo("You left one empty."); } well that's how I'd do exactly that, although if you know the variables then why not just... if (!$name || !$address || !$phone) echo("You left one empty"); that's quick

[PHP] RE: setting member variables out of class

2001-11-01 Thread Tim Ward
1. $telefono is an array (as has already been pointed out) so you need to reference an element 2. you're never actually setting the property in the constructor, your constructor lines should be: $this->telefono = array("Teléfono","Phone"); etc. Tim -

[PHP] RE: php & mysql prob...

2001-10-31 Thread Tim Ward
Your query is invalid, hence $test is false rather than a result set. I usually do if ($test = mysql_db_query( ... )) to trap this. Don't put quotes around table or field names, in your case 'Port$p' should be just Port$p and 'Port$p'.date just Port$p.date. Tim -- From:

[PHP] RE: Array

2001-10-29 Thread Tim Ward
ion"); while ($array = Mysql_fetch_array($result)) $values[] = $array; ... you van then do ... foreach($values as $row) { echo(" {$row["field1"]}, {$row["field1"]}, {$row["field1"]}"); // or whatever you want to do } Tim Ward --

[PHP] RE: PHP object communication

2001-10-25 Thread Tim Ward
see below for comments Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent:

[PHP] RE: PHP object communication

2001-10-25 Thread Tim Ward
new Error(); ... } } at the end of the day, both these are ways of getting around the lack of multiple inheritance Tim Ward -- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 24 October 2001 22:45 To: [EMAIL PROTECTED] Subject: P

[PHP] RE: URL variables

2001-10-25 Thread Tim Ward
They're just there ... If the link is Then in yourpage.php ... echo($yourvar); the only way you may go wrong with this is with scoping, $yourvar isn't available in a function inside yourpage.php. Tim Ward -- From: Clint Tredway [SMTP:[EMAIL PROTECTED]]

[PHP] RE: PHP attempting to parse non-existent files

2001-10-03 Thread Tim Ward
r.html Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Richard Lynch [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, October 03, 2001

[PHP] PHP attempting to parse non-existent files

2001-09-25 Thread Tim Ward
#x27;t found anything relevant. I'm a programmer not a network or web administrator, but here I'm all there is. Any ideas what and/or where the problem is? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www

[PHP] RE: array

2001-09-25 Thread Tim Ward
I can't see where any element of $link is set in the second piece of code. I assume they are separate examples. In the second example I would expect $link[$c] to always be empty. Tim Ward -- From: Jeremy Morano [SMTP:[EMAIL PROTECTED]] Sent: 24 September

RE: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-24 Thread Tim Ward
fair point, ... but you can manipulate them as if they were. This isn't the case with arrays of arrays and multi-d arrays. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer

RE: [PHP] 404 error

2001-09-24 Thread Tim Ward
r. Am I missing something in Apache that will tell the server to check a file exits before it sends the request to the server? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer

RE: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-24 Thread Tim Ward
presented as if it were a 2d array but IT ISN'T. It cannot be manipulated as if it were. $element[0]["id"] and $element[1]["id"] are NOT members of the same array. Tim Ward -- From: Christian Reiniger [SMTP:[EMAIL PROTECTED]] Sent: 23 S

[PHP] RE: Multiple Arrays in OOP

2001-09-24 Thread Tim Ward
quot;=>$option, "quantity"=>$qty) } /* echo "Submitted : ".$productid." ".$option." ".$qty; */ } If I've misunderstood what you're trying to do, let me know Tim Ward -- From: Jamie Smith [SMTP:[EMAIL PROTECTED]] Sent:

RE: [PHP] 404 error

2001-09-24 Thread Tim Ward
7;ve tried everything I can to solve this. Has no-one else out there found this a problem? Tim Ward -- From: Richard Baskett [SMTP:[EMAIL PROTECTED]] Sent: 23 September 2001 22:22 To: Christian Reiniger Cc: PHP General Subject: Re: [PHP]

RE: [PHP] sending a 404 error

2001-09-17 Thread Tim Ward
... and how do you get the server to send a 404 error if the browser calls a page that doesn't exist with a suffix that is marked to be parsed by php? Tim Ward -- From: GATop [SMTP:[EMAIL PROTECTED]] Sent: 17 September 2001 05:44 To: [EMAIL PROT

[PHP] RE: Error trapping, on scripts that don't exist

2001-09-05 Thread Tim Ward
LATED with a hard coded non-existant file name) to confirm it was working for files that do exist. Any ideas on how to get around this? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-discl

[PHP] Error trapping

2001-09-03 Thread Tim Ward
ll need the error trapped. I'm sure I'm not the first person who has come across this, and I'm hoping someone out there has found a way around it. I'm running PHP 4.0.0, Apache 1.3 on NT (yes I know, but our network manager has promised me a linux box) Tim Ward

[PHP] RE: multiple submit buttons

2001-08-29 Thread Tim Ward
idden field before the submits with same name. Tim Ward -- From: Justin French [SMTP:[EMAIL PROTECTED]] Sent: 29 August 2001 08:10 To: php Subject: multiple submit buttons Hi all, I noticed this chunk of code in a site the othe

[PHP] RE: Array's in classes

2001-08-24 Thread Tim Ward
Can't help too much without more code, but the diagnostics I'd use would be foreach() and count() to find out what is there rather than seeing if what I expect to be there actually is. Tim Ward -- From: Scott Mebberson [SMTP:[EMAIL PROTECTED]] Sent:

[PHP] RE: Sorting and foreach of MultiDimensional Array failing

2001-08-24 Thread Tim Ward
ements are. Remember ... there are no multi-dimensional arrays in php, just arrays that can contain arrays (that can contain arrays, etc.) Tim Ward -- From: Montz, James C. (James Tower) [SMTP:[EMAIL PROTECTED]] Sent: 23 August 2001 22:48 To: Php-Gener

[PHP] RE: Multi-dimensional array issue

2001-08-21 Thread Tim Ward
The first thing is that 2-dimensional arrays don't really exist in php. Any element of any array can be another array. The second important point is that all php arrays are associative. If you don't declare the key of an element (e.g. $out[] = "fred") when creating it you get the next integer ava

[PHP] RE: How to download an entire dynamic website?

2001-08-21 Thread Tim Ward
Do you mean make an html copy? If so this is a simplified copy of what I use as the start of building a search engine database for my web site, I think it'll only work on the local database and in this case needs to be in the document root directory to work... Tim function GetPage($file, $root,

RE: [PHP] Creating a javascript array from database data

2001-08-16 Thread Tim Ward
I'm not sure if this is the problem but it is an important point. print "\"$text\""; does not output anything to screen, as with all prints and echos it outputs it to html (in this case within a js function definition). Try viewing the source produced. Tim -- From: Neil

[PHP] RE: problems sorting an associative array...

2001-08-14 Thread Tim Ward
not expect, and therefore not look for. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -- From: Ben Rigby [SMTP:[EMAIL PROTECTED]] Sent: 13 A

RE: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-02 Thread Tim Ward
I'd always understood that mysql doesn't allow multiple statements to be submitted so this post obviously worried me. I did some tests and confirmed that this is not a problem in MySQL queries from PHP. If I'm wrong about this please let me know. Tim -- From: scott [gts]

[PHP] RE: Make associative array from two arrays

2001-08-01 Thread Tim Ward
How about ... foreach ($keys as $key=>$value) $new_array[$value] = $vals[$key]; Tim -- From: elias [SMTP:[EMAIL PROTECTED]] Sent: 01 August 2001 15:16 To: [EMAIL PROTECTED] Subject: Make associative array from two arrays Hello!

RE: [PHP] Counting Multidimensional Arrays

2001-08-01 Thread Tim Ward
I assume that $m = 07; $y = 2001; $d = 31; echo count($this->arrEvents[$y][$m][$d]); is in a method of the class that $someclass is a method of, something like: class fred { function dispcount() { $m = 07; $y = 2001;

[PHP] RE: Newbie: Site search, more than one directory

2001-07-31 Thread Tim Ward
I have used this for a simple site map, it (or at least the principles involved) should do what you want. The trick is to put your search in a recursive function, that calls itself when the file is a directory. function sitemap($path) { if ($dhandle = opendir($path)) { echo(""

[PHP] RE: foreach and multiple arrays

2001-07-30 Thread Tim Ward
Why can't you create the arrays as associative arrays in the first place $fred[] = array("title"=>"Apple","value"=>"Red","size1"=>"10","size2"=>"20"); $fred[] = array("title"=>"Banana","value"=>"Yellow","size1"=>"10","size2"=>"20"); then foreach($fred as $thisfred)

RE: [PHP]MySQL error, what's wrong here..

2001-07-24 Thread Tim Ward
ve you an idea of where it's going wrong Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Chris Cocuzzo [mailto:[EMAIL

[PHP] RE: holding values in a select list on a form

2001-07-23 Thread Tim Ward
the field name to get the appropriate field rather than getting the second field returned from the query (as you are doing). Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html >

RE: [PHP] Can't think of a topic(but help)

2001-07-20 Thread Tim Ward
if you want to generate html versions try ... $flines = file("http://localhost/$path/$file.php";); $fhandle = fopen("$file.html"); foreach ($flines as $line) { fputs($fhandle, $line); } fclose($fhandle); Tim Ward Senior Systems Engineer Please re

[PHP] RE: is this right?

2001-07-20 Thread Tim Ward
looks to me like like GLOBAL $company should be partr of the php code, not sql. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From:

[PHP] RE: screen2

2001-07-20 Thread Tim Ward
7;t do what you want then there's a bug that needs reporting. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Jeremy Morano [

[PHP] RE: Extracting from arrays - alphabetically

2001-07-18 Thread Tim Ward
rray2 as $key=>$element) { if (your_condition) echo("$key $element"); } ... and why do you have the 2 arrays in the first place? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.

[PHP] RE: Output (Urgent!)

2001-07-17 Thread Tim Ward
idth of the client you'll need to dig into the header info sent with the request, or you may need to get javascript to send it back to you, I'm not too sure about this. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this mes

RE: [PHP] How to fetch a "group by" Query?

2001-07-11 Thread Tim Ward
sub totals of "title" quantities by category, or whatever. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: David Robley [mailt

RE: [PHP] Mail slow

2001-06-29 Thread Tim Ward
That sounds like a unix answer, I should probably have said that my web server is NT running Apache. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Mess

[PHP] Mail slow

2001-06-27 Thread Tim Ward
plain text. I'm sure I've seen reference to this problem somewhere but can't remember (or find) where it was. Can anyone out there help? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-

[PHP] RE: Remove value from array

2001-06-26 Thread Tim Ward
are you sure it has not been deleted. If you check to see what's in it and it doesn't exist you'll get the answer that it contains a null value (same as any other non-exitsant variable). Did you do a foreach to check what is actually in the array? Tim Ward Senior S

[PHP] RE: Enter to BR

2001-06-26 Thread Tim Ward
nl2br(). Translating \n to would need str_replace() or some sort of reg exp function. Two carriage returns will be interpreted as which is actually what html does with the tag anyway. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this

[PHP] RE: passing values to a javascript variable

2001-06-22 Thread Tim Ward
have you viewed the source? - could be something to do with the semi-colons or, more likely, what addslashes($data_data) evaluates to. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail

[PHP] RE: Any Golive Users?

2001-05-16 Thread Tim Ward
e a lot of work. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Michael O'Neal [mailto:[EMAIL PROTECTED]] > Sent: 15

[PHP] RE: Needing help hear

2001-05-15 Thread Tim Ward
nt[] = $myrow["email"]; $recipient_list = implode(",", $recipient); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- >

[PHP] RE: Classes and arrays

2001-05-09 Thread Tim Ward
when you reference a property of a class you don't need to say it's a variable, so use $this->item[] instead of $this->$items[$id] and it works okay. I haven't quite worked out why it went wrong in the way it did ... and that'll worry me until I do. Tim W

RE: [PHP] Multi Dimensional Arrays?

2001-05-08 Thread Tim Ward
a recursive function to find the elements in a multi-dimensional array. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: [EMAIL

[PHP] RE: Need help with Database and variables

2001-05-08 Thread Tim Ward
$result = mysql_query($db, "SELECT count(*) AS song_count FROM table_name"); if ($array = mysql_fetch_array($result)) $song_count = $array("song_count"); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect o

[PHP] RE: Searching for array keys

2001-05-04 Thread Tim Ward
if (isset($array["key"])) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Martin Skjöldebrand [mailto:[EMAIL PROTECTED]

[PHP] RE: Sending information between pages???

2001-05-03 Thread Tim Ward
if you post or get the form $choice is there for php. this is how form submission works in php. try this: "); ?> aaa bbb ccc ddd wh Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.co

[PHP] RE: split and array logic

2001-05-02 Thread Tim Ward
$stuff[$key]["browser"] = $dummy[2]; } foreach ($stuff as $element) { foreach($element as $field=>$value) echo("$field=>$value"); } ... should do it. if the strings are more complicated you'll need to look at stristr, substr, etc. Tim Ward

[PHP] RE: session array :-/

2001-05-02 Thread Tim Ward
every time you run mainpage.php, the array is being reinitialised. Lose the line "$myArray=array();". Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html >

[PHP] RE: Get the title from an HTML page

2001-04-30 Thread Tim Ward
$title = substr(stristr($filetext, ""), 7); $title = substr($title , 0, strpos($title , "")); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html >

[PHP] RE: Sizeof a multi-dimensional array??

2001-04-27 Thread Tim Ward
I haven't worked out why, yet. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > S

[PHP] RE: Parsing HTML files from an external web server

2001-04-27 Thread Tim Ward
hope this is of some help. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: James Kneebone [mailto:[EMAIL PROTECTED]] > Sent:

[PHP] RE: getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-25 Thread Tim Ward
this method of sorting arrays by an element of the member arrays. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: [EMAIL PROTECTED] [mailt

RE: [PHP] Is there such an array like $array[][]?

2001-04-25 Thread Tim Ward
(in_array("fred", $array)) echo "fred found"; // prints "fred found" Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Mes

RE: [PHP] Is there such an array like $array[][]?

2001-04-18 Thread Tim Ward
vel2 as $level3) foreach($level3 as $value) echo($value); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > ---

RE: Re[2]: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Tim Ward
manual says that the foreach creates it's own pointer which it obviously doesn't. I can't remember what I was trying to do when I found this, it might have been writing a recursive function Tim Ward Senior Systems Engineer Please refer to the following disclaimer in

RE: [PHP] Updating a value in a session

2001-04-12 Thread Tim Ward
another good way is to use an associative array $session[] as your only session variable, that way you don't need to worry abopout session variables overwriting local or vice versa, so $value as a session variable becomes $session["value"] Tim Ward Senior Systems E

[PHP] RE: Javascript issue

2001-04-12 Thread Tim Ward
all the javascript cares about is the page after it is sent by php. browse the page and view source will show you what the problem is. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail

RE: [PHP] foreach vs. while(list() = each())

2001-04-12 Thread Tim Ward
you can't nest foreach as you should be able to. Ecah foreach is supposed to have it's own pointer in the array, but it doesn't ... this is a known bug. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of thi

[PHP] RE: radio groups in loop form

2001-04-11 Thread Tim Ward
will vary. I'm not sure quite what your problem is or whether this will fix it but it should help the form work as intended. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-discl

[PHP] RE: list files in a diretory

2001-04-10 Thread Tim Ward
ot;); if (is_dir($ddPath . $ddFile)) sitemap($ddPath . $ddFile . "/"); }; closedir($dhandle); echo(""); }; just call it by passing in the path to the directory you want to list and it'll give you a full listing below that point

[PHP] RE: better functionality in query ?

2001-04-06 Thread Tim Ward
your ORDER BY, for an exact imnput, an exact match will always show first. haven't tried this at all but seems sound sql. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html

RE: [PHP] column names

2001-04-05 Thread Tim Ward
SHOW COLUMNS FROM tablename is the MySQL query Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Steve Werby [mailto:[EMAIL PRO

[PHP] RE: Page Counter

2001-04-03 Thread Tim Ward
i have a file with something like this which I include at the top of every page ... Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- >

RE: [PHP] Easy HTML PHP question

2001-03-29 Thread Tim Ward
seudo code) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]] > Sent: 29 Mar

[PHP] RE: Protect images in directory

2001-03-28 Thread Tim Ward
how about keeping the images off of the root and getting php to create copies just for the request. I haven't really thought this through, but it sounds plausible. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message:

RE: [PHP] Easy HTML PHP question

2001-03-28 Thread Tim Ward
he's right, but what about using the onclick event of the image to store a value in a hidden field (I haven't tried this but there's no reason to think it won't work) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect o

RE: [PHP] Blah I'm Stupid

2001-03-27 Thread Tim Ward
if (isset($url) && isset($text)) { $fp = fopen("file.txt", "w"); $anothervar = fputs($fp, "$text", "r+"); $anothervar = fclose($fp); } echo ""; echo ""; echo ""; echo ""; echo "&

[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
'] is therefore lees ambiguous and so safer (and may even be a nano second faster). Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- >

[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
'] is therefore lees ambiguous and so safer (and may even be a nano second faster). Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- >

[PHP] RE: Dynamically build a form from mySQL table

2001-03-21 Thread Tim Ward
ng mysql. You may want to play around with analysing $field["type"] to get the right input attributes. There may be a slicker way, but I think this is pretty straight forward and the "SHOW COLUMNS" query isn't going to be slow. ... also this untested so please treat as pse

[PHP] RE: checboxex and sessions

2001-03-20 Thread Tim Ward
around this. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: karakedi [mailto:[EMAIL PROTECTED]] > Sent: 20 March 2001 03:17 >

[PHP] RE: Help with array creation

2001-03-20 Thread Tim Ward
they are already in one ... $HTTP_POST_VARS or $HTTP_GET_VARS Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Chris Carbaugh [

[PHP] RE: Script to convert # of seconds to HH:mm

2001-03-20 Thread Tim Ward
if your input is a number of seconds why not just treat it as a unix timestamp so ... echo date("H:i:s", $num_seconds) ... will work. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.

<    1   2   3   >