Re: [PHP] PHP Testing

2003-01-02 Thread Jim Lucas
p code in the sent page. Is this possible, can it be done, and if so, how? Jim - Original Message - From: "Paul Marinas" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 02, 2003 4:33 PM Subject

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jim Lucas
it has to do with declaring all php variables before using them in the script. $var=''; then do something with the variable. Jim - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 9:52 AM Subject: [PHP] W

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Jim Lucas
checkout the most recent version of the help documents from php.net. it will tell you. something to do with $_GET, i think... Jim - Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: "php mailing list" <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 2:05 PM Subject: [PHP]

Re: [PHP] Loop inside a table

2003-01-20 Thread Jim Lucas
instead of doing that your should do this $message = " title goes here "; for ($x = 0; $x < $num_rows; $x++) { $message .= "some stuff"; } $message .= " "; you were also missing your last double quote. Jim - Original Message - From: "Cesar Aracena" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Jim Lucas
I would add the modification time of the file in question with filetime($filename); that way you will be sure to get a unique argurment. Jim - Original Message - From: <[EMAIL PROTECTED]> To: "Chris Shiflett" <[EMAIL PROTECTED]> Cc: "Phil Powell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

Re: [PHP] Re: Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Jim Lucas
M Subject: [PHP] Re: Cannot show reuploaded image file on page unless manual refresh > I wonder if appending time() would be better... granular to a second and > you save the filesystem lookup effort?? > > On Mon, 20 Jan 2003, Jim Lucas wrote: > > > I would add the modificati

Re: [PHP] pop-up problem

2003-01-20 Thread Jim Lucas
I have found that with the popup stopper that I have installed on my machine, Pop-up Stopper from Panic Ware, that I can't even start up a new instance of IE without it killing the new window. I have netscape 4,6,7 and mozilla installed on my machine and it won't allow me to start up more then one

Re: [PHP] DOWNLOAD

2003-01-21 Thread Jim Lucas
People often for get about a little problem that happens with the I found a bug when developing a download script a year or so ago. You can't have the 'attachment;' part in IE. It did some funky stuff and netscape 4 would die without it. Jim - Original Message - From: "Timothy Hitc

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Jim Lucas
what about checking the checking the remote ip address? Jim - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 10:45 AM Subject: Re: [PHP] Detecting posts from outside site > --- [EMAIL PROTECTED]

[PHP] Quick Question about Template Parsers

2003-01-22 Thread Jim Lucas
In general, how do most template parsers work? do they read the file into a variable and do something to the effect of preg_replace() to element that is found? and if so, could you replace the step of reading the file into a variable with getting the template data out of a database? WARNING...

Re: [PHP] Select value for driopdown box

2003-01-22 Thread Jim Lucas
function DrawOptions($options, $active='') { $str = ''; foreach($options AS $key=>$value) { $sel = ($active==$key?" SELECTED":""); $str .= "".$value."\n"; } return($str); } Try this array needs to be a key-value pair that has the value that you are looking for as the key and

Re: [PHP] Reading Directory in reverse

2003-01-22 Thread Jim Lucas
is it on a unix system? if so, do an ls on the system and you will see that the files are listed in that order. it is the order in which they were copied to the directory. try going through a loop before you run your main loop, create an array() then sort that with some sorting functions and you

Re: [PHP] a simple getenv question....

2003-01-22 Thread Jim Lucas
just copied your code and it worked fine for me. system: Apache 1.3.26 PHP 4.2.2 I would look into apache 2.0 and the env vars that are available from it. - Original Message - From: "Bruce Douglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003

Re: [PHP] total file size

2003-01-23 Thread Jim Lucas
yes, it is possible, but not with php. Jim - Original Message - From: "Victor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 8:10 PM Subject: [PHP] total file size > Is there a way to find out total upload file size from a file uploaded > though an html

Re: [PHP] why is mv copying ??

2003-01-24 Thread Jim Lucas
I am guessing that apache isn't the owner of the file. therefor it can't delete it from it original position. mv in unix basically copies the file pointer from one place and to another place. then deletes the original pointer. if you don't have permission to delete the file from its original po

Re: [PHP] help me

