Re: [PHP] outputting xml declaration

2003-07-02 Thread Jim Lucas
try this print "<\?xml version=\"1.0\"\?>"; This might fix it. - Original Message - From: "Steven Apostolou" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 6:33 AM Subject: [PHP] outputting xml declaration > Hello, > > The folowing code gives an error

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
You could always use at the top of the screen. Jim Lucas - Original Message - From: "Wendell Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 11:27 AM Subject: Re: [PHP] print html code

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
So what, it would do what was requested. :) Jim Lucas - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S&q

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
well, tell me. What browser follows the standards 100% ?? - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S&q

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
return; will do the trick Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:09 PM Subject: [PHP] Break, Exit, Die, Kill, Maime and Stab > I have some scripting that includes f

Re: [PHP] Need a function to calculate time difference.

2003-07-02 Thread Jim Lucas
what type of format does your column take? date time datetime ?? Jim Lucas - Original Message - From: "Jack Sasportas" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:11 PM Subject: [PHP] Need a function to calculate

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
Technically you are not outside of a function. you need to use one of the include or require functions to include the file right? Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:3

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jim Lucas
Just tell your server to allow the session lifetime to be 15 minutes After 15 minutes of inactivity, the session will not exist. Jim Lucas - Original Message - From: "Jeff Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:45 PM

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-03 Thread Jim Lucas
i works for me in many different areas on my site Jim Lucas - Original Message - From: "Jeff Moser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 5:07 AM Subject: RE: [PHP] Break, Exit, Die, Kill, Maime and Stab So...why not write the e

[PHP] php arrays into flash

2003-07-07 Thread Jim McNeely
looked around via google and I couldn't find anything within a reasonable time that seemed to answer this question. TIA Jim McNeely Envision Data [EMAIL PROTECTED] http://www.envisiondata.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php arrays into flash

2003-07-07 Thread Jim Lucas
don't know about loading it directly in flash, but you could always create a javascript array in the page that loads the flash module and then have flash read it or javascript enter it into the flash module. Jim lucas - Original Message - From: "Jim McNeely" <[EM

Re: [PHP] Long lines

2003-07-11 Thread Jim Lucas
Try this $str = "here is some php" . "here is more" . "here is even more"; Just a plain '.' will do the trick. Jim Lucas - Original Message - From: "Alvaro Rosales R." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Jim Lucas
You have almost everything correct here change that last line to this. $arrayListArray = compact('booleanNonFormVars', 'booleanVars', 'profileVarArray', 'profileNonFormVarArray'); notice the use of compact() Jim Lucas - O

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Jim Lucas
I think that is what he was meaning. IT SHOULDN'T WORK THAT WAY, BUT IT DOES!!! Re-Read his first email a little closer. Jim Lucas - Original Message - From: "Michael Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 11, 2003 3:44 PM Sub

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Jim Lucas
} > > $length = strlen($sql); > $newlen = $length - 4; > $sql[$newlen].= " order by name"; > echo $sql; > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Try this $left = array(); foreach ( $phrases as $k => $v ) { if (in_array($v, array('the','and'))) { $left[] = "name like '% ".addslashes($val)." %' {$logic} "; } } $where = join ( '', $left ); Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Jim Lucas
I would take a look at the headers of an email that does render html correctly in outlook and see what you are missing. Trial and error. Jim Lucas - Original Message - From: "Tim Thorburn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache's

2003-07-18 Thread Jim Jagielski
LiteSpeed Information wrote: > > Mark, > > When you say "Apache 1.3x is missing some features", do you mean on > Windows or on all systems? I wonder what it is? > And be sure to CC [EMAIL PROTECTED] :) -- ======

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Jim Lucas
can someone post the original source that he submitted. I was gone yesterday and missed it. Thanks Jim - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, July 24, 2003 9:11 AM Subject: Re: [PHP] I&#

