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,
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);
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;
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
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
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']}'
$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
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'");
$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
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
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
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.
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
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
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
.
- 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
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
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
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
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
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
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
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
]
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
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.
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
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
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
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
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
801 - 830 of 830 matches
Mail list logo