2003-01-24 Thread Jim Lucas
the only difference to structure is this line is in the first file and not the second. fw_menu_2.addMenuItem("STANDARD PROMOTION","location='http://www.bis.org.in/sf/sfp2.htm'"); diff is a wonderful tool!!! Enjoy Jim - Original Message - From: "Amit Gupta" <[EMAIL PROTECTED]> To: <[EMA

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
then run extract($_REQUEST); just above where you want to use the var1 var2... and it will place all the key => value pairs into the local scope. Jim - Original Message - From: "Noah" <[EMAIL PROTECTED]> To: "Philip Olson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, Janu

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
why would it matter if he does it just above the place that he is going to use them? doesn't matter if he is in a function or not. the $_REQUEST var will always be available. if he calls a function then he would have to do it just inside the function or pass it to the function. Jim - Origin

Re: [PHP] Backticks and echo

2003-02-19 Thread Jim Lucas
you could always to a preg_replace() and replace the backticks with their &#xxx; equal. Jim - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 4:27 AM Subject: [PHP] Backticks and echo > Hello everyone > > I reread the manual again o

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Jim Lucas
the default location for the php.ini file (if installed with the RPM's) is /etc/php.ini Jim - Original Message - From: "Kevin Paz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 11:03 AM Subject: [PHP] Cannot find php.ini > > I've taken over a redhat server w

Re: [PHP] What do these errors mean?

2003-02-21 Thread Jim Lucas
in the first line of the code you are refering to $_GET[option] option in this case is being seen as a constant. if you were to put single or double quotes it would work. the second notice means that in the $_GET array, there isn't a key called option it would probably work better if you did th

Re: [PHP] deciperhing oop

2003-03-03 Thread Jim Lucas
the second argument in the mysql_select_db call in not in scope. you should be using $this->db instead of $db Jim - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 2:52 PM Subject: [PHP] deciperhing oop > Can som

Re: [PHP] File Download

2003-03-06 Thread Jim Lucas
have the file download in a popup window. after the down load the window will be gone. Then you don't have to worry about the refreshing of the main window. Jim - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 8:30 AM Su

Re: [PHP] javascript

2003-03-07 Thread Jim Lucas
Plus, what if their was a textarea that you can't reload from the process page because the amount of data was greater then the max limit of the GET protocol? Then you would loose all that data. - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] Dollar signs in values

2003-03-07 Thread Jim Lucas
How are you including the file in question? Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 9:58 PM Subject: [PHP] Dollar signs in values How is it I can properly get PHP to represent dollar signs when putt

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Jim Lucas
Then the information in the DB is the same. Jim - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: "Rich Gray" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 10:03 AM Subject: Re: [PHP] MySQL Alias and PHP Thanks for the help. Almost there. Here

Re: [PHP] Min and max of array

2003-03-07 Thread Jim Lucas
make a copy of the original array and sort that, when you find it correct key, use that to refer to the correct value in the original array. Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:24 AM Subject: Re:

Re: [PHP] header function

2003-03-07 Thread Jim Lucas
if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying to access a value stored in a session variable, you need to initialize the session first, then access the variable. Jim - Original Message - From: "Barry Gould" <[EMAI

Re: [PHP] $PHPSESSID

2003-03-08 Thread Jim Lucas
I think it might have something to do with --enable-trans-sid read up on that Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 8:45 PM Subject: [PHP] $PHPSESSID First of all, thanks all who helped with the mi

Re: [PHP] file_exists() question

2003-03-08 Thread Jim Lucas
what does $annrow[id] return? I HAVE found that I have to refer to a file when using file_exists() from / so file_exists("/path/to/me/cherpdocs/filename.doc") for it to work right. Jim - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday

Re: [PHP] Array - Newbie question

2003-03-08 Thread Jim Lucas
You need to have this $EricCodesArray = array ( "CO" => array("Description", "Input Name", "Select Name", "Option Name",

Re: [PHP] ob_start -- output buffer problem

2003-03-10 Thread Jim Lucas
because the flush happens after everything is done, including the fputs thingy. you have to call ob_get_contents() or something like that. I always to this ob_start(); do something $data = ob_get_contents(); ob_end_clean(); then I work with the $data later. but if you don't use the ob_get_co

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Jim Lucas
You could signup with a company like yahoo.com or hotmail or bend.com and you could then have a web based email service. You ALWAYS have choices... :) Jim Lucas - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Derick Rethans'&q

Re: [PHP] Using INCLUDES in SAFE MODE

2003-07-02 Thread Jim Lucas
if you are on a linux system, you could always symlink the folders into the public_html dir. Jim Lucas - Original Message - From: "MIKE YRABEDRA" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 5:36 AM Subject: [

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

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] 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'm really getting annoyed with PHP

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

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 > Switch to postgres! then you can do > > SELE

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 All, > I have a text file that has entries

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]> Sent: Tuesday, March 18, 2003 2:52 PM Subject: [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 is cookie limitation on php

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 have coded e.g.: > > $sql =

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] Separators in variable values c

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" <[EMAIL PROTECTED]> Sent: Monday,

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 Goodie" <[EMAIL PROTECTED

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 by which i can stop session theft.i tho

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 PROTECTED]> To: <[EMA

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
- From: "Daniel Harik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 10:54 AM Subject: Re: [PHP] Grid edit form > Jim Lucas wrote: > > > This is untested, but I seem to recall doing something li

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
d edit form > > -Original Message- > > From: Daniel Harik [mailto:[EMAIL PROTECTED] > > Sent: 28 March 2003 18:55 > > > > Jim Lucas wrote: > > > > >

  1   2   3   4   5   6   7   8   9   10   >