Re: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Jim McNeely
go from a successful linux site to a windows IIS site. It will not be as successful. That said, with my low volume site, apache on windows server 2003 and even win XP professional have run very nicely. That might be a nice compromise for them. HTH Jim McNeely Envision Data Custom, intuitive

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Jim Lucas
Depends, are you trying access the form from a different frame? Jim Lucas - Original Message - From: "Matt Palermo" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]>; "Matt Palermo" <[EMAIL PROTECTED]>; "php-general" <[

Re: [PHP] Half solved...............what the @#%# is PHPSESSID?

2003-07-26 Thread Jim Lucas
Personally, I would do a search-and-replace for header() and replace it with your own custom header() function. Then you would only have to change one location. Jim Lucas - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: &l

[PHP]IE6 back button problems

2003-07-28 Thread Jim McNeely
that variable on the search page it echoes the NEW value; other browsers it does NOT. So IE6 is requerying for the page without resort to a cache, while the others are using cached pages. All the header code hooie doesn't seem to affect any of this when you are talking about the back button. TIA Jim McNeely -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]IE6 back button problems

2003-07-28 Thread Jim Lucas
Try taking the value='' out of your form fields. if you have it reseting the values every time the page is loaded, it will reset the values. Jim Lucas - Original Message ----- From: "Jim McNeely" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Jul

Re: [PHP] Array Question

2003-07-28 Thread Jim Lucas
Try this. $companyname[] = $row['company']; Jim Lucas - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 10:16 AM Subject: [PHP] Array Question hello everyone, I am trying t

Re: [PHP] MySQL query/PHP logic?

2003-07-29 Thread Jim Lucas
'$date1' and tra.information_sent < '$date2') ) order by entity_name then in your loop you will need to look for something like this. while($row = mysql_fetch_array($results)){ if(!empty($row['fof_id'])) echo "found"; if(!empty($row['fof_i

Re: [PHP] Globals

2003-08-01 Thread Jim Lucas
I can't speek about the first problem, but about the second one. You are not setting the variable $blah as a global variable. Try this instead $GLOBALS['blah'] = 'bob'; and that should work. You need to look into scope when refering to variables and functions.

Re: [PHP] Globals

2003-08-01 Thread Jim Lucas
'; $GLOBALS['GLOBALS']['key2'] = 'value2'; don't ask me why, but it seems odd to me to do this. A little redundant if you ask me. Jim Lucas - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: "PHP General" <[

Re: [PHP] Globals

2003-08-01 Thread Jim Lucas
just to let you know, the $GLOBALS[] superglobals was around long before php 4.1.0 Jim Lucas - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chris Boget" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] Re: Globals

2003-08-01 Thread Jim Lucas
actually, it does work and it does exist. Try using print_r() or print_r(array_keys($GLOBALS)); and you will see an entry for GLOBALS mine is located at #13 Jim Lucas - Original Message - From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Leif K-Brooks" <[

Re: [PHP] Re: Globals

2003-08-01 Thread Jim Lucas
value) { echo $key."=>(".$value.")\n"; } ?> Jim Lucas - Original Message - From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Leif K-Brooks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sen

Re: [PHP] Re: Globals

2003-08-01 Thread Jim Lucas
I don't follow what you are trying to say here? it is returning true, just as it should. show me the results that you get by running this code. here is mine bool(true) bool(true) What is wrong about this? Read my notes below To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: <

Re: [PHP] Re: Globals

2003-08-01 Thread Jim Lucas
I am running PHP 4.2.2 on Debian linux with apache 1.3.26 Jim - Original Message - From: Greg Beaver To: Jim Lucas Cc: [EMAIL PROTECTED] Sent: Friday, August 01, 2003 3:02 PM Subject: Re: [PHP] Re: Globals What version of PHP are you running? I have PHP 4.3.2 on

Re: [PHP] weird php error

2003-08-01 Thread Jim Lucas
yes it could be in the httpd.conf file. look in your VirtualHost block and see if something there refers to a file called loging.php Jim Lucas - Original Message - From: "Matt Giddings" <[EMAIL PROTECTED]> To: "'David Nicholson'" <[EMAIL PROTECTED

Re: [PHP] Regular expression question

2003-08-04 Thread Jim Lucas
well, first off '>' should not be allowed as a value of an attr="" pair anyways. You should convert it to > or < this will solve that problem. Jim Lucas - Original Message - From: "Dan Phiffer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jim Lucas
tal FROM tbl"; $results = mysql_query($sql); $arr = mysql_fetch_assoc($results); echo $arr['total']; If i confused you with all the different ways to do this, don't worry, I confused myself also. If need be, I will explain more. Jim Lucas - Original Message - From:

Re: [PHP] Correct Coding

2003-08-08 Thread Jim Lucas
Could you explain a little better why this would make things better? I don't understand how this would improve things. Jim Lucas - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 10:28 AM

Re: [PHP] Simple cookie question

2003-08-09 Thread Jim Lucas
for that given vote. Jim Lucas - Original Message - From: "Matthew Koh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 09, 2003 4:22 PM Subject: [PHP] Simple cookie question > This may be a stupid question, but I'm trying to set up a sy

[PHP] Re: Sum a column of values from a MySQL query

2003-08-14 Thread Jim Lucas
I would switch to single quotes. how are you getting the $invoiceid value? is this code inside another a larger loop? Jim lucas - Original Message - From: "Ben C." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] Array to List

2003-08-14 Thread Jim Lucas
on page one do this instead. Jim Lucas - Original Message - From: "James Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 11, 2003 1:29 PM Subject: RE: [PHP] Array to List > All, > > Thanks for your help, but this shouldn'

Re: [PHP] Correct Coding

2003-08-14 Thread Jim Lucas
Good point. Would not have seen it that way. Thanks for the tip. Jim Lucas - Original Message - From: "Roger B.A. Klorese" <[EMAIL PROTECTED]> To: "'Jim Lucas'" <[EMAIL PROTECTED]>; "'Curt Zirzow'" <[EMAIL PROTECTED]>;

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Jim Lucas
o much. But if you are worried about readability, I would stick with the method myself. It keeps everything flowing in the script. Jim Lucas - Original Message - From: "Derrick Fogle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 2:13 PM S

Re: [PHP] Function arguments

2003-08-15 Thread Jim Lucas
ce it is how you want it, you will find that it is very easy to work with functions formated like this. Jim Lucas - Original Message - From: "Hardik Doshi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 8:53 AM Subject: [PHP] Function argu

Re: [PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-19 Thread Jim Lucas
and then bring up the Save As box. This will make it so you never leave the page that you were on. Jim Lucas - Original Message - From: "Jean-Christian IMbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 18, 2003 6:43 PM Subject: [PHP] How to

Re: [PHP] window.open("hai.php?id="one");

2003-08-19 Thread Jim Lucas
why don't you run this Jim Lucas - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'murugesan'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 18, 2003 11:18 PM Subject: RE: [PHP] window.open(

Re: [PHP] Access denied problem, please help

2003-08-22 Thread Jim Lucas
how about giving the specs on all three servers? So WE can see the differences. Jim Lucas - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 5:39 PM Subject: [PHP] Access denied problem, please help

Re: [PHP] Access denied problem, please help

2003-08-23 Thread Jim Lucas
does the uploading. Jim Lucas - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 4:06 AM Subject: Re: [PHP] Access denied problem, please help > Oops sorry, >

Re: [PHP] Random selection

2003-08-23 Thread Jim Lucas
Try this: SELECT name FROM table GROUP BY name ORDER BY RAND() LIMIT 3 This will group together all the names and then choose from a list that has only unique names and then return 3 at random. Jim Lucas - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [PHP] Help with a script

2003-08-23 Thread Jim Lucas
what is the source for the page that you initially enter the data on the web form look like? Jim Lucas - Original Message - From: "Stevie D Peele" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 6:25 AM Subject: [PHP] Help with a script

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Jim Lucas
I have been wanting the same thing, but I too have not found a solution, and do not know if it will come around. Being able to create your own super-global would be a very nice feature. Jim Lucas - Original Message - From: "Matthias Nothhaft" <[EMAIL PROTECTED]> To: &

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
when you are uploading files via a form, you must use the POST method. Jim Lucas - Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 11:16 AM Subject: [PHP] file upload problem > Hi , > &

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
- Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jim Lucas" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 12:27 PM Subject: Re: [PHP] file upload problem > Hallo Jim, > > am Samstag, 23. Au

Re: [PHP] file upload problem

2003-08-23 Thread Jim Lucas
r the script ends. Jim Lucas - Original Message - From: "Matthias Wulkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Jim Lucas" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 12:43 PM Subject: Re: [PHP] file upload problem > Hallo Jim, &g

Re: [PHP] Problem with the post variables.

2003-08-23 Thread Jim Lucas
You need to take a second look at the way you are refering to the varialbles in the process page. You are using the POST method in the method='POST' in the form, but on the process page you are refering to it via $_GET['...'] change this to $_POST['...'] and

Re: [PHP] Tips on print to screen debugging

2003-08-23 Thread Jim Lucas
it is your tag. You are missing the closing '>' on the openning title tag. Fix that and see what happens Jim Lucas - Original Message - From: "Gloria L. McMillan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 2:00 PM

Re: [PHP] include () problems

2003-08-25 Thread Jim Lucas
If you are having a problem that tells you that output was displayed on a given line in a given file. And you found this because after the output you tried sending headers, then look in that file on that given line, and you will see the problem. It could be a simple as a ?> To: <[EMAIL PROTECT

Re: [PHP] if seat is sold

2003-08-26 Thread Jim Lucas
on a side note, you realize that you could loose all all of the while loops and replace them with two or three nested foreach() loops? Build yourself one big array and loop through it. If you need any advice, drop me a note. Jim Lucas - Original Message - From: "Jay Fitzg

Re: [PHP] if seat is sold

2003-08-26 Thread Jim Lucas
if($i % $rowCount + 1) echo ""; else echo ""; } echo ""; ?> Give it a run and let me know what you think. Jim Lucas - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: [PHP] Working with dates

2003-03-17 Thread Jim Lucas
you do that same query in mysql Jim - Original Message - From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]> To: "Brad Harriger" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 10:49 AM Subject: Re: [PHP] Working with dates

[PHP] Question about a text file and foreach

2003-03-18 Thread Jim Greene
g the data is not considered an array? Any help would be appreciated.. Thanks Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Jim Lucas
You need to split() the variable ($mboxs) on newlines "\n" Jim - Original Message ----- From: "Jim Greene" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 18, 2003 8:22 AM Subject: [PHP] Question about a text file and foreach > Hi

[PHP] ldap and printing of specific set out attributes

2003-03-18 Thread Jim Greene
_get _entries but it does not seem to be working. In order to cycle thru the array I am attempting to use: for ($i=0; $i < $info["count"]; $i++) { print $info[$i]["uid"][$i]."\n"; } Any help on what I am doing wrong would be greatly apprecieated. Jim --

Re: [PHP] php and javascript

2003-03-18 Thread Jim Lucas
you are trying to include a variable inside a single quoted string. change the echo line to this. echo " window.location = '$thepage'> "; Jim - Original Message - From: "Antoine" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]&

[PHP] Help with sum of items

2003-03-19 Thread Jim Greene
would be appreciated. Thanks Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where is cookie limitation on php ?

2003-03-21 Thread Jim Lucas
Look up the specs on the limitation of cookies and you will then know the limitation of php when it comes to cookies. Jim - Original Message - From: "Hatem Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 9:10 AM Subject: [PHP] where i

Re: [PHP] variales within define constants

2003-03-22 Thread Jim Lucas
Hello $var" instead of "Hello Dan" $var = "Dan"; define('CONSTANT', "Hello $var"); echo CONSTANT Jim Lucas - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "Daniel Diehl" <[EMAIL PROTECTED]>;

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Jim Lucas
you must remove the backticks. Jim - Original Message - From: "rentAweek Ltd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 22, 2003 9:50 AM Subject: [PHP] Separators in variable values causing MySQL commands to fail > In my PHP script I h

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Jim Lucas
and , you need to escape the values that you are inputing ie. htmlspecialchars() or htmlentities() those values Jim - Original Message - From: "rentAweek Ltd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 22, 2003 9:50 AM Subject: [PHP] Separat

Re: [PHP] counting ..

2003-03-25 Thread Jim Lucas
when it comes to the second page, you already know that page you are on 1,2,3,4... take that and multiply it by the defined number of results per-page, then start your counting. Jim - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: "php list" <[E

Re: [PHP] foreach statement

2003-03-25 Thread Jim Lucas
i have this little function that I wrote to do just that. function alternate(&$a, $b) { return($a = ($a?$a:$b) ); } just call it like this alternate($myArr, array()); foreach($myArr AS $k => $v) { do something here } Jim - Original Message - From: "Jennifer Goo

Re: [PHP] Session Theft

2003-03-28 Thread Jim Lucas
check into forcing the use of trans_sid Jim - Original Message - From: "Haseeb Iqbal" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 8:48 PM Subject: [PHP] Session Theft > i just want to figure out a way

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
This is untested, but I seem to recall doing something like this on a project last year. and on the process page you will receive an array called row that has everything in it that you need. Jim - Original Message - From: "Daniel Harik" <[EMAIL P

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
you missunderstood my example then. then 1,2,3,4,... is only for the array, you wont be setting that with the result set from the db call. the id from the db call with be the value of row[1][id] on the process page. just think of it as a multidia indexed array Jim - Original Message

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
you don't understand how this works then... Jim - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Daniel Harik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 9:44 AM Subject: RE: [PHP] Gri

Re: [PHP] Can't connect to mysql

2003-03-29 Thread Jim Lucas
if you are on redhat check and make sure you have the php_mysql... rpm installed. Jim - Original Message - From: "CDitty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 9:07 PM Subject: [PHP] Can't connect to mysql > I just setup

Re: [PHP] oci8

2003-04-05 Thread Jim Lucas
Just after we had a long discussion about off topic questions. This one doesn't even refer to a programming language problem. Or am I missing someting? Jim - Original Message - From: "Paul Dymecki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturd

Re: [PHP] mysl_connect question

2003-04-05 Thread Jim Lucas
did you reload mysql so it will have the new user? Jim - Original Message - From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: "php mailing list list" <[EMAIL PROTECTED]> Sent: Saturday, April 05, 2003 10:40 AM Subject: [PHP] mysl_connect question > W

Re: [PHP] selecting count and then dumping to an array

2003-06-07 Thread Jim Lucas
type='$3' OR type='$4' OR type='$5' GROUP BY type; another way you can write this is like the following, but it won't take advantage of indices SELECT type, count(*) FROM table WHERE type IN ('$1', '$2', '$3', '$4&#

Re: [PHP] How to determine if output buffering is on?

2003-06-07 Thread Jim Lucas
output some html and then try and do an header() redirect. if it works, then some sort of buffering is turned on. if it fails and tells you that output has already been sent to the browser, then it isn't turned on. Jim Lucas - Original Message - From: "Shawn McKenzie" &l

[PHP] Mail - mime question

2003-05-30 Thread Jim McNeely
I've come a long way with many google searches an I almost have this working, so have mercy!!! So what am I missing here? I'm doing a Mail_mime class smtp mail from php using PEAR. It needs to have text and html versions which is why I'm using this. It is sending out the email OK, but when I ge

Re: [PHP] Best Practices in Directory Layout?

2003-05-31 Thread Jim Lucas
I prefer the second method. It allows you to look at one folder and see everything that that one process can and will do. Jim Lucas - Original Message - From: "motorpsychkill" <[EMAIL PROTECTED]> To: "Php General List" <[EMAIL PROTECTED]> Sent: Friday, May

Re: [PHP] regex problem

2003-06-01 Thread Jim Lucas
e other special chars that are in the pattern to be matched. Therefor, if it does find anything that is not in the pattern to be matched it will return true and then it will enter the if statement instead of skipping over it. Jim Lucas - Original Message - From: "Daniel J. Rychl

Re: [PHP] Shipping Rates

2003-06-03 Thread Jim Lucas
'11.45'=>100, '13.45'=>150, '15.55'=>200, '19.45'=>9); otherwise your foreach would need to be a for loop something like this. for($i=0; $i current( key( $rates[$i] ) )

Re: [PHP] Shipping Rates

2003-06-03 Thread Jim Lucas
Answering my own answer. I see now how you are extracting the sub array information. My mistake. Jim Lucas - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]>; "Ralph" <[EMAIL PROTECTED]>

Re: [PHP] preg_replace help

2003-06-04 Thread Jim Lucas
What do you mean by additional modifiers? Jim Lucas - Original Message - From: "Jackson Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 9:43 AM Subject: [PHP] preg_replace help > I am trying to create a text only version of

Re: [PHP] Multi Selection

2003-06-04 Thread Jim Lucas
es); echo $insert_sql; } else { echo "Nothing to insert"; } } ?> First Thingie Second Thingie Third Thingie Fourth Thingie Fifth Thingie Give the above script a shot and see if it does what you want it to do. Jim Luca

Re: [PHP] Multi Selection

2003-06-04 Thread Jim Lucas
if you are using a mysql data base setup and you have any indecies on the table that you are inserting the data into, then MySQL will automatically re-index the table each and every time the data in the table is modified. Jim Lucas - Original Message - From: "Frank Keessen&quo

Re: [PHP] How to determine if output buffering is on?

2003-06-07 Thread Jim Lucas
it isn't a hack. that is a good way to tell. :) all depends on if he plans to continually use this check in his script or if he is just going to just test for it durning development. Jim Lucas - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To

[PHP] Question about current() and key()

2003-06-09 Thread Jim Lucas
e results. I would think that it would be overhead to use current() and key() in the above example. Can anybody point out why the first one would be better to use and why. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Math with php

2003-06-10 Thread Jim Lucas
as to the results you are looking for. Jim Lucas - Original Message - From: "Frank Keessen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 2:22 PM Subject: [PHP] Math with php > Hi, > > Hope you can help me: > > How can i do

Re: [PHP] Re: Using register_globals

2003-06-12 Thread Jim McNeely
I'm a bit of a neophyte with php, and I've read through lots of prior posts and the php.net online docs, but some of this is still not registering in my head. TIA for your patience. I've got a script I include at the head of each of my scripts that checks $_POST['username'] and $_POST['password

Re: [PHP] Re: php editor?

2003-06-16 Thread Jim McNeely
on mac OS X, BBEdit color codes php, perl, shell scripts, SQL, and HTML, and does regular expression searches/replaces etc. across multiple files and also cleans the dishes. Its definitely my favorite text editor. jim mcneely On Monday, June 16, 2003, at 10:49 AM, James Hatridge wrote: Hi

Re: [PHP] multiple count (*) from php? (last one got sent in error, this is the correct one)

2003-06-16 Thread Jim Lucas
number of rows that is the same number of packages they have setup. Jim Lucas - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 8:26 PM Subject: [PHP] multiple count (*) from php? (last one got sent in error,

Re: [PHP] Synchronize MYSQL

2003-06-20 Thread Jim McNeely
mmand obviously creates the db, the second dumps the data to it. You can also take the update log which records deletes, inserts, updates, etc. as SQL statements, and pipe those to another MySQL server in a similar manner. HTH Jim McNeely Envision Data Custom, intuitive, practical software fo

Re: [PHP] free dynamic MENU

2003-06-24 Thread Jim Lucas
Check out this http://phplayersmenu.sourceforge.net Jim Lucas - Original Message - From: "David Elìas Sánchez Vásquez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 23, 2003 2:15 PM Subject: [PHP] free dynamic MENU > > Hi folks > >

Re: [PHP] Forms / Array Question...

2003-06-27 Thread Jim Lucas
(A) works YES (B) is not actually just some undefined behavior that's risky to use? It works fine for me. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Based File Management and Security

2003-06-27 Thread Jim Lucas
Don't allow them to run php scripts in the public_html directory What is the point of the web based file manager? So they don't have to use ftp or ssh to uploads files? Jim Lucas - Original Message - From: "Dean E. Weimer" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: [PHP] Installation for OS X

2003-07-01 Thread Jim McNeely
check out http://www.serverlogistics.com/software.php great binaries for lots of open source OSX with real install packages and such from Aaron Faby. HTH Jim McNeely Envision Data Custom, intuitive, practical software for your business. [EMAIL PROTECTED] http://www.envisiondata.com On Tuesday

[PHP] __functionName?

2002-08-03 Thread Jim Dam
having any wierd effects from the double underscore? Jim Dam [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] defining separate form element within While statment

2002-08-04 Thread Jim Long
s7"] . " " . " edit score" . "" . $row["s8"] . " " . " edit score" . "" . $row["s9"] . " " . " edit score" . "" . $row["s10"] . " &q

[PHP] First Attempt to use DB failed.

2002-08-09 Thread Jim Bailey
I ran the following PHP script: I received the following error message Parse error: parse error, unexpected T_VARIABLE in C:\FREEDEV\XITAMI\webpages\private\test.php on line 3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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