RE: [PHP] Frustrating ?

2002-02-18 Thread Rick Emery
It means your query failed. Change $news = mysql_query('select * from ccl where '.$where.' order by AU desc'); TO: $news = mysql_query('select * from ccl where '.$where.' order by AU desc') or die("error: ".mysql_error()); this will display the error -Original Message- From: jtjohnston

RE: [PHP] response

2002-02-18 Thread Rick Emery
A little more code would be handy. We promise not to steal it for our own use When you print $inst, is the correct value displayed? May we assume the block is in a form? -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:06 AM To: [EMAIL

RE: [PHP] pg_result pg_fetch_row pg_fetch_array

2002-02-18 Thread Rick Emery
If they'e like the mysql equivalents, then: pg_result() fetches a single value pg_fetch_row() fetches a row from the result set. Access each value with an integer subscript. pg_fetch_array() fetches a row from the result set. Access each value with the name of the column/field read the manual

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
You can also do this via a PHP script, which is what I do. I have 5 URLs all going to the same site (500 megs disk space). I parse the subdomain, and re-driect to the appropriate sub-directory. Actually, you don't even need to parse the URL for sub-domain. Just search for the "yourname.mysite.

[PHP] Unsubscribe s.osborne

2002-02-18 Thread Rick Emery
TECTED]> list-post: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 5392 invoked from network); 18 Feb 2002 17:22:09 - Message-ID: <[EMAIL PROTECTED]> From: Rick Emery <[EMAIL PROTECTED]> To: 'Adrian Murphy' <[EMAIL PROTE

RE: [PHP] got the code

2002-02-18 Thread Rick Emery
First, where is $inst set prior to being echoed and tested? second, please stop changing the subject. It makes following the thread very difficult. -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:25 AM To: [EMAIL PROTECTED] Subject: [PH

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
Only re-directed from the index.html page. My web-host service is set-up so that .HTML suffix files can execute PHP script files without re-directing to them. -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:49 AM To: [EMAIL PROTECTED] Sub

RE: [PHP] Returning table rows from MySQL

2002-02-18 Thread Rick Emery
"); print (""); print ("Song"); print ("Artist"); while ($Row =mysql_fetch_array($Result)) { print (""); $ctr = -$ctr; if( $ctr == 1) { print ("$Row[song]"); print ("$Row[artist1] $Row[artist]"); } else { print ("$Row[song]"); print ("$Row[artist1] $Row[artist]

RE: [PHP] Reading PHP Session Files?

2002-02-18 Thread Rick Emery
You, of course, recognize this as serialized data. Therefore, simply use unserialize(), change the data value, the serialize() it again. -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Reading

RE: [PHP] http_referer

2002-02-18 Thread Rick Emery
Try accessing the variable: $HTTP_REFERER without specifying the array. it works for me -Original Message- From: tom hilton [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:25 PM To: [EMAIL PROTECTED] Subject: [PHP] http_referer Hi, I am trying to pull http_referer inf

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
I must not understand your question. As you've asked it, the answer is: SELECT AccessRight FROM tableA; -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 1:27 PM To: PHP (E-mail) Subject: [PHP] Php Enum Field Hi all, How can I get the preset v

RE: [PHP] Re: Polymorphism in PHP

2002-02-18 Thread Rick Emery
I must be missing something in your question, because I just tried your script below and it worked as advertised. Did you try the script and it failed? -Original Message- From: Richard Fox [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:13 PM To: PHP Subject: [PHP] Re: Polym

RE: [PHP] Timed Redirect

2002-02-18 Thread Rick Emery
http://www.mydomain.com/newpage.html";> will redirect after 15 seconds -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Timed Redirect Is there way to have a page automatically redirect the u

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
mysql> show columns from mytable like "myfield"; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | myfield | enum('Add','Read','D

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
Do you wish to create multiple forms or multiple input fields on a single form? -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice Question Hi thanks for reading this. This problem is di

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
ow would I dynammicaly create the input boxes and name the inputs. Thanks for your time on this, I sorry I didnt explain this clearer in the first place, Thanks, Bren >From: Rick Emery <[EMAIL PROTECTED]> >To: 'brendan conroy' <[EMAIL PROTECTED]>, >[EMAIL PROTEC

RE: [PHP] Is it possible to...

2002-02-19 Thread Rick Emery
> Is it possible for function1() to access the variables that were defined in the function2() namespace? Must be defined with global construct, as you did in function1() -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:52 AM To: PHP Gene

RE: [PHP] explode? (table field to a variable of same name)

2002-02-19 Thread Rick Emery
This isn't exactly what you want, but it is close: list($user_id,$field2,$field3,$field4) = $row; where $row was retrieved via mysql_fetch_array() Just list each of the variable names in the list() function; include ALL fields' names included in $row -Original Message- From: Baloo :0) [m

RE: [PHP] Storing Newsletter in Database

2002-02-19 Thread Rick Emery
An XML DTD would not work here; XML describes content, HTML describes presentation. You might consider translating to PDF via Adobe Acrobat. Acrobat supports hyperlinks and PDF is a standard plugin for the IE and NN -Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED]] Sent: Tue

RE: [PHP] argv and argc

2002-02-19 Thread Rick Emery
look in the manual under predefined variables: language.variables.predefined.html -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 4:00 PM To: PHP General Subject: [PHP] argv and argc The other day, I was reading the docs and I just happen

RE: [PHP] Don't Know how to Set the include Path

2002-02-20 Thread Rick Emery
Do you need to use an include path? Why not just use the include() function? Also, what are the contents of constant.inc? Perhaps the problem lies there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:03 AM To: [EMAIL PROTECTED] Subject: [

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread Rick Emery
change: test link to: >test link -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:30 PM To: PHP List Subject: [PHP] Help for passing variable to all pages Hi All, I am new to PHP and learning as I go by reading many of the tutoria

[PHP] PHP-Windows2000 Server-Apache/Tomcat

2002-06-03 Thread Rick Kalifa
ver is the server.xml but there are no references as to what to enter in that file to make the module work. Any assistance would be greatly appreciated. Thanks, Rick Kalifa.

RE: [PHP] Re: difference between php3 and php4

2002-02-22 Thread Rick Emery
The warning means the query failed in mysql. Perhaps it failed in the connect. You do not need the number of rows. To determine what the problem is, ALWAYS include a die() clause: $db = mysql_connect("localhost", "", "") or die("Error: ".mysql_error()); mysql_select_db("employee",$db) or die("E

RE: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Rick Emery
Go with QMAIL Lots of support (mailing lists, web-sites). Several books written on it. Easier to set-up than sendmail. Very configurable. Written by same gent that wrote ezmlm mailing list application (ezmlm handles the PHP mailing lists). goto: http://cr.yp.to/qmail.html -Original Messag

[PHP] RE: php email question

2002-02-25 Thread Rick Emery
Terry: I forwarded this to php-general list. Perhaps they can answer your question -Original Message- From: Terry Romine [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:01 AM To: Subject: php email question I am trying to set up a MIME email that would include an HTML and

RE: [PHP] Help w/ "join" syntax

2002-03-11 Thread Rick Emery
What do you mean "it doesn't work?" What results are you getting? Specifics...we need specifics... -Original Message- From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 6:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Help w/ "join" syntax When I call the foll

RE: [PHP] Check "@" in Record & show Error in mail() !!

2002-03-11 Thread Rick Emery
$result = mysql_query("SELECT * FROM sms where email LIKE \"%@%\" ORDER BY ID DESC",$db); -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 12:18 PM To: RIVES Sergio Cc: [EMAIL PROTECTED] Subject: [PHP] Check "@" in Record & show Error in m

RE: [PHP] Unknown Error Reason

2002-03-11 Thread Rick Emery
First: change - if(file_exists($info[5]){ to - if(file_exists($info[5])){ Second: ensure the file permissions are set to rwxrwxr-x for bank.php -Original Message- From: David [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Unknown Err

RE: [PHP] 'undef' as an argument value

2002-03-11 Thread Rick Emery
function foo($arg1_required, $arg2_optional="") if ($arg2_optional=="") { print "not passed"; } else { print "explicit"; } } -Original Message- From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 3:17 PM To: [EMAIL PROTECTED

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Rick Emery
What do you mean " it doesn't like the "LIKE" Please provide the query statement you used and the response from the application -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:22 PM To: liljim Cc: PHP General Subject: Re: [PHP] Re: A s

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Rick Emery
ther your query is what you expected (2) what mysql didn't like about your query -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:31 PM To: Rick Emery; 'Chuck "PUP" Payne'; liljim Cc: PHP General Subject: RE:

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Rick Emery
I just noticed your WHERE clause is incomplete. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:33 PM To: 'Chuck "PUP" Payne' Cc: PHP General Subject: RE: [PHP] Re: A stupid question... To help you diagnose the problem

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Rick Emery
your query is: DELETE FROM mytable; -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 5:09 AM To: [EMAIL PROTECTED] Subject: [PHP] reset auto_increment field mysql I have a mysql table which contains an id field which is set to auto_increment. I

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Rick Emery
. On Tue, 12 Mar 2002, Rick Emery wrote: > your query is: DELETE FROM mytable; > > -Original Message- > From: Claudiu [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 12, 2002 5:09 AM > To: [EMAIL PROTECTED] > Subject: [PHP] reset auto_increment field mysql > &

RE: [PHP] Hi can we write a form inside td element of a table?

2002-03-12 Thread Rick Emery
-Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 12:12 AM To: Php-General Subject: [PHP] Hi can we write a form inside td element of a table? Hi, can we give a form element as td inside table element? Thanks in advance Balaji --

RE: [PHP] input

2002-03-13 Thread Rick Emery
'; ?> -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: [PHP] input hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder

RE: [PHP] input

2002-03-13 Thread Rick Emery
Nope, that's not the problem. the $_POST[] is NOT inside single-quotes. The problem is he used commas before and after the $_POST[]. -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 7:02 AM To: PHP-General Subject: Re: [

RE: [PHP] Re: setcookie problem: Cannot add header information - headers already sent by

2002-03-13 Thread Rick Emery
He IS setting cookie before sending block. Note, that he is storing the beginning of block in a HEREDOC, which he prints after setting cookie. Somewhere, he may be printing a blank line prior to setting cookie...that problem has bitten me more than once, so now I'm on the look-out for it in my

RE: [PHP] RE: passing values

2002-03-13 Thread Rick Emery
John, Post your code. We're all operating in the dark here and we want to help you. -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 8:07 AM To: [EMAIL PROTECTED] Subject: [PHP] RE: passing values Ray, I am using the post method, and

RE: [PHP] Re: Get row number from mysql

2002-03-14 Thread Rick Emery
The greater question: Why does irow order matter? What are you REALLY trying to do? == In article <000701c1cb06$3b54f3b0$0101a8c0@nightengale>, [EMAIL PROTECTED] says... > Hello, > > How can I get the number of the current row, something like this: > > $sql = mysql_query("SELECT

RE: [PHP] mail() and qmail

2002-03-14 Thread Rick Emery
I use qmail with PHP on a RH v 7.0 system. Works like a charm. I compiled/installed qmail from source. Installed RH, Apache, PHP from RPMs. I'm not at my home-office, where I have this set-up, so I cannot provide you with my set-up info. I dod not use vpopmail yet, but I will soon instll it a

RE: [PHP] Cookies not expiring

2002-03-14 Thread Rick Emery
Can't read your mind, bud. Show us your code... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 2:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookies not expiring I understand that if an expiration time is not set, the cookie should expir

RE: [PHP] Connecting Form result to PHP query?

2002-03-14 Thread Rick Emery
Form elements are passed to the following page as variable names. For instance, the text value in subject 1 input element: is passed to the following page as: $subject1 -Original Message- From: PHPList [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 11:59 PM To: [EMAIL PROT

RE: [PHP] CLI through PHP

2002-03-14 Thread Rick Emery
index.html mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:51 PM To: [EMAIL PROTECTED] Subject: [PHP] CLI through PHP 14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line software through PHP.  For instance, I have an FTP program

RE: [PHP] get the greatest key of an array???

2002-03-14 Thread Rick Emery
krsort(array) then grab first key. -Original Message- From: Alex Elderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:47 AM To: [EMAIL PROTECTED] Subject: [PHP] get the greatest key of an array??? Hi, How can i get the greatest key of an array?? $array[1] = "..."; $arr

RE: [PHP] Cookies not expiring

2002-03-14 Thread Rick Emery
Sent: Thursday, March 14, 2002 9:04 AM To: 'Rick Emery'; [EMAIL PROTECTED] Subject: RE: [PHP] Cookies not expiring Here is what I am using to set my cookie. $cp_sessionid = $CP_partnerid . "_" . uniqid(str_pad(getenv("REMOTE_ADDR"), 15, "0")); setcookie(&

RE: [PHP]

2002-03-14 Thread Rick Emery
stripslahses($variable) -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Hi, I have the following probably very simple problem. Basically what I need to do is to collect info from the user

RE: [PHP]

2002-03-14 Thread Rick Emery
I mean: stripslashes($variable) -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:24 AM To: 'Vlad Kulchitski'; [EMAIL PROTECTED] Subject: RE: [PHP] stripslahses($variable) -Original Message- From: Vlad Kulchitski [mai

RE: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Rick Emery
the best you can do is: -Original Message- From: Ando Saabas [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] regular expression for (NOT 'word') how would i build a regular expression in php that would match everything but the giv

RE: [PHP] dateformat

2002-03-18 Thread Rick Emery
-Original Message- From: Sven Jacobs [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 5:03 AM To: [EMAIL PROTECTED] Subject: [PHP] dateformat hey all I want to convert 20020211150245 into 2002-02-11 15:02:45. Does somebody have the correct conversion for this ? -- PHP Genera

RE: [PHP] using reload within PHP when submitting a form

2002-03-20 Thread Rick Emery
I use this construct constantly. Assume name of script is "thisform.php3": -Original Message- From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 10:29 PM To: [EMAIL PROTECTED] Subject: [PHP] using reload within PHP when submitting a form I have

RE: [PHP] edit record in mysql and receive error

2002-03-20 Thread Rick Emery
We can't read your mind. What kind of error do you get? Second, I recommend that you ALWAYS add the die() clause to your mysql function calls -Original Message- From: Manu Verhaegen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 7:16 AM To: 'Php-General (E-mail) Subject: [PH

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
if( $line[1]='$bruker' and $line[2]='$passord') {echo "hei $bruker.";} else {echo "FEIL";} -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:15 AM To: [EMAIL PROTECTED] Subject: [PHP] why doesnt this work??? this script receiv

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
MAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? nope... that did not do the trick... -Chris "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
This works; I just tried it. -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works b

RE: [PHP] mysql update help needed

2002-03-20 Thread Rick Emery
if ($postaction=="edit") -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 11:44 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql update help needed Can somebody straighten this out for me? I can't get the update to work. I'm sure the varia

RE: [PHP] Problem with posting

2002-03-20 Thread Rick Emery
What do you mean "All other browsers either do not submit form data"? show your code. What kind of user authentication are you using? If none, they'll vote and vote often. -Original Message- From: James Arthur [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 1:39 PM To: [E

RE: [PHP] [newman] This don't work, "if" else if

2002-03-21 Thread Rick Emery
if (mysql_num_rows($sql_result) > 0) { FYI: thank you for providing full code and what the algorithm is supposed to accomplish. Most posters do not. -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 6:37 PM To: [EMAIL PROTECTED] Subjec

RE: [PHP] testing for blank var

2002-03-21 Thread Rick Emery
if ( ! ISSET($img_url) ) -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:18 AM To: [EMAIL PROTECTED] Subject: [PHP] testing for blank var if $img_url has a value, then I'd like to show the image, if it doesn't, then I'd like to

RE: [PHP] Parse from a Text file

2002-03-21 Thread Rick Emery
As you read each line into a variable, $chrText, apply this test: ereg("Visibility: ([0-9]*.*)", $chrText,$regs); EXAMPLE: You will find what you need in $regs[1] -Original Message- From: Gerard [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:44 AM To: [EMAIL PROTECTED] Su

RE: [PHP] Parse from a Text file

2002-03-21 Thread Rick Emery
You're welcome. we aims to please... -Original Message- From: Gerard [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:22 AM To: Rick Emery Subject: Re: [PHP] Parse from a Text file Many thanks Rick ! Much apreciated & very fast :-) Gerard - Original Message -

RE: [PHP] T_STRING, T_VARIABLE, and T_NUM_STRING

2002-03-21 Thread Rick Emery
you just have to double check your code, as you did -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:07 AM To: Rick Emery Subject: Re: [PHP] T_STRING, T_VARIABLE, and T_NUM_STRING I had already fixed the error, I just wondered what

RE: [PHP] Re: Function Not Accepting Variable Values From a Form

2002-03-21 Thread Rick Emery
you still need to declare the values as GLOBAL -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Function Not Accepting Variable Values From a Form I will try $_POST[] first. I do that under the

RE: [PHP] $HTTP_POST_VARS

2002-03-21 Thread Rick Emery
$interest = $HTTP_POST_VARS['interest']; or (if using PHP 4.1) $interest = $_POST['interest']; then reference $interest[0], $interest[1], $interest[2],... -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:54 AM To: [EMAIL PROTECTED] S

RE: [PHP] Forms

2002-03-22 Thread Rick Emery
First: I've not seen a print statement in that format before. Second: the following line has parameters misspelled twice. Your function is called with "parameters", not "paramaters" if(isset($paramater["default"]) and $v == $paramater["default"]) -Original Message- From: Ron [mailto:

RE: [PHP] Forms

2002-03-22 Thread Rick Emery
One more suggestion: prior to exiting the form_radio() function, print $output to determine if it's the contents you expect -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:16 AM To: 'Ron'; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
if (ereg("john",$jeff) ) { } or: if( strstr( $jeff, "john") ) { } or: if( strpos( $jeff, "john") ) { } -Original Message- From: Warwick Berg [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: [PHP] comparisons Hi Just learning php from t

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
we aims to please... -Original Message- From: J W W L (Warwick) Berg [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:45 AM To: 'Rick Emery' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] comparisons Hey thanks Rick Appreciate it. Regards.. Warwick Berg -Origin

[PHP] RE: [PHP-DB] Forms

2002-03-22 Thread Rick Emery
First: cross-posting to multiple lists...not nice. Most PHP folks are on both lists. Second: your first sentence seems to indicate that unknowledgeable people inhabit the PHP list, vice the PHP-DB list. H Third: what error do you get when you get the parsing error? -Original Messa

RE: [PHP] A Newbie needs help with his first Class

2002-03-22 Thread Rick Emery
Don's original declaration is correct. It refers to a constructor. Without a parameter, the new() will fail. -Original Message- From: Stampe, Lars [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:53 AM To: 'Don'; php Subject: RE: [PHP] A Newbie needs help with his first Class

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
Andrey, you are incorrect. >From the manual on strpos(): int strpos (string haystack, string needle [, int offset]) If needle is not found, returns FALSE. -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:47 AM To: Rick Emery Cc: [EM

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
ahhhinteresting. thank you for the clarification I stand humbled, head bowed... rick -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 8:03 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: Re: [PHP] comparisons >From the docs : N

RE: [PHP] Regular Expression Problem

2002-03-22 Thread Rick Emery
__([a-z0-9][a-z0-9_]+)__ -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Regular Expression Problem Hello, In PHP3, I am using code which using the regular expression capability of PHP. The code

RE: [PHP] Displaying data from db

2002-03-22 Thread Rick Emery
> First what would be the best solution to take the records from the > database and display like 10 results per page? Check the list archives and php.net. There are many examples of this functionality > Another question, the same records from the database, but say I want to > sort them by

RE: [PHP] cron with php as apache module

2002-03-22 Thread Rick Emery
yes, you can run PHP as a stand-alone interpreter -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] cron with php as apache module I want to run a php script via a crontab, (i can set up the cronta

RE: [PHP] Maillist

2002-03-22 Thread Rick Emery
I think PHP's uniqid() will suit your purposes. Look in the Miscellaneous Functions section of the manual. -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 11:38 AM To: PHP-General List Subject: [PHP] Maillist I need to send out s

RE: [PHP] Hi!

2002-03-22 Thread Rick Emery
> How is possible to on an image and run a php function? > Also how is possible to pass some php vars to javascript vars? Can't do it directly. JavaScript is client-side. PHP is server-side. As you execute a PHP script, it will "create" the values for the JavaScript source that PHP is creati

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
show your code -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable problem I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that the text is p

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
${varable}ABC -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:21 PM To: Rick Emery Subject: Re: [PHP] Variable problem on 3/22/02 6:18 PM, Rick Emery at [EMAIL PROTECTED] wrote: show your code -Original Message- From

RE: [PHP] MySQL query results

2002-03-22 Thread Rick Emery
$result = mysql_query(.)' mysql_num_rows($result) -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:28 PM To: PHP-General List Subject: [PHP] MySQL query results How can I tell whether anything was matched and changed after a

RE: [PHP] [newbie] Something is messed up, anybody can help?

2002-03-25 Thread Rick Emery
1. Just pass uzeriz to the function, not session("uzeriz"); 2. FYI: you don't need this construct: while($row = mysql_fetch_row($result)){ Based upon the previous tests, there is ONLY 1 entry. Therefore, go with: $row = mysql_fetch_row($result); -Original Message- From: Mantas Kriau

RE: [PHP] Re:[PHP] Why?

2002-03-25 Thread Rick Emery
I'm ex-USAF. FUBAR means "Fucked-Up Beyond All Repair" -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 9:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re:[PHP] Why? 25/03/2002 3:01:36 PM "FBAR" was a term used in the second world war. It turned into "

RE: [PHP] newbyie - date conversion to human readable form

2002-03-25 Thread Rick Emery
In PHP, you look at the date() function. If retrieving this from a mysql database, mysql will do it for you: SELECT DATE( mydate, "%W, %M %d, %Y") AS thedate FROM mytable; -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 8:55 AM To: [EMAIL P

RE: [PHP] Confused About Classes

2002-03-25 Thread Rick Emery
> if ($this->private==FALSE) // Undefined variable this > return; > } $this is relevant ONLY within the scope of the class definition. The above snippet is located OUTSIDE of the class definition. You must use an object pointer. That is: $newobj = new standardquestion($f

RE: [PHP] Confused About Classes

2002-03-25 Thread Rick Emery
To: [EMAIL PROTECTED] Subject: Re: [PHP] Confused About Classes No, the only thing I supplied is the class. The startElementHandler IS a function in the class. "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

RE: [PHP] Login displays the pass and user in url

2002-03-25 Thread Rick Emery
where are they being displayed? -Original Message- From: David Orn Johannsson [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Login displays the pass and user in url Can I some how prevent the browser from displayin index.php?passwd

RE: [PHP] list(), each()

2002-03-25 Thread Rick Emery
change to: list( $policy_num, $policy_year, $application_reference ) = explode( "--", $policy ); -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 11:22 AM To: PHP General Subject: [PHP] list(), each() Ok, I've got to be doing something wrong

RE: [PHP] Session Variables

2002-03-25 Thread Rick Emery
it means you've already output some HTML or a blank line -Original Message- From: Chad Gilmer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Session Variables Hi There, I am a beginner to PHP and I am tring to use session variable

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
With there be a specifc number of variables returne? Or can the number of variables vary? -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 1:26 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Regular Expressions? Help! I am trying to do a match fo

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
he command I am running is a C program on the command line of a Linux box. I can't capture the output, it just gets output onto the screen. I just echo'd $output after the command was run and it was empty. Any ideas? -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]]

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:27 PM To: 'Rick Emery'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Regular Expressions? Help! Perhaps it is how I am calling the $lines in a while loop.? I have tried `$cmd`, exec(), exec($cmd, $ouput) (to

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
Again, I ask: Does $mycmd contain the command you expect to see $mycmd = "$prog $cmdline $trimline &"; print $mycmd; $output = exec($mycmd); -Original Message- From: Walker, Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:56 PM To: 'Rick Emery&

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
n and it was empty. Any ideas? -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 1:54 PM To: 'Walker, Roy' Subject:RE: [PHP] Regular Expressions? Help! well, ya might try: $my_array = explode( "\" ",$output); th

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
: Monday, March 25, 2002 3:09 PM To: 'Rick Emery'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Regular Expressions? Help! No. I think there is a carriage return (\n), but there is not a blank line at the end. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent

[PHP] Private Data and Methods for Classes

2002-03-25 Thread Rick Emery
The following is directed to the PHP development team. I would like to suggest a capability be added to PHP's class implementation. Specifically, provide the capability to segregate class data and methods into private methods and data from those that are available for direct invocation from the o

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Rick Emery
exec() can capture ALL output from a command if you supply an array as the second argument to it -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:58 PM To: 'Walker, Roy'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Regular Expressions? Help! Go

RE: [PHP] Need help

2002-03-26 Thread Rick Emery
place these statements in your include file, which is standard for PHP development: $link=mysql_connect("localhost","user","12345") or die("Error: cannot connect".mysql(error()); mysql_select_db("mydatabase") or die("Error: cannot select db: ".mysql_error()); -Original Message- From: Den

RE: [PHP] How to remove ^M characters from a directory?

2002-03-26 Thread Rick Emery
in the vi editor, type: :1,$s/// :w! replace with the control-V character and with the control-M character. -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 6:16 AM To: Php-General Subject: [PHP] How to remove ^M characters from a directory

RE: [PHP] Database connection problem

2002-03-26 Thread Rick Emery
$connect = mysql_connect("localhost","user","password") or die(mysql_error); -Original Message- From: Omland Christopher m [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 7:55 PM To: Cameron Just Cc: [EMAIL PROTECTED] Subject: [PHP] Database connection problem Hi, can anyone hel

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