HTML:
JS:
Function DoThis(){
frmMain.method = "POST";
frmMain.action = "admin.php";
frmMain.submit();
}
Where frmMain is the name for the FORM:
Read all about it in: http://www.oreilly.com/catalog/jscript4/
Bryan
-Original Message-
From: Greg [mailto:[EMAIL PR
$name1 = 'Hello, World!';
$i = 1;
$var = 'name'.$i;
print ${$var};
HTH,
Jason k Larson
Jeff Pauls wrote:
Hi,
I've been playing with this for a while now. Say I had the following variables:
$name1 = "joe";
$name2 = "janis";
$name3 = "joanne";
Is there a way in php to increment the variable name not
I get an error with this. PHP doesn't like "$name$i".
for ($i = 1; $i <= 3; $i++) {
$arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc
}
I've looked at Variable variables but I don't think that is what I need.
What about if I wanted something like
$name_1_ff
$name_2_f
hlelooww>)
i need some one can help me please?
i need to make this quine of conection
for example
i want to connect to a remote mysql server
i realy apreciate if some one can help me
please?
>)
Jeff Pauls wrote:
I get an error with this. PHP doesn't like "$name$i".
for ($i = 1; $i <= 3; $i++) {
$arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc
}
Try $arr_name[$i] = $name . $i;
I've looked at Variable variables but I don't think that is what I need.
What abou
RTM first please:
http://www.php.net/manual/en/function.mysql-connect.php
$link = mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
Replace localhost with the hostname of your mysql server.
-Original Message-
From: Luis A [mailto:
At 22:34 25.02.2003, Luis A said:
[snip]
>i need some one can help me please?
>
>i need to make this quine of conection
>
>for example
>
>i want to connect to a remote mysql server
[snip]
Check out http://www.php.ne
i need to do this
$link = mysql_connect("remote host", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
how is that ???
do i have to put the same function ?
or is diferent?
- Original Message -
From: "Bryan Lipscy" <[EMAIL PROTECTED]>
To: "'Luis A'" <[EMA
Is this a stupid question, or does no one know what is wrong???
Thanks!
Shawn
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I got this from the user contributed notes in the php.net manual. It
seems
> to work fine most of the time, but Eudora and Pegasus users ei
I think I have something that will do the trick thanks to everyones help.
$name_1_aaa = "Jimmy";
$name_2_aaa = "Janis";
$name_3_aaa = "Joe";
for ($i = 1; $i <= 3; $i++) {
$arr_name[$i] = 'name_'.$i.'_aaa';
}
echo ${$arr_name[1]}.'';
echo ${$arr_name[2]}.'';
echo ${$arr_name[3]}.'';
Displays:
Please read the online documentation at http://www.php.net
Also read through examples at http://www.zend.com/tips/tips.php?CID=113
And before you ask another question please read:
http://www.catb.org/~esr/faqs/smart-questions.html
Each of these pages may be translated at http://babel.altavista.c
hi pasl i got a troblem here
if some one can help me ?
take a look at this
HE DOES NOT WORKING
any subjest ?
If you are having problems with Eudora or Pegasus, why don't you send an
attachment from a Eudora||Pegasus and replicate whatever headers are
getting generated their. Then you'd have a test case for something you
are trying to perform in PHP, and then (even better) you don't have to
wonder if
Should be:
${name$i}
Jeff Pauls wrote:
I get an error with this. PHP doesn't like "$name$i".
for ($i = 1; $i <= 3; $i++) {
$arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc
}
I've looked at Variable variables but I don't think that is what I need.
What about if I wanted
Hey all.
Got a problem with this sql statement -- php vars are evaluated (e.g. the
$date var), but not the $_POST arrays..
All of the arrays return correct values -- What am I missing here?
$sql = "INSERT into rosters (school_id, sport_id, date, jersey_id, first,
last, position, grade, t
MEN I DONT HAVE INTERNET ACCESS
thanks anyway
if some one else can help m e please
- Original Message -
From: "Bryan Lipscy" <[EMAIL PROTECTED]>
To: "'Luis A'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 6:16 PM
Subject: RE: [PHP] how___??
> Please read
Try
sql = ".'" . $_POST['jersey_id'][$x] . "',.
Also make sure you're form is being submitted with POST and not GET...
-philip
On Tue, 25 Feb 2003, CF High wrote:
> Hey all.
>
> Got a problem with this sql statement -- php vars are evaluated (e.g. the
> $date var), but not the $_POST a
http://php.net/filesize
http://php.net/getimagesize
http://www.php.net/manual/en/features.file-upload.php
Also mentions "Related Configurations Note: See also the file_uploads,
upload_max_filesize, upload_tmp_dir, and post_max_size directives in
php.ini"
Please search the manual first -- it isn't
I believe that single quotes will display exactly what you type in, and double
quotes will actually process it.. e.g.
$foo = "hello";
echo '$foo';
You see $foo
echo "$foo";
You see hello
On February 25, 2003 09:42 pm, CF High wrote:
> Hey all.
>
> Got a problem with this sql statement -- php
hey i think the root does not need password to connect to mysql
or yes
on my server the root user does not have password
thats why i dont know why he does not update the database?
- Original Message -
From: "paulm" <[EMAIL PROTECTED]>
To: "Luis A" <[EMAIL PROTECTED]>
Sent: Tuesday,
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in a
separate file.
e.g.
$db_host = "localhost";
$db_port = "3306";
$db_name = "test";
...
?>
Kenneth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
this code doesn't ouput a session-id.
is the code right? and if not, any suggestions what's wrong?
i'm new into sessions, so forgive me for stupid questions..
thanx
michiel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Quoting Luis A <[EMAIL PROTECTED]>:
### hi pasl i got a troblem here
###
###
### if some one can help me ?
###
### take a look at this
###
###
###
###
### HE DOES NOT WORKING
###
### any subjest ?
###
###
###
###
--
Richard Whitney *
Transcend Development
Producing the next pha
> take a look at this
> // process form
> $link = mysql_connect("localhost", "root");
> mysql_select_db("mydb",$db);
> $sql = "INSERT INTO agenda (nombre, direccion, telefono, email) " +
> "VALUES ('$nombre', '$direccion', '$telefono', '$email')";
> $result = mysql_query($sql);
You use a period
>
('1','1','$date','$_POST['jersey_id'][$x]','$_POST['first'][$x]','$_POST
['
Let's just be smart and think about this for a second. Look at all of
the single quotes you've got. How do you expect PHP to be able to tell
what's a variable and what's text? Do you mean $_POST or
$_POST['jersey_id'] or
> hey i think the root does not need password to connect to mysql
>
> or yes
>
> on my server the root user does not have password
> thats why i dont know why he does not update the database?
You have no internet access, you think root does not need a password,
and you're a programmer... wo
> How do I include external library files in PHP???
> I would like to put the lines that are repeated in each php files, in
a
> separate file.
> e.g.
> $db_host = "localhost";
> $db_port = "3306";
> $db_name = "test";
> ...
> ?>
Just throw caution to the wind and try the include() function I'
> this code doesn't ouput a session-id.
> is the code right? and if not, any suggestions what's wrong?
> i'm new into sessions, so forgive me for stupid questions..
> thanx
> michiel
>
>
> session_start ();
> Header("Content-Type: text/html");
> echo "session id: " . $session_id;
> ?>
Where do
on 26/02/03 11:39 AM, php ([EMAIL PROTECTED]) wrote:
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> ### ### // process form
> ### $link = mysql_connect("localhost", "root");
> you need to have the password as the third argument
> $link = mysql_connect("localhost", "root", "password");
>
> Also, why is it in a variable?
> Just make it:
> mysql_connect("localhost", "root", "password");
Sometim
Create a user with appropriate privledges for the database. DO NOT use
root.
You did not mention where the $nombre, $direccion, $telefono, or $email
variables are being initialized.
To capture the values from a form use $_POST['name'] where name is the
name of the field on the form.
HTH
-
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in
a separate file.
e.g.
$db_host = "localhost";
$db_port = "3306";
$db_name = "test";
...
?>
I find the include() function to be quite useful for including external
files. Check
hi..
i looked in the manual about file uploads and basically know how it works
other than a little playing around with it but was wondering how you could
make a browse for file button that opens a box on the users computer so then
can look for the file rather than type it in.. or is this something
RTM: http://www.php.net/manual/en/ref.session.php
Tutorial: http://www.zend.com/zend/tut/session.php
-Original Message-
From: php [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] no session id
this code doesn't ouput a session-
Funny thing about online manuals.
include() http://www.php.net/manual/en/function.include.php
include_once() http://www.php.net/manual/en/function.include-once.php
Please read: http://www.catb.org/~esr/faqs/smart-questions.html
-Original Message-
From: Kenneth Suralta [mailto:[EMAIL
Hello,
On 02/23/2003 08:01 PM, Shawn McKenzie wrote:
I got this from the user contributed notes in the php.net manual. It seems
to work fine most of the time, but Eudora and Pegasus users either get
mangled attachments or no attachments.
Can anyone see a problem (most files are zip, but sometimes
the problem was solved by creating an include file and using using
require() method
i was just wondering what are the advantages and disadvantages of using
require_once() instead of require()?
thanx =)
John W. Holmes wrote:
How do I include external library files in PHP???
I would like to pu
Hello,
I am running PHP 4.2.2 on an Alpha Linux system. The array sorting
functions don't seem to be doing anything, i.e. pass an array in and
get exactly the same thing back. I have tried to isolate the problem
by just cutting a simple example out of the documentation, for example
the asort
plain html
On February 25, 2003 08:32 pm, Sunfire wrote:
> hi..
>
> i looked in the manual about file uploads and basically know how it works
> other than a little playing around with it but was wondering how you could
> make a browse for file button that opens a box on the users computer so
> t
Hey John et. al
I tried your method John, and it works!
Re: excessive single quotes in the sql, but I tried stripping them out to no
effect. Using curly braces in the sql statement wasn't an option I knew
about. Thanks again for illuminating another bit of the PHP world.
--
This one is really puzzling...
It has taken me days..
I need to do an LDAP search to an Active Directory server.
I was able to connect and bind to the server fine, but my searches are always in
vain. OK, here we go:
box name: mydomain-71.mydomain.myschools.org
domain name: mydomain.myschools.o
Can someone explain why this code works on the hosting company's server,
but won't run on my local server? I'm not sure what version is on the
host server, but I'm running 4.0.5 locally on winXP Pro. The error says:
Fatal error: Cannot redeclare dbfield() in
c:\inetpub\wwwroot\livinginnaples\databa
you have 2 functions named DBField. This was ok until 4.3. After 4.3 you
couldn't re-declare a function like this.
PHP does not allow for overloading like Java and C++ (It looks like that's
what you are trying to do)
Check the docs for overloading. There is some support for it but it's a bit
of
Code snippet:
\n";
print_r($url_array);
?>
This works fine under Apache 1.3.27 with PHP 4.2.3 running on Linux.
But on a Win32 environment, no go. I have Apache 1.3.24 with PHP 4.2.3
on WinXP and $url_array is just plain blank...for that matter, so is
$REQUEST_URI when I try t
Is there anyone out there can tell me do I have to rewrite my PHP4 object programs in
PHP5?
./pl
Can anyone reproduce this problem?
I am involved in running a large forum, and ever since our upgrade to PHP
4.3.1, there have been fairly random issues with getimagesize(). It
happens only on certain images it seems. However, it wasn't happening with
4.2. When using the following code:
htt
On Wednesday 26 February 2003 07:52, Luis A wrote:
> MEN I DONT HAVE INTERNET ACCESS
>
> thanks anyway
>
> if some one else can help m e please
I can email the manual to you if that would help?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
On Wednesday 26 February 2003 03:28, [EMAIL PROTECTED] wrote:
> Before I ask, I have read the documentation but nothing seems to work.
>
> I want to run a system command from behind the scenes (totally secure
> area of my server) that creates a directory and changes permissions on it.
>
> i.e. sy
Oops.. Big typo.. It should read that I get *nothing* echo'd back, except
newlines :).
Thanks again,
-JD-
--On Tuesday, February 25, 2003 23:27 -0500 Jason DiCioccio
<[EMAIL PROTECTED]> wrote:
Can anyone reproduce this problem?
I am involved in running a large forum, and ever since our upgrade
Hi,
Wednesday, February 26, 2003, 2:27:10 PM, you wrote:
JD> Can anyone reproduce this problem?
JD> I am involved in running a large forum, and ever since our upgrade to PHP
JD> 4.3.1, there have been fairly random issues with getimagesize(). It
JD> happens only on certain images it seems. Ho
I ran into a weird curiosity playing with sessions.
Consider this working code:
If I access http://hostname/sess.php from my internal network this is
the result:
Session ID ==
If I access http://www.domainname.net/sess.php from my internal network
this is the result:
Session ID == PHPSESSID
> -Original Message-
> From: Petre Agenbag [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] reminder mail when date is within a month of today.
>
> HI
> I'm having a bad thinking day. I know it's going to be a very easy
> solut
Sorry did not get you there specifically this part
> > ---This:
> > index.php?file=test&cmd=display&what=all
> > ---Becomes:
> > index-get-file-is-test+cmd-is-display+what-is-all.html
Anyway, I have written a rewrite rule to rewrite
www..some-domain.com to
www.some-domain.com/index.php?somevar=
hi richard,
currently there is no way of calling a function with named arguments. your
proposed array syntax wouldn't allow for passing arrays. on the other hand
variant arrays can only be indexed arrays and not hash arrays so i could treat
all string indices as named parameters. this would be
101 - 154 of 154 matches
Mail list logo