RE: [PHP] which php book 2 buy ?

2002-03-26 Thread Rick Emery
Julie Meloni's PHP book provides basic PHP instruction and a tutorial to create a shopping cart. -Original Message- From: Septic Flesh [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 8:16 PM To: [EMAIL PROTECTED] Subject: [PHP] which php book 2 buy ? I wanna buy a book from amaz

RE: [PHP] MySQL arrays

2002-03-26 Thread Rick Emery
how can you take a size of a function: $len = sizeof($this->query); and WTF (query is a function, not an array): $tq = &$this->query[$q_id]; -Original Message- From: Anzak Wolf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 9:09 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL arr

RE: [PHP] MySQL arrays

2002-03-26 Thread Rick Emery
CHANGE: > $len = sizeof($this->query_id); > $len++; > $this->query_id = array($len=>&$q); > mysql_free_result($q); > return $len; TO: $this->query_id[] = $q; return sizeof($this->query_id); second: $q is a resource, that is, a pointer var

RE: [PHP] MySQL arrays

2002-03-26 Thread Rick Emery
All that you've accomplished in your example is to store the size of the queries; you've stored no data. Second, per my previous email: DO NOT RELEASE THE RESULT RESOURCE UNTIL YOU ARE DONE WITH THE PAGE. If you want to re-use a result record set, you can with the mysql_seek() function. You do

RE: [PHP] cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread Rick Emery
Direct answer: No, you cannot read a cookie on the same page that creates it. The question is: why would you want to? After all, you already have the data available to you that you would read from the cookie because you had to use it to create the cookie on that page. -Original Message

RE: [PHP] Re: which php book 2 buy ?

2002-03-26 Thread Rick Emery
Amazon says it's not published yet. So when -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 12:52 PM To: Ralph Friedman Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: which php book 2 buy ? Or, of course, if you want to be cool like Ca

RE: [PHP] strip spaces from inside string

2002-03-26 Thread Rick Emery
-Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 2:01 PM To: PHP General List Subject: [PHP] strip spaces from inside string Say I have a string "xyz abc def" and I want to remove all of the spaces withing the string to create a new one

RE: [PHP] sorting data from a field

2002-03-26 Thread Rick Emery
you can extract and sort on the last name: mysql> select substring(myname,locate(" ",myname)+1) as lname from mytable order by lname; this assumes names are stored as "john doe", that is with a space separator -Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Sunday

RE: [PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Rick Emery
Why? -Original Message- From: Peter Clarke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 6:03 AM To: [EMAIL PROTECTED] Subject: [PHP] how to close an http connection BUT carry on processing I'm looking for a way to close the connection with the browser yet have the script c

RE: [PHP] Question on eval()

2002-03-27 Thread Rick Emery
Note that vars[1] is created with ' ' so that the $-names are not interpreted. I assume that when the text is read from the file, it comes with the $s and the ending semi-colon (;). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 10

RE: [PHP] accessing a mysql column by number

2002-03-27 Thread Rick Emery
$row = mysql_fetch_row($result); $val1 = $row[0]; $val2= $row[1]; $val3 = $row[2]; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: [PHP] accessing a mysql column by number Is there a way to acce

RE: [PHP] Question on eval()

2002-03-27 Thread Rick Emery
why did you re-post this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Question on eval() Hi Folks, I save an ascii-sentence, representing my vars and their values in the db after I req

RE: [PHP] Copying Column names into a row

2002-03-27 Thread Rick Emery
mysql_field_name() mysql_list_fields() -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: [PHP] Copying Column names into a row Is there a way to copy the column names in a MySQL table into a row ?

RE: [PHP] class question 2

2002-03-27 Thread Rick Emery
Objects which are instantiated from classes on one page are not available on the next page. You have to use session functionality. -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:17 PM To: Php-General-List (E-mail) Subject: [PHP] cl

RE: [PHP] variables within variables - question

2002-03-27 Thread Rick Emery
$field2 = "<".$$field; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] variables within variables - question Im having a VERY hard time trying to explain this Here is a bit of my c

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread Rick Emery
$message .= "Some text here"; -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Adding stuff to the end of strings I was just wondering if there was a way to add new text to the end of strings.

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
PHP is weakly typed. Therefore, definitions are not needed. A variable may assume any guise depending upon its context. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Require variable declarat

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
There has been some discussion at zend.com to add this to PHP5/engine 2.0. However, the idea was rejected. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:54 PM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: [PHP] Require variable

