Re: [PHP] mail problem

2001-09-12 Thread David Robley
the communication with sendmail] -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA What's another word for thesaurus? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] limiting rows and pages like google -- again

2001-09-12 Thread David Robley
://marc.theaimsgroup.com/?l=php-generalr=1w=2q=bs=pages+like+google -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Useless Invention: Flashbulb tester. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
and import the contents of the csv. Unless there's a good reason not to that you haven't mentioned? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Birds are trapped by their feet, people

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
there will only be a few currency's! Thanks Coenraad Steenkamp - Original Message - From: David Robley [EMAIL PROTECTED] Newsgroups: php.general To: Coenraad Steenkamp [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 9:18 AM Subject: Re: [PHP] Validate

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
: input name='uFile' type='file'; echo input type='submit' name='Submit' value='Upload'; echo /div; } ? David Robley [EMAIL PROTECTED] wrote in message 01091317241109.14360@www">news:01091317241109.14360@www... On Thu, 13 Sep 2001 16:52, you wrote: There is a very goo

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
Sorry - pressed send w/out writing anything. Topic followed up direct with problem owner. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA There are 2 ways to handle women and I know neither

Re: [PHP] importing a table

2001-09-13 Thread David Robley
on the information in the table. I was wondering is there a command in Mysql that can import tables? I just need to import one table, not an entire database. Thanks. Peter There is mysqlimport from the command line, and there is the LOAD DATA INFILE syntax. -- David Robley Techno-JoaT, Web

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread David Robley
functions may be what you are looking for. http://www.php.net/manual/en/ref.outcontrol.php -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Even a hawk is an eagle among crows. -- PHP General Mailing

Re: [PHP] Order of focus for text entry inputs

2001-09-13 Thread David Robley
values, the lower number receives focus first. In the case of a tie, the element appearing first in the HTML document takes precedence. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA The world is so

Re: [PHP] posted urls

2001-09-13 Thread David Robley
. $word3 Read the manual! Alexander Skwar Tsk Alexander, read the question :-) Urlencode is most likely what is needed. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA My bid for this contract aims

Re: [PHP] mysqlimport exec()

2001-09-16 Thread David Robley
that your webserver runs as. Checking the output of exec might give some insight. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Useless Invention: Training wheels for timid sports car drivers

Re: [PHP] rtrim bug?

2001-09-17 Thread David Robley
php-4.0.6. Am I misunderstanding something horribly, or is this a legitimate bug? Kevin Way The docs say that the second parameter was added in 4.0.7, so that may be your problem :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread David Robley
escape the # sign. Works OK for me in an INPUT TYPE=TEXT. Perhaps a bit of your code and the table structure might help? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Sorry, I don't date

Re: [PHP] Speeding up program

2001-09-18 Thread David Robley
to check how long it takes.\ Then you can let us all know the answer. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Why can't we just spell it orderves? -- PHP General Mailing List (http

Re: [PHP] re: array question

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 12:28, Scott wrote: That works, thank you, but it prints at the top of my page, is there a way to store that array into a single variable? Yes - implode() -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders

Re: [PHP] Download

2001-09-19 Thread David Robley
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I was absolutely vitrified, said Tom with a glazed look. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] MySQL Connectivity test

2001-09-19 Thread David Robley
on success or an error message on failure. That should do what you want. I wonder what my sigmonster is up to? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Stupid is a boundless concept. -- PHP General

Re: [PHP] Newbie Question: Array Comparison ---

2001-09-19 Thread David Robley
? For instance, in this example, c should not be print. in_array might be one tool - loop through $Foo and print $Foo[n] if it's not in the array $donotprint -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA

Re: [PHP] Newbie Question: Array Comparison ---

2001-09-19 Thread David Robley
) { if(!in_array($val,$DoNotPrint) { echo $val; } } Any syntax errors you find in that you can keep :-) And doubtless there are other, better ways. Offers, anyone? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH

Re: [PHP] MySQL Connectivity test

