[PHP] function() for mysql-enum-field-values-to-array

2001-03-14 Thread Dennis Gearon
Someone gave me the idea, and I coded it tonight use for making option lists of legal values from a mysql field that is enum'd. You don't have to know the values ahead of time. function-- function mysql_fetch_enums( $link,

[PHP] function -- global variables

2001-03-05 Thread Augusto Cesar Castoldi
I have a html form and his "action" is a php file. this is the php file: function checasenha($ID) { $as="\""; global $ID, $limite, $cdusuario, $usuario, $senha; . . . } checasenha($ID);

Re: [PHP] function -- global variables

2001-03-05 Thread Hardy Merrill
Augusto Cesar Castoldi [[EMAIL PROTECTED]] wrote: I have a html form and his "action" is a php file. this is the php file: function checasenha($ID) { ^^^ $as="\""; global $ID, $limite, $cdusuario, $usuario, $senha;

[PHP] Function to compare an array with another array

2001-03-04 Thread Jimmy Bäckström
Shu! I need some help here. I have a script where I want to compare two arrays with eachother, and return one value from that does not exists in both arrays. I have an array of pictures id number created from a database query. I use sessions to save id numbers of pictures into an array. I want

[PHP] function questions

2001-03-02 Thread kevin1
I have a here doc: print END Hey there foo::bar($baz) how are you doing? END; foo::bar is a method that returns the name of $baz. I can't seem to get that to interpolate properly. It would make my life cleaner and easier if this could work. Is this at all possible? -- PHP General Mailing

Re: [PHP] function not working?

2001-02-28 Thread Chris Lee
your function function display_contents($table,$session) { $count = 0; $result = mysql_query( "SELECT * FROM $table WHERE session = '$session'"); while($row = mysql_fetch_array($result)) { $result_inv = mysql_query( "SELECT * FROM retailseafood WHERE pid = '{$row['items']}'

Re: [PHP] function mail

2001-02-27 Thread Richard Lynch
$sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from); if $sent==1 -- the e-mail was sent if $sent==0 -- problem when sending e-mail?? how this works? When the function mail will have a problem? if the "to" mail are wrong? If you are sending "local" mail, with no "@" in it, you'd

[PHP] function not working?

2001-02-27 Thread Kurth Bemis
i can't get his function to work. i pass the correct data to it...but no results heres the function function display_contents($table,$session) { $count = 0; $result = mysql_query( "SELECT * FROM $table WHERE session='$session'");

[PHP] function mail

2001-02-24 Thread Augusto Cesar Castoldi
$sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from); if $sent==1 -- the e-mail was sent if $sent==0 -- problem when sending e-mail?? how this works? When the function mail will have a problem? if the "to" mail are wrong? regards, Augusto Cesar Castoldi -- PHP General Mailing List

RE: [PHP] Function/method syntax limitations

2001-02-20 Thread James Moore
untested but.. $foo = ${$test-blah()}[0]; // Similarly for objects, cannot do: $foo = $test-childTest()-blah(); $foo = ${$test-childTest()}-blah(); // Instead have to do: $temp = $test-childTest(); $foo = $temp-blah(); Might work.. never had need to test it and cant be bothered now but

[PHP] PHP function using a WML variable from a select list as to access the right data in a MYSQL database

2001-02-08 Thread Kato Strandjord
variable: print "select name=\"fagkode\""; in this code under so that I can use its value in my php function: $tabfag=finnMeldinger($fagnr); I can see the WML variable if i print it out in WML, but i can not print it out as a variable in PHP. I have fooled the php function and p

Re: [PHP] PHP function using a WML variable from a select list as to access the right data in a MYSQL database

2001-02-08 Thread Richard Lynch
djord" [EMAIL PROTECTED] Newsgroups: php.general Sent: Thursday, February 08, 2001 5:04 AM Subject: [PHP] PHP function using a WML variable from a select list as to access the right data in a MYSQL database I use apache server on win2000, php4, mysql and wml which I test local on my harddrive.

[PHP] function problem ...

2001-02-07 Thread Miguel Loureiro
Hello I have a script that use other script file(php) twice, I call a function with certain parameters and call it again with other parameters and when runnig the script, the first function works well, but on second time I got a error message: "Fatal error: Cannot redeclare getndays() in

Re: [PHP] function problem ...

2001-02-07 Thread Frederico Augusto Costa
Try require_once($your_file) or verify in $your_file use the function function_exists() []'s Frederico Augusto Costa [EMAIL PROTECTED] On Wed, 7 Feb 2001, Miguel Loureiro wrote: Hello I have a script that use other script file(php) twice, I

Re: [PHP] function list

2001-02-01 Thread Stephen Edberg
Message - From: "Jerry Lake" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 10:45 AM Subject: [PHP] function list Is there somewhere I can get a list of all the php functions and a brief description, instead of the full manual like a c

Re: [PHP] function list

2001-02-01 Thread Josh G
. - Original Message - From: "Jerry Lake" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 10:45 AM Subject: [PHP] function list Is there somewhere I can get a list of all the php functions and a brief description, instead of the full manual like a c

Re: [PHP] Function by reference?

2001-01-31 Thread Max A. Derkachev
Hello Niklas, Wednesday, January 31, 2001, 7:02:49 PM, you wrote: NS $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this-dataToBeParsed); NS where I want \\1 to be fed into urlencode() I was thinking somewhere along the lines NS $func=urlencode; It won't work. You can not

Re: [PHP] Function by reference?

2001-01-31 Thread Wico de Leeuw
At 11:35 31-1-01 +0300, Max A. Derkachev wrote: Hello Niklas, Wednesday, January 31, 2001, 7:02:49 PM, you wrote: NS $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this-dataToBeParsed); Take a look @ Preg_Replace with the e modifier, i think you are looking for that (php4

[PHP] Function by reference

2001-01-31 Thread Niklas Saers
Hi all. I was wondering, can a reference be a function as well? Reason is, I've got to do a little manipulating. I want to do a $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this-dataToBeParsed); where I want \\1 to be fed into urlencode() I was thinking somewhere along

[PHP] function list

2001-01-31 Thread Jerry Lake
Is there somewhere I can get a list of all the php functions and a brief description, instead of the full manual like a cheat sheet of sorts Jerry Lake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread [ rswfire ]
I need to get a whole bunch of client properties from a visitor on my site before a page is displayed. I do this using JavaScript. I first determine if the visitor's browser supports JavaScript, and if it does I run a function that basically builds a temporary page and returns a bunch of

RE: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread Jonathan Sharp
im/her... Cheers, -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 EPage: [EMAIL PROTECTED] -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Saturday, Janua

RE: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread [ rswfire ]
rstand your code below. First of all, I do not want to use cookies at all - not anywhere on my network. Too much controversy. So I take advantage of the database in that respect. Secondly, does the code example below automatically submit itself?? I've never seen that done before... Robert Fr

[Fwd: [PHP] Function / syntax varying from version to version?] -- CORRECTION

2001-01-24 Thread Steven Deaton
] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [PHP] Function / syntax varying from version to version? X-Mozilla-Status: 8001 X-Mozilla-Status2: X-UIDL: 1b26bb69bf17e49175b00f4e54bd6e53 Using the following snippet of code

RE: [PHP] Function / syntax varying from version to version?

2001-01-24 Thread Cal Evans
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steven Deaton Sent: Wednesday, January 24, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Function / syntax varying from version to version? Using the following snippet of code.

RE: [PHP] Function with True / False return

2001-01-22 Thread Maxim Maletsky
is "$HTTP__Host" just a typo? it should be $HTTP_HOST. Cheers, Maxim Maletsky -Original Message- From: Jamie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:41 AM To: PHP Subject: [PHP] Function with True / False return can anyone tell me whats wrong with thi

[PHP] Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
Okay, what is wrong with this: echo "brbr...are you logged in: $LoggedIn()brbr"; // outputs:...are you logged in: () Function is: function LoggedIn(){ global $HTTP_POST_VARS if ($HTTP_POST_VARS["Login"] == "PHPIsCool") {return "YES";} else {return

RE: [PHP] Function / String Problem

2001-01-19 Thread Boget, Chris
echo "brbr...are you logged in: $LoggedIn()brbr"; // outputs:...are you logged in: () Function is: function LoggedIn(){ global $HTTP_POST_VARS if ($HTTP_POST_VARS["Login"] == "PHPIsCool") {return "YES";} else {return "NO";} } Change your

RE: [PHP] Function / String Problem

2001-01-19 Thread Chris Mulcahy
To: PHP Mailing List Subject: [PHP] Function / String Problem Okay, what is wrong with this: echo "brbr...are you logged in: $LoggedIn()brbr"; // outputs:...are you logged in: () Function is: function LoggedIn(){ global $HTTP_POST_VARS if ($HTTP_POST_VARS["Login&quo

[PHP] Function - Sending URL's

2001-01-11 Thread Abe
Hey there, this is a strange one - I want to send a URL to a function that includes varibles. Those variables should be taken from within the function - as in the example below the link I want is: asdfasdf.php3?name=TEST , but that is not what I get as you can see. Does anybody know a way

<    4   5   6   7   8   9