RE: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Rick Emery
>From the manual for chr() Returns a one-character string containing the character specified by ascii. It replaces one (1) character, not a string -Original Message- From: Ando [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:59 AM To: [EMAIL PROTECTED] Subject: [PHP] ereg_re

RE: [PHP] Get a specified amount of text?

2002-03-28 Thread Rick Emery
string substr (string string, int start [, int length]) -Original Message- From: Donald [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Get a specified amount of text? In Visual Basic there is a function called left. usage: left(str

RE: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Rick Emery
ot; with chr('65') (\1 means everything in brackets in regular expression), which is 'A' . Rick Emery wrote: > From the manual for chr() > > Returns a one-character string containing the character specified by ascii. > > It replaces one (1) character, not a string

RE: [PHP] Can you use null?

2002-03-28 Thread Rick Emery
you test for a NULL value with PHP's isset() function. if( ! isset($image_name) ) { ... display no image ... } -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9:32 PM To: PHP General Subject: [PHP] Can you use null? I am wanting

RE: [PHP] Re: accessing a mysql column by number

2002-03-28 Thread Rick Emery
Jens, A database does have a structure. The order in which the columns/fields are defined is their numeric order. Second, mysql_fetch_row() will accomplish what he needs. Third, we answered this yesterday. -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: Thursday,

[PHP] New PHP4 Based on Zend 2.0 Engine Almost Ready for Release

2002-03-28 Thread Rick Emery
If you've read the Zend 2.0 Engine documentation, you'll know that PHP4 is getting a BUNCH of cool functionality To: php-dev at lists dot php dot net From: Andi Gutmans mailto:[EMAIL PROTECTED]>> Date: Sat, 23 Mar 2002 12:38:12 +0200 Hey, Most big language changes pl

RE: [PHP] Reopen of File in PHP

2002-03-28 Thread Rick Emery
What do you mean you "don“t have the filepointer anymore"? File pointer to what? The image file? Is the image file dynamically created using PHP? I must be dense...I don't understand. -Original Message- From: Moschitz Martin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 8

RE: [PHP] SQL Question

2002-03-28 Thread Rick Emery
> How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For > example say I wanted to list all my users alphabetically. How would I do > this? You would sort in your SQL statement, not PHP. SELECT * FROM my table ORDER BY field_name; > Or say I had a form and I wanted to present t

RE: [PHP] SQL Question

2002-03-28 Thread Rick Emery
What do you mean ORDER BY 'S' ?? yes, it can be a column or combination of columns and data. What are you trying to DO? -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 10:30 AM To: PHP General List (PHP.NET) Subject: RE: [PHP] SQL Question

RE: [PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Rick Emery
this appears to be a coding issue. show your code...we can't read your mind... -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:45 PM To: PHP Subject: [PHP] classes- getting their slowly but surely I think just a quick query, hopefu

RE: [PHP] Emulating POST ?

2002-03-28 Thread Rick Emery
http://sourceforge.net/projects/snoopy/ -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Emulating POST ? I need to somehow write a PHP Script that will POST XML type stuff to UPS like this:

RE: [PHP] Getting just the filename

2002-03-28 Thread Rick Emery
string basename (string path [, string suffix]) i recommend you read the manual before posting -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting just the filename Hello, Is there a simpl

RE: [PHP] Getting user name in text area

2002-03-28 Thread Rick Emery
Username: \n"; print ""; ?> -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting user name in text area Hi all, Here is what I have and what I am trying to do. I would like the us

RE: [PHP] require or include ?

2002-03-28 Thread Rick Emery
require() is used when you want the file included regardless of whether any information is used from it. include() may be conditional. -Original Message- From: javier [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] require or include

RE: [PHP] creating MySQL Users

2002-03-29 Thread Rick Emery
> $query .= "ON $username"; The ON clause should identify the database name, not the user. It should appear as "*.*. -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 4:27 PM To: [EMAIL PROTECTED] Subject: [PHP] creating MySQL Users 29/03/2002

RE: [PHP] Question about database-driven web sites.

2002-03-29 Thread Rick Emery
> What will a database-driven web site do for? If you have to ask, you have no need > How does it relieve stress on me? It doesn't. Quite the opposite > What is it good for? If you have to ask, you have no need > Why should I learn it? If you have to ask, you have no need -Original Messa

RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Rick Emery
Your problem is that you reference $mFileArray. You should reference $this_.mFileArray: for ($i=0; $i < count( $mFileArray ); $i++) // iterates through the array Therefore, count($mFileArray) is 0, so the loop ends without an explicit exit -Original Message- From: Eric Starr [mailto

RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Rick Emery
I mean: $this->mFileArray: -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 1:13 PM To: 'Eric Starr'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong? Your problem is that

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Rick Emery
I ran it through my PHP. Worked fine. You may wish to close each line with a ". -Original Message- From: Eric Kilgore [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:46 PM To: php-general (E-mail) Subject: [PHP] Can you find the parse error? What's wrong with this code that

RE: [PHP] Problems reading a URL

2002-04-01 Thread Rick Emery
You want Snoopy: http://snoopy.sourceforge.com -Original Message- From: Stephen Phillips [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 7:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Problems reading a URL Hi, I'm working on a script to read in the results from a search eng

RE: [PHP] Problems reading a URL

2002-04-01 Thread Rick Emery
It's been moved: http://sourceforge.net/projects/snoopy/ -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 8:08 AM To: 'Stephen Phillips'; [EMAIL PROTECTED] Subject: RE: [PHP] Problems reading a URL You wan

RE: [PHP] Please help with code

2002-04-01 Thread Rick Emery
You CANNOT execute the PHP script until the form is submitted. You are attempting to do both at the same time. Second, ALL your text fields muse be surrounded by quotes in your INSERT statement. Third, use NULL, not UNIX_TIMESTAMP() to insert a timestamp field. In the following, assume the name

RE: [PHP] Parsing error

2002-04-01 Thread Rick Emery
which line is 45 -Original Message- From: news.php.net [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Parsing error Hi, I'm real new in php and trying to read a txt file this is my code : and when i run it i get : Parse error:

RE: [PHP] Connecting to multiple DB's

2002-04-01 Thread Rick Emery
Both connects are "active". you specify which link when you select the database: mysql_select_db("database_name", $db1); mysql_select_db("database_name", $db2); -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 12:48 PM To: PHP List Subject: [

RE: [PHP] Can anyone help?

2002-04-01 Thread Rick Emery
> $query="INSERT INTO news (newsid,title, author, body, posted) > //VALUES($newsid,'$title','$author', '$body', $posted)";) What's with the // in front of VALUES? Change to: $query="INSERT INTO news (newsid,title, author, body, posted) ". "VALUES($newsid,'$title','$author', '$body', $

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
$query = "SELECT DATE_FORMAT( exp_date, \"%W, %M %d, %Y\") AS thedate from tifrequest where user='$user' limit 1,1"; Missing escape \ in front of quotes -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: [

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
He's not including the ; in the SELECT statement. The ; you're seeing is at end of the PHP statement -Original Message- From: Matt Friedman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 2:02 PM To: 'ROBERT MCPEAK'; [EMAIL PROTECTED] Subject: RE: [PHP] parse error, mysql select

RE: [PHP] date comparison expressions

2002-04-01 Thread Rick Emery
Are you retrieving the stored date from a mySQL database? If so, you can let mysql SELECT only those records that fit the tardy date criteria. -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] date

RE: [PHP] New php functions?

2002-04-01 Thread Rick Emery
I've got the PHP manual as a series of hyper-linked HTML pages. Searchig is is very fast. And, I don't need to wait for download of single page. I've got the index.html page in my Favoties list, so the PHP manual ia always available; I don't have to try to remember where the downloaded doc is.

RE: [PHP] New php functions?

2002-04-01 Thread Rick Emery
> Extended info at http://www.mslinux.org ROFLMAO -Original Message- From: margehair.terra.es [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] New php functions? I love that manual! And what about the one in win help format? Not

RE: [PHP] class instance name

2002-04-01 Thread Rick Emery
What is the class instance name? Are you referring to the name of the variable that holds the instance? -Original Message- From: Nate [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] class instance name How do you determine the class

RE: [PHP] BUG in recursion

2002-04-02 Thread Rick Emery
No, this is NOT a bug. You recurse 10 times down into the function. Therefore, as you come back up and exit the previous call to test(), you complete Test's processing, which is to print j The recursion process is as expected and correct == At 09:59 AM 31/03/2002, Ur

RE: [PHP] Need some help please

2002-04-02 Thread Rick Emery
$query="INSERT INTO news VALUES($newsid,'$title','$author',$posted,'$body' )"; -Original Message- From: menezesd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Need some help please Hello Friends. I know I am asking for too much.

RE: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query

2002-04-02 Thread Rick Emery
Jason means that you should execute it from the mysql command line; In your PHP code: print $sql. Then copy from that window and paste into mysql command line and execute. What are the results? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:4

RE: [PHP] date expressions

2002-04-02 Thread Rick Emery
Robert, I believe you are extracting this info from a mysql database. let mysql do it for you as I explained in my examples yesterday. If you need more infor from me, just ask/ -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:25 AM To: [

RE: [PHP] date expressions

2002-04-02 Thread Rick Emery
Don't need to convert to timestamp. Mysql will handle dates directly without this unnecessary conversion. -Original Message- From: James E. Hicks III [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:31 AM To: ROBERT MCPEAK; [EMAIL PROTECTED] Subject: RE: [PHP] date expressions

RE: [PHP] New php functions?

2002-04-02 Thread Rick Emery
FYI: http://www.lindows.com Unlike the http://www.mslinux.org (see below), which is an April Fool's joke, Lindows is an actual product in beta development now. It is a Linux based operating system that runs MS Windows applications. I can't wait to see the impact on PHP development that Lindows

RE: [PHP] DB Question

2002-04-02 Thread Rick Emery
Normally, you'll create the databases within the native database environment. For instance, for mysql, at the mysql command line. Then, you use PHP/PERL/C/sh/bash/... to access the database with various queries, such as SELECT. You also use the database native environment to update/maintain tab

RE: [PHP] how did this become an array?

2002-04-02 Thread Rick Emery
> What I don't understand is how did $result_row become $result_row[0] and > $result_row[1]? mysql_fetch_row() returns an array structure > Also what does it mean to select max(thread) as thread, max(mesid) as > mesgid? I have never used this "as" command before. max(x) returns the highest

RE: [PHP] Re: preventing "back" button usage?

2002-04-02 Thread Rick Emery
use cache control in your HTML to prevent BACK button usage This is easily done "Erik Price" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED]... > Sorry to plague this list with questions today, but I was hoping someone > could help me understand a fundamental thing about how bro

RE: [PHP] set browser timeout

2002-04-02 Thread Rick Emery
what do you mean "timeout"? What is timing out? -Original Message- From: Carl Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] set browser timeout Is there an HTTP tag in the header that can be sent to tell the browser not to

RE: [PHP] Warning: Undefined variable

2002-04-02 Thread Rick Emery
I've used undefined variables for over 30 years...which has caused many late-night debugging sessions and much pain. Defining and initializing variables is a good thing. I believe PHP has a flag set to warn of use of un-initialized data. I do prefer strongly-typed languages, such as C++. That

RE: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
have permissions been granted to contacts in mysql using that combination of username and password? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Connecting to a DB using PHP and mysql... Us

RE: [PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
at the mysql command line, type: mysql> show grants for johndoe@localhost; what does it show? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Connecting to a DB using PHP and mysql... Crai

RE: [PHP] Counting months between two dates

2002-04-02 Thread Rick Emery
John, Are you pulling dates from mysql? If so, let mysql do it for you. If you don't know how, ask again. -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Counting months between two dates I wan

RE: [PHP] Counting months between two dates

2002-04-02 Thread Rick Emery
if done in mysql: SELECT PERIOD_DIFF(DATE_FORMAT("2002-06-05","%Y%m"),(DATE_FORMAT("2001-08-27","%Y%m ") ); -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Counting months between two dates I wa

RE: [PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
I assume that instead of johndoe, you used the real user name that you have in your script -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:06 PM To: Rick Emery Subject: Rick... Rick, After typing in: mysql> SHOW GRANTS FOR john

RE: [PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
[mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 2:06 PM > To: Rick Emery > Subject: Rick... > > > Rick, > After typing in: > > mysql> SHOW GRANTS FOR johndoe@localhost; > > I get an ERROR 1064 > > Regards, > TR > ..

RE: [PHP] Remembering choices

2002-04-02 Thread Rick Emery
no such thing as a global variable accessible from all pages. use cookies or sessions -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Remembering choices Hi, I have a menu, where I would like

RE: [PHP] Cookies

2002-04-02 Thread Rick Emery
what is an infinite cookie? do you mean one that lasts after the browser is closed and can be re-examined at a later date? Already there... -Original Message- From: Steffan Harris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Cooki

RE: [PHP] Cookies

2002-04-02 Thread Rick Emery
. To believe otherwise would allow many of us an opportunity for off-list humor at the believer's expense. -Original Message- From: Steffan Harris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:13 PM To: Rick Emery Subject: RE: [PHP] Cookies sorry, I was in a rush when I wro

RE: [PHP] images not displaying

2002-04-02 Thread Rick Emery
examine the generated HTML with View Source in your browser. Does it contain what you expect? -Original Message- From: Carl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 4:45 PM To: [EMAIL PROTECTED] Subject: [PHP] images not displaying the images folder is in /website/

RE: [PHP] images not displaying

2002-04-02 Thread Rick Emery
2, 2002 4:56 PM To: 'Rick Emery'; [EMAIL PROTECTED] Subject: RE: [PHP] images not displaying yes. the SRC=/home/website/testingArea/images/ Should I just make it http://website.com/testingArea/images/ instead? __ Carl Schmidt | Developer | L

RE: [PHP] Passing Values

2002-04-03 Thread Rick Emery
show us code -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 6:02 AM To: PHP General List (PHP.NET) Subject: [PHP] Passing Values Hello, Today I was working on an object that will create all of the columns and tables in my DataBas

RE: [PHP] mail tag

2002-04-03 Thread Rick Emery
stripslashes() failed??? I've used stripslahses in this situation, and it's worked perfectly. Wonder what else is going on here? Go without quotes. Try: mail($usersemail, $subject, $message, $headers); -Original Message- From: hamish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April

RE: [PHP] What's wrong with the Array? I"m baffled!

2002-04-03 Thread Rick Emery
show the rest of your code When you say this code is "repeated again", what does that mean? repeated in a function, a loop,...? Print out $sumItUp["TU4R"] prior to if(). Is it as you expect? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03,

RE: [PHP] syntax for date math expressions

2002-04-03 Thread Rick Emery
Convert to date/time variable and perform arithmetic. Otherwise, if these dates are from mysql, let mysql do it -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] syntax for date math expressions

RE: [PHP] can't get it to work

2002-04-03 Thread Rick Emery
Of course that's a mysql parse error!! Mysql dates are -MM-DD. Do NOT use slashes $query = SELECT * FROM table where date >= \"$year_1-$month_1-$day_1/$year_1\" AND date <= \"$year_2-$month_2-$day_2\""; Read the mysql manual concerning dates, formats, functions -Original Message-

RE: [PHP] can't get it to work

2002-04-03 Thread Rick Emery
Need one more quote (se below) Of course that's a mysql parse error!! Mysql dates are -MM-DD. Do NOT use slashes $query = "SELECT * FROM table where date >= \"$year_1-$month_1-$day_1/$year_1\" AND date <= \"$year_2-$month_2-$day_2\""; Read the mysql manual concerning dates, formats,

RE: [PHP] Re: syntax for date math expressions

2002-04-03 Thread Rick Emery
SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date >= $somedate; or SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date >= now(); -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:00 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] Any ideas on combining arrays????

2002-04-03 Thread Rick Emery
ok...so what problem are you having? what's the error? your code worked for me, i.e., it compiled and executed -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Any ideas on combining arrays???

RE: [PHP] mail() problem...

2002-04-03 Thread Rick Emery
$arrText[$i] still contains the new-line character at the end. Is that harmful here? -Original Message- From: Jack Davis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:16 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() problem... I wrote a small piece of code to take a tex

RE: [PHP] Help with e-mail...

2002-04-03 Thread Rick Emery
send an email to yourself: -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:26 PM To: PHP General Subject: [PHP] Help with e-mail... I have just install a program called Web Calendar. It suppose to be able to send reminders via e

RE: [PHP] Logfile of Mysql Queries?

2002-04-04 Thread Rick Emery
on a unix/linux box, all queries are in /var/log/mysqld -Original Message- From: Moschitz Martin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 8:55 AM To: [EMAIL PROTECTED] Subject: [PHP] Logfile of Mysql Queries? Is there any possibility of logging all the Insert, Update an

RE: [PHP] Classes??

2002-04-04 Thread Rick Emery
yes -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 10:43 AM To: PHP Subject: [PHP] Classes?? Maybe a simple question. But can one file contain 2 or more classes?? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] mySQL join query error

2002-04-04 Thread Rick Emery
change to: SELECT * FROM tifrequest LEFT JOIN USING(user) WHERE tifexpire.exp_date >="2002-04-04" It helps if you provide the error message. Also, this would have been found when you entered it directly into the mysql command line prompt. -Original Message- From: ROBERT MCPEAK [mailto:[

RE: [PHP] New to PHP Need Help

2002-04-04 Thread Rick Emery
change: $Location_Info = mysql_fetch_row($result); to: $row = mysql_fetch_array($result); $Location_Info = $row['fieldname']; replace "fieldname" with the real name of your database field -Original Message- From: Jason Tobias [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 9:2

RE: [PHP] references a functions

2002-04-04 Thread Rick Emery
What happened when you tried? -Original Message- From: javier [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] references a functions I trying to code a kind of DB wrapper. So when is dbQuery turn I run into trouble. I read in php ma

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
Because you did NOT \\ all your \'s What error are you getting? -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace Why won't this work? $NoteNm[$i] = eregi_replace ("V:

RE: [PHP] strip_tags() problem

2002-04-04 Thread Rick Emery
you need to open and process yahoo with file statements, not include please read the PHP manual... -Original Message- From: Ryan Govostes [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:44 PM To: PHP People Subject: [PHP] strip_tags() problem The following simple code does

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
show the whole line of coding again. very few of us keep threads. include previous responses -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] eregi_replace > Backslashes are magic. >

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
ECTED]] Sent: Thursday, April 04, 2002 3:18 PM To: Rick Emery Subject: RE: [PHP] eregi_replace > $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", "$NoteNm[$i]"); > $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "", &

RE: [PHP] eregi_replace

2002-04-04 Thread Rick Emery
it should print: V:\memo\F0001\abcdef.com \F0001\abcdef.com -Original Message- From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:35 PM To: Rick Emery Cc: 'Fredrik Arild Takle'; [EMAIL PROTECTED] Subject: RE: [PHP] eregi_replace I got this as

[PHP] RE: [Zend Engine 2] Unsigned Right(Maybee Left) Shift [Again]

2002-04-04 Thread Rick Emery
Count me as AGAINST, because <<< is heredoc operator -Original Message- From: Jason Greene [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 9:43 AM To: PHP-Dev; Andi Gutmans; Zend Engine 2 Subject: [Zend Engine 2] Unsigned Right(Maybee Left) Shift [Again] So far, after posting

RE: [PHP] PHP stops execution without error message

2002-04-05 Thread Rick Emery
If this is a web-page you are generating, I believe browser timeout is 5 minutes. -Original Message- From: Ando [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 6:19 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP stops execution without error message Importance: Low Running php ver

RE: [PHP] Includes

2002-04-05 Thread Rick Emery
Assume the following file is named "this_script.php": This is all in ONE file. \n"; do some other stuff exit; } ?> -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 4:19 AM To: PHP General List (PHP.NET) Subject: [PHP] Includ

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
Since I ran this on Win2000 machine, I changed name of directory: You were right on the money with your code; just a minor mod or two was required: $filex\n"; } $form = "\n". "$file_count\n". "\n". ""; // close directory closedir($dir); print $form; ?> outputs the following: . .. activities.txt

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
Rick, thanks a ton... you have helped me out alot on this list. I got the code working probably about the same time you and another gentleman posted the same fixes I made, however I now have another question about adding a hidden field to take the results of the users selection and passing it along

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
the contents of the SELECT box and the contents of the HIDDEN field are separate entities. Append the path upon transfer to the next PHP script Show us what you REALLY want to do here instead of keeping us guessing... -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [PHP] conditionally including classes/functions

2002-04-05 Thread Rick Emery
It's okay to do so. That's why include() was created; to provide conditional inclusion. -Original Message- From: Andrew Warner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] conditionaly including classes/functions Is it okay pra

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
When ad_done.php3 is called, it will receive a variable named $files. Change: $file_name"; to: "; $files will contain the value of the file selected -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] D

RE: [PHP] refresh

2002-04-05 Thread Rick Emery
after database submission, header("location: ...") re-directed to the script you wish to go to -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: [PHP] refresh I want to be able to refresh my browser window

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