2001-09-20 Thread David Robley
main script endif; //All ok continue with script ? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Don't ask me. The cats are in charge around here. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Possibly undocumented operators.

2001-09-20 Thread David Robley
can I find a complete and accurate operator precedence table? CW The manual? http://www.php.net/manual/en/language.operators.precedence.php for operator precedence and http://www.php.net/manual/en/language.oop.php for classes and objects -- David Robley Techno-JoaT, Web Maintainer

Re: [PHP] Variable conversion problem

2001-09-20 Thread David Robley
with seting a default selection in your dropdown so you avoid the problem. Otherwise you could test whether the dropdown value is empty, and if so, not add the 'AND productcategory.ID' clause to your select. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY

Re: [PHP] Run or execute a php cript within a php cript.

2001-09-21 Thread David Robley
. include() them? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA This is my favorite chinese soup, Tom said wantonly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] need better solution...

2001-05-14 Thread David Robley
tried all kinds of programing techniques... but none of them seems to fit here. exit or die are probably the tools you want. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Blessed are the censors

Re: [PHP] output of file contents while reading

2001-05-15 Thread David Robley
because I don't understand the nitty gritty of file handles. Thanks Not so much a problem with the file, rather the way the webserver handles output. Try using flush() to force data to be sent to the client. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY

Re: [PHP] Array question

2001-05-16 Thread David Robley
will be an array of the current line being returned from the file? Have a look at the docs (/manual/en/function.fgetcsv.php) for an example of how to read and output the contents of a csv file. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] Mail with Win2K

2001-05-17 Thread David Robley
on a Win2k advanced server box? PHP 4.0.5 Thanks Brandon You'll need to define which smtp server you are using, in your php.ini. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I like to leave

Re: [PHP] How do I have a Authentication box pop up?

2001-05-17 Thread David Robley
module. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I have had too many children, said Mary overbearingly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] How Do I Escape from This List???

2001-05-17 Thread David Robley
On Fri, 18 May 2001 07:07, Ron Pitts wrote: CRAP Ron Pitts Caravela Books 134 Goodburlet Road Henrietta, NY 14467 http://caravelabooks.com Didn't I send instructions off list on how to unsubscribe a particular address? Do they not work? -- David Robley Techno-JoaT, Web Maintainer

Re: [PHP] form posting problem - $variables get padded with spaces

2001-05-22 Thread David Robley
? Perhaps a look at a code snippet, if this is not the case? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Don't force it, use a bigger hammer. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Running two scripts from HTML

2001-05-22 Thread David Robley
value passed to the script? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Power corrupts; absolute power is even more fun. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Whitespace

2001-05-22 Thread David Robley
/function.str-pad.php should do the trick -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Windows: just another pane in the glass. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Inoltra: Re2: [PHP] problem getting oracle to work with php4

2001-05-23 Thread David Robley
ldconfig (as root) after changing your ld.so.conf? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Are dog biscuits made from collie flour? -- PHP General Mailing List (http://www.php.net

Re: [PHP] while statements output to variables

2001-05-23 Thread David Robley
{ 'fontdata to be outputted/font' }while ($something = mysql_fetch_array($query)); .'/td /tr /table'; ? any help? See the manual entry for mysql_fetch_array(), which gives an example of how to do this. You might also find extract() useful. -- David Robley Techno-JoaT, Web Maintainer

Re: [PHP] include and include-virtual

2001-05-23 Thread David Robley
. Try http://httpd.apache.org/docs/mod/mod_include.html -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA It's half a score, Tom said often. -- PHP General Mailing List (http://www.php.net

Re: [PHP] two data base connections on one page

2001-05-23 Thread David Robley
opened a connection, you should be able to use mysql_db_query multiple times, specifying different databases each time, and of course using different variables for the result identifiers. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] INSERT problem with MySQL/PHP

2001-06-18 Thread David Robley
function? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA URA Redneck if your funeral has more pickup trucks than cars.

Re: [PHP] Problem with MySQL String limits?

