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
I must be missing something. Just add a HIDDEN type in your form. It will be sent with all your form data. -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Directory to array to select box... Hey Ric

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

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
addslashes($textline) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: [PHP] regexp for ' replacement Yet another regexpr question. If I have as part of a text: ...and then 'the quick brown f

RE: [PHP] Writing to Files

2002-04-05 Thread Rick Emery
try creating a script with fopen(), fwrite(), etc. When you run into problems, ask here. $filex = fopen("myfile","w"); fwrite( $filex, "write this here"); fclose($filex); -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:29 AM To: PHP Gener

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
MAIL PROTECTED]] Sent: Friday, April 05, 2002 11:35 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: RE: [PHP] regexp for ' replacement Nop. I don't want to affect the first and last ' of every line. On Fri, 5 Apr 2002, Rick Emery wrote: > addslashes($textline) > >

RE: [PHP] refresh

2002-04-05 Thread Rick Emery
yes, put the name of the PHP file -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 12:23 PM To: Rick Emery Subject: RE: [PHP] refresh When I delete a record from a table in php it loops back to the table. However, It does not show that the

RE: [PHP] MySQL - UPDATE & INSERT

2002-04-05 Thread Rick Emery
what happened when you tried your query? -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] MySQL - UPDATE & INSERT Is this query legal? $query = "UPDATE table SET (var1, var2, var3) VALUE

RE: [PHP] Arrays within classes

2002-04-05 Thread Rick Emery
I corrected the syntax errors Erik found and added var_dump() after each $t equation/assignment The problem is that you refer to $test->words. You should refer to $test->words BIG DIFFERENCE $test->words means find the value of $words and look for that variable in $test. That is, if $words ="a

RE: [PHP] Arrays within classes

2002-04-05 Thread Rick Emery
riginal Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:28 PM To: 'Brian McLaughlin'; [EMAIL PROTECTED] Subject: RE: [PHP] Arrays within classes I corrected the syntax errors Erik found and added var_dump() after each $t equation/assignment The proble

RE: [PHP] getting slash with single quotes in form mail

2002-04-05 Thread Rick Emery
stripslashes($text) -Original Message- From: Rob Packer [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 7:46 PM To: [EMAIL PROTECTED] Subject: [PHP] getting slash with single quotes in form mail Hi, I have a contact form and when someone fills it out, all the single quotes (

RE: [PHP] difficulty in solving the unknown warning

2002-04-08 Thread Rick Emery
so what does line 111 look like? we can't read your mind... -Original Message- From: erich [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: [PHP] difficulty in solving the unknown warning i am a php programmer whose learning expr. is about

RE: [PHP] Upload alert

2002-04-08 Thread Rick Emery
What you're seeking is push technology. I'm not certain that PHP can provide that. However, PHP can email you using the mail() function -Original Message- From: Rodolfo Silva [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Upload ale

RE: [PHP] Object Confusion

2002-04-08 Thread Rick Emery
$A->variable Rather than having us all guess, show your code... -Original Message- From: Robert J. Cissell [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Object Confusion If object of type A ($A) contains a variable $B which is an

RE: [PHP] fwrite() - problems....

2002-04-08 Thread Rick Emery
$fp = fopen($filename, "w"); fwrite($fp, $outputstring); READ THE DOCS -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:51 PM To: [EMAIL PROTECTED] Subject: [PHP] fwrite() - problems I have a large string that I want to written t

RE: [PHP] mysql question

2002-04-08 Thread Rick Emery
mysql is a relational database. therefore, the concept of a row number is irrelevant. that said, what do you REALLY want to do -Original Message- From: Julian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:59 PM To: [EMAIL PROTECTED] Subject: [PHP] mysql question Hi!!! I

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Rick Emery
perhaps you could use $file_name -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Assigning unique form names... Ok I understand what you mean here, however what I need to do is have a unique form actio

RE: [PHP] Image Question

2002-04-08 Thread Rick Emery
First, why store it in a database? Why not store it as a separate file, then store pointer/file-name to it in database? If you do want it in the database (may I assume mysql?), then INSERT/LOAD the file directly into the field without conversion. -Original Message- From: Jay Paulson [ma

[PHP] RE: MySQL ORDER BY or PHP Sort?

2001-12-03 Thread Rick Emery
SELECT * FROM mytable ORDER BY series,price; -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 4:27 PM To: [EMAIL PROTECTED] Subject: MySQL ORDER BY or PHP Sort? I want to select about 25 rows from a table, and sort them by two criteria.

[PHP] RE: What is causing duplicate keys?

2001-12-05 Thread Rick Emery
it should read: INSERT INTO recensioni VALUES( NULL,... In order fot auto_increment to work, you must use NULL. When you tried NULL, what SPECIFIC error did you get when it complained? FYI: it complains about the "duplicate key" because you already inserted a record with 300 in the PRIMARY KEY

[PHP] RE: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Rick Emery
Are your privileges in MySQL set correctly? If ROOT doesn't have read/write access, the script will crash. rick -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 11:29 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] restoring

[PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
any insight? Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci --

Re: [PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: We're running Zend Platform on a server that also has apc installed; we're using apc in the scripts to cache data, and I understand (I think) that it also does bytecode also often referred to as 'opcode' cac

[PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
t method is being used to accomplish it. Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return"

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Quoting Richard Lynch <[EMAIL PROTECTED]>: On Wed, September 27, 2006 7:40 am, Rick Emery wrote: I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity back if certain conditions are met execute ano

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-10-11 Thread Rick Emery
Quoting Chris <[EMAIL PROTECTED]>: Rick Emery wrote: Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? I'm trying to do something like this in the PHP applicat

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
m somebody else? -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci -- PHP General Mailing List

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] Couldn't I write my own cookie to fool the authentication into thinking I'm somebody else? [/snip] I suppose that you could do that if you were savvy enough to realize that automatic login to the intranet used a cookie for authentication and you knew how to for

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the username only prob

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
Quoting Rory Browne <[EMAIL PROTECTED]>: I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logg

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Rick Emery
ot;INSERT INTO age (age_label) VALUES ($age)"; $results = mysql_query($insert) or die(mysql_error()); $age++ } There's a semi-colon missing at the end of the last line ($age++). Hope thi shelps, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with

Re: [PHP] Retrievable weather service info?

2005-06-16 Thread Rick Emery
, a XOAP service from Weather.com and METAR/TAF from NOAA are supported. Further services will get included, if they become available, have a usable API and are properly documented." hth, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes tur

Re: [PHP] Problem with array

2005-06-17 Thread Rick Emery
age, but am leaving the code below as reference. Sorry for the long post. if ($quantity == 0){ } else { $pieces = explode(" ", $quantity); $formatted_price = sprintf('%0.2f', $pricecode); echo "$pieces[0]$pieces[1] $pieces[2] $pieces[3] $pieces[4]$formatte

[PHP] PHP vs. ColdFusion

2005-06-26 Thread Rick Emery
t would be greatly appreciated. Opinions are welcome (especially from programmers with experience in both), but I have to "sell" it to management (I'm already on the PHP side), so links to data or articles comparing the two are best. Thanks in advance, Rick -- Rick Emery "When

<    1   2   3   4   5   6   >