2001-06-20 Thread David Robley
; charset=iso-8859-1; name=Attachment: 1 Content-Transfer-Encoding: quoted-printable Content-Description: Echh, Outhouse does odd things :-) Try adding echo mysql_error() after you call the query and see what sort of error is returned. -- David Robley

Re: [PHP] how to be listed

2001-06-21 Thread David Robley
www.php.net click on Support then scroll down the page a bit. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Falls don't kill people. It's the deceleration trauma. -- PHP General Mailing List (http

Re: [PHP] Forum script

2001-06-22 Thread David Robley
to normalize the dates or is the just a Eudora4+ problem? At 03:41 PM 9/20/2001, Andrew Hill wrote: www.phorum.org Best regards, Andrew It's eternal September on Usenet :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders

Re: [PHP] OT Re: http 1.0 1.1 info

2001-06-22 Thread David Robley
. Everything I find at the various search engines seems to require a masters in computer science and a minor in gobbly gobb. kb http://www.w3.org/Protocols/ is probably the definitive source, although it's not the equivalent of 'HTTP for Dummies' :-) -- David Robley Techno-JoaT, Web

Re: [PHP] PHP timer

2001-06-22 Thread David Robley
; $ary = getdate($diff); while(list($key, $val) = each($ary)){ echo $key == $valBR; } ? Outputs seconds == 46 minutes == 16 hours == 19 mday == 20 wday == 2 mon == 1 year == 1970 yday == 19 weekday == Tuesday month == January 0 == 1676806 -- David Robley Techno-JoaT, Web Maintainer, Mail

Re: [PHP] PHP timer

2001-06-22 Thread David Robley
. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA If you're not confused, you're not paying attention. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] $HTTP_???_VARS[] always populated?

2001-06-22 Thread David Robley
(list($key, $val) = each($HTTP_GET_VARS)){ echo $key == $valBR; } ? called with test.php?a=asb=bs returns a == as b == bs So looks like you would be OK. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA

Re: [PHP] how to pass PhP variables thru HREF command

2001-06-22 Thread David Robley
interesting characters. So a href=prediction.php?hometeam=?echo urlencode($hometeam) ?awayteam=? echo urlencode($awayteam) ? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I'm wearing my wedding ring

Re: [PHP] Developer mailing list

2001-06-22 Thread David Robley
in the distribution /ext/ext_skel which might be relevant. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA CD-WOM, Wead Onwy Memowy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Multiple Image Submit Buttons.

2001-06-24 Thread David Robley
). I need to process the data in a PHP application. Thanks, -Scott- -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA All E-mail gladly received. Offensive reply ASAP. -- PHP General Mailing List

Re: [PHP] Percentages

2001-06-24 Thread David Robley
exactly what FormatPercent does - number_format, printf or sprintf. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA What this country needs is a good five-cent microcomputer. -- PHP General Mailing List

Re: [PHP] $PHP_SELF name space?

2001-06-24 Thread David Robley
; works just fine? Or something with name spaces and when $PHP_SELF is activated? Thx, Kent I think you need to declare $PHP_SELF global when referring to it in a function... -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University

Re: [PHP] Expand/parse variables in file

2001-06-26 Thread David Robley
abc whatever def. Where's the difference to directly doing the following: $a = whatever; $b = abc $a def; echo $b; which results in abc whatever def ??? What am I missing? Thanks in advance. mit freundlichen Gruessen / yours sincerely In a word, eval() :-) -- David Robley Techno

Re: [PHP] Expand/parse variables in file

2001-06-26 Thread David Robley
in the file is enclosed in php tags - depends on exactly how your text is structured. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA A mind is a terrible thing to ... er ... h? -- PHP General

Re: [PHP] Enter to BR

2001-06-26 Thread David Robley
On Tue, 26 Jun 2001 07:46, Joeri Vankelst wrote: How can I get an Enter typed in a HTML textfield to be inerpreted as a BR or a P tag? Someone sugested I use the split() function, but I wouldn't know how... Joeri Vankelst nl2br() is just the tool for this. -- David Robley Techno-JoaT

Re: [PHP] date - day

2001-06-26 Thread David Robley
exciting possibilities. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Birds are trapped by their feet, people by their tongues. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread David Robley
', $connection_id) or die('No connection.'); ... $result_id = @mysql_query(DESC $table_name $field_name); $row = mysql_fetch_array($result_id); # This is line 9 Try using mysql_error() to see if there is some feedback from mysql. Put it just after your mysql_query(). -- David Robley

Re: [PHP] Line Breaks in textarea

2001-06-29 Thread David Robley
as line breaks. Cue RANT from Richard Lynch on TEXTAREA :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Spell chequers dew knot work write. -- PHP General Mailing List (http://www.php.net

Re: [PHP] help in getting results from mysql

2001-07-02 Thread David Robley
that you may possibly have multiple entries for the latest date? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Tyre Shop sign - We Skid You Not. -- PHP General Mailing List (http://www.php.net

Re: [PHP] help in getting results from mysql

2001-07-03 Thread David Robley
maybe you want UNION. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA He's not dead, Jim, he's just metabolically challenged. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] new lines in text fields

2001-07-08 Thread David Robley
to upload text files? Thanks, Mat You probably want the WRAP=virtual parameter in your TEXTAREA. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Is it OK to yell 'MOVIE' in a crowded firehouse

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread David Robley
serving .inc files anywhere in the DocumentRoot structure LocationMatch .*\.inc$ Order allow,deny Deny from all /LocationMatch -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Oxymoron: Safe Sex

Re: [PHP] If (!$results) are true what am I missing

2001-07-09 Thread David Robley
query returns a successful result - which may have 0 or more rows! Try using mysql_num_rows($result) and check whether it is zero (no records found) or non-zero (record exists) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University

Re: [PHP] PDF Problems

2001-07-09 Thread David Robley
until 4.0.5, according to the manual. Is your version sufficiently up to date? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Will the information superhighway have any rest stops? -- PHP General

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

2001-07-10 Thread David Robley
Then when you display the rows, keep track of the current and previous value of $description; if it changes, print the new value. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Don't stop posting, a good

Re: [PHP] Apostrophe's

2001-07-10 Thread David Robley
with the stripslashes function. I was wondering if anyone could help me out with this as I haven't a clue where to start editing the script. Many thanks, Dave just use stripslashes as you are displaying the values. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE

[PHP] Re: Downloading Data from Database

2001-07-11 Thread David Robley
. Any idea where I can get more info on that? Thanks Randy try this: header(Content-disposition: filename=maillist.dat); header(Content-type: application/octetstream); header(Pragma: no-cache); header(Expires: 0); //query database //echo results required //end -- David Robley Techno-JoaT

Re: [PHP] php mail form with predefined subject

2001-07-11 Thread David Robley
to allow a submit button - so you could add a hidden field containing the subject? FORM ACTION=mail.php METHOD=POST INPUT TYPE=hidden NAME=subject VALUE=Your inquiry about a Kenworth INPUT TYPE=submit NAME=summit VALUE=email for more info /FORM And no PHP to be seen :-) -- David Robley Techno

Re: [PHP]I'm puzzled. TEXTAREA related.

2001-07-11 Thread David Robley
if($submit). Otherwise try assigning a value to submit in the input tag. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Avoid temporary variables and strange women. -- PHP General Mailing List (http

Re: [PHP] Re: Downloading Data from Database

2001-07-12 Thread David Robley
On Sun, 15 Jul 2001 01:15, Randy Johnson wrote: Dave, The code below gives me an error in IE 5.+ Here is the error: IE cannot download ..blah blah try again later Do you use this code on your site or do i just need to tweak it -Original Message- From: David Robley [mailto

Re: [PHP] Re: Downloading Data from Database

2001-07-12 Thread David Robley
On Fri, 13 Jul 2001 10:18, David Robley wrote: We use it, but only internally and our preferred browser is not from M$ :-) I do have an IE5.5 somewhere, so I'll have a look and see what happens with my script using it. Hmm, works OK for me. Maybe check that you are actually outputting

Re: [PHP] output plain HTML for CD Rom

2001-07-16 Thread David Robley
go take a look. Thanks again ## -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA On a radiator repair shop: Best place to take a leak. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread David Robley
be getting something you don't expect in $Pass. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA 1200 bps used to seem so fast -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread David Robley
itself. And re-reading, I think what you may want is hidden fields. You want part one to call part 2, and retain values from part 1, etc? Echo the values into hidden fields in each step of the process. INPUT TYPE=hidden NAME=whatever VALUE=?php echo $whatever ? -- David Robley Techno-JoaT

Re: [PHP] formating numbers to two decimal points - money - best ways

2001-07-18 Thread David Robley
/ref.math.php Round is probably the one you want. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA If a program is useless, it must be documented. -- PHP General Mailing List (http://www.php.net

Re: [PHP] File Upload Headaches

2001-07-19 Thread David Robley
TYPE=submit VALUE=Submit File [Lots left out for simplicity] I notice you have ENC_TYPE ?? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Heads I win, tails you lose. -- PHP General Mailing List (http

Re: [PHP] Re: More upload Problems

2001-07-19 Thread David Robley
be worth checking through phpinfo() that your installation is looking there and that it thinks file_uploads is on. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Darth Vader sleeps with a Teddywookie

Re: [PHP] Simple (I hope) updating contents question

2001-07-20 Thread David Robley
= (fgets ($fp, $fs)); 8 } 9 ? However, you might be as well off to use the file() function to read the file into an array; you can then process the array with list/each and write it out line by line. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] File Upload Abject Misery Solved

2001-07-20 Thread David Robley
everybody Jason Cool - I win the prize for picking it :-). I wrote yesterday 'I notice you have ENC_TYPE ??' -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Windows: XT emulator for an AT. -- PHP

Re: [PHP] formatting host output

2001-07-22 Thread David Robley
it like it is on the command line? Thanks, Tyler $data = exec(host $lookup, $ary); while(list(,$val) = each($ary)) { echo $val . 'BR'; } You need to assign the output of exec to an array if you want to capture multiple lines of output. Check the manual for more detail. -- David Robley Techno

Re: [PHP] Why wont this work?

2001-07-23 Thread David Robley
acquire an editor that is capable of showing and highlighting matching parentheses? It makes life much easier :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I'm not as thunk as you drink I am

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

2001-07-23 Thread David Robley
query with mysql_num_rows() Incidentally, if songid is an int type, you don't want to pass it a value in quotes; only char types need to be quoted. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA

Re: [PHP] Need some help with this idea!

2001-07-24 Thread David Robley
. Frinstance, to get the first show on or after today you could select where timestamp is greater than or equal to NOW(), ORDER by timestamp and LIMIT 1 to get the earliest in the future. Which might be today! You can do some fancy formatting of the timestamp in Mysql, if that helps. -- David Robley

Re: [PHP] Help With Includes

2001-07-24 Thread David Robley
/htdocs/webclient.php3); /script -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Useless Invention: Inflatable darts-board. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] OR Problems

2001-07-24 Thread David Robley
leave you to sort them out :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I'm embarrassed, Tom admitted readily. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Hi! PHP SQL!

2001-07-25 Thread David Robley
of the docs to see what other goodies are available. I suspect mysql_error will be one you may find useful :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA A camel is a horse planned by committee

Re: [PHP] Re: error using imagecreate function

2001-07-25 Thread David Robley
and if it has a semicolon (;) at the beginning of the line remove it. Check you have a file called ph_gd.dll which is possibly in directory extensions under your php installation and restart apache service. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] string concatenation

2001-07-25 Thread David Robley
of £search or something...? - seb Feel free to trim all the ireelevant stuff from your posts :-) Try $$search or ${color} depending on exactly what you want to do. You might want to have another read through the Variable variables section of the documentation to clarify this. -- David Robley

Re: [PHP] strlen

2001-07-25 Thread David Robley
the output is enclosed in PRE tags, the browser will ignore the tabs. Tabs, multiple spaces and end of line dharacters are all ignored. Alternatively, you could build it into a TABLE structure. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

[PHP] Bug report 11790 - compile error

2001-07-25 Thread David Robley
with the latest snapshot php4-200107252235 so my short term solution will be php4.0.4. Do I need to submit a formal bug report? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA My mind ain't so open that anything

Re: [PHP] Perl Splice Equivalent

2001-07-25 Thread David Robley
write it to a new array (which will be the basis of what you write out to file). Or maybe I'm not quite understanding you - are all those fields in one row, or... -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH

Re: [PHP] how to call HTML file within php file

2001-07-26 Thread David Robley
allow attachements. However: if(condition) { include('onehtmlfile'); } else { include('anotherhtmlfile'); } -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I do not fear computers. I fear the lack

Re: [PHP] I want to AUTO_INCREMENT fields

2001-07-26 Thread David Robley
: NOTE: There can be only one AUTO_INCREMENT column per table, and it must be indexed. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Don't play stupid with me! I'm better at it. -- PHP General Mailing

Re: [PHP] Anyway to reset MySql's AUTO_INCREMENT counter?

2001-07-26 Thread David Robley
with an ISAM, GEMINI or BDB table but not with a MyISAM or InnoDB table. If you delete all rows in the table with DELETE FROM table_name (without a WHERE) in AUTOCOMMIT mode, the sequence starts over for all table types. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE

Re: [PHP] Big difference?

2001-07-26 Thread David Robley
blah blah ? and ?php echo blah blah ? Check the return value from the function? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I hit the CTRL key but I'm still not in control! -- PHP

Re: [PHP] Processing file...

2001-07-26 Thread David Robley
the lines of the file into an array? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Daddy, what does FORMATTING DRIVE C: mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] problem while reading on sockets ...

2001-07-26 Thread David Robley
? At least that seems to be what the example in the manual does. $fp = fsockopen (www.php.net, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET / HTTP/1.0\r\n\r\n); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } -- David Robley Techno

Re: [PHP] Email Selected Data

2001-02-04 Thread David Robley
ontent .= printf(blah blah); or without the printf complexity $content .= "First Name: " . $array["FirstName"] . "\nLast Name: " . $array["LastName"] . "\n"; You'ld need to ensure $content is empty before starting the for loop, of course. -- D

Re: [PHP] [newbie] Array form values.

2001-02-05 Thread David Robley
Have a look at the functions list and each - there are code snippets in the manual which should give you some ideas for getting the values and keys from an array. You might also be interested in count and sizeof for determining the number of elements in the array. -- David Robley

Re: [PHP] Timestamp field

2001-02-05 Thread David Robley
field out and assign it to a separate variable and re-insert it when im updating but I'm curious as to why this would be happening...These are the only places where any modifications are made to the posts...on insertion and admin modification so I'm stumped as to what could be happening. Any

Re: [PHP] SQL Statments?

2001-02-05 Thread David Robley
you have created the necessary database, you can simply do this on the command line mysql database your_mysqldump_file or you can nominate the file in the data import part of phpMyAdmin -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES

Re: [PHP] passing array to function?

2001-02-06 Thread David Robley
;$key = $valBR"; } } $fruits=array("a"="apple","b"="banana","c"="cucumber","d"="apricot",); show_elements($fruits); ? That's pretty much plagiarised from the array functions in the manual :-) -- D

Re: [PHP] Retrieve item from table at random

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:28, enthalpy wrote: anyone have example code for randomly grabing an item from a mysql table? Mysql 3.23 will let you order by RAND() and you could use a LIMIT to restrict to one result. I haven't tried it, though. -- David Robley| WEBMASTER

<    1   2   3   4   5   6   7   8   9   10   >