php-windows Digest 3 Feb 2002 00:03:42 -0000 Issue 982
Topics (messages 11793 through 11802):
PHP and JavaScript
11793 by: Craig Morrison
11799 by: Craig Morrison
Re: DLL problems
11794 by: DL Neil
HOT! - PHP4.1.x - Step by Step Installation manual
11795 by: Andre Amaral
Why parse error in mysql command?
11796 by: Andy Ziem
11797 by: Andy Ziem
Why parse error?
11798 by: Andy Ziem
11801 by: LaserJetter
page not found errors
11800 by: Hayden Searle
installing and running php
11802 by: brian
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Say I do this in JavaScript:
var name = prompt("Please enter your name:", "Name");
How do I access 'name' in PHP or can I?
--
Craig Morrison
http://www.mtsprofessional.com/
A Win32 Email server that works for you.
--- End Message ---
--- Begin Message ---
I figured out how to do what I wanted to do.
document.write the var to a hidden field in a form.. Thanks to everyone who
sent messages off the list! :-)
Craig Morrison wrote:
>
> Say I do this in JavaScript:
>
> var name = prompt("Please enter your name:", "Name");
>
> How do I access 'name' in PHP or can I?
--
Craig Morrison
http://www.mtsprofessional.com/
A Win32 Email server that works for you.
--- End Message ---
--- Begin Message ---
Hi Dave,
> I'm using win 98, php 4.04, and apache 1.3.19. Have had no problems
> executing simple scripts, including some with mySql access.
> HVR, when I uncomment any of the php dll's in the php.ini file I get the
> following message (one for each dll):
> "unable to load dynamic library 'c:\windows\system\php_gd.dll'. A device
> attached to the system is not functioning".
> The path shown is correct, so it seems to be 'seeing' the dll, but something
> else is obviously not working. I get the same message for ANY dll, specific
> to that file. Any clues as to what 'device' is not functioning?
=such an error usually indicates that the php.ini is not setting the extensions folder
correctly.
=dn
--- End Message ---
--- Begin Message ---
Hi all. Here is my first attempt to make easy Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or
ISAPI. Here is the link that will ake a lot of people happy. :)
http://www.experttek.com/php/installation.php
Fell free to contact me. Contact info are in the manual.
--- End Message ---
--- Begin Message ---
Hi,
I am trying to retreive stored data, and I can't figure out why I receive
this PHP error--even after reading PHP documentation and looking at
examples--
"Parse error: parse error in c:\vol\php\e.php on line 10"
The following is my simplified code:
<?php
mysql_connect("localhost", "root");
mysql_select_db("volunteers");
$result = mysql_query("SELECT * FROM names WHERE id=$id");
&line = mysql_fetch_row(&result);
$first = $line["first"];
$middle = $line["middle"];
$last = $line["last"];
$street = $line["street"];
$city = $line["city"];
$zip = $line["zip"];
?>
--
Andy Ziem
Is Jesus Your Answer?
http://www.ChristianAnswers.net/gospel
----------------------------------------------------
Get a FREE E-Mail account at http://www.ACMEmail.net
--- End Message ---
--- Begin Message ---
The error is on the line
"$result = mysql_query("SELECT * FROM names WHERE id=$id");"
I have checked many things and can't figure out the error. MySQL is running.
The database exists. The table names is valid. $id is defined as 1.
Thanks,
Andy
Quoting Mike Flynn <[EMAIL PROTECTED]>:
> If the error is on line 10, please show us the entire code so we can see
>
> line 10. :)
>
> At 09:26 AM 2/2/2002 -0800, you wrote:
> >Hi,
> >
> >I am trying to retreive stored data, and I can't figure out why I
> receive
> >this PHP error--even after reading PHP documentation and looking at
> >examples--
> >
> > "Parse error: parse error in c:\vol\php\e.php on line 10"
> >
> >The following is my simplified code:
> >
> ><?php
> >
> > mysql_connect("localhost", "root");
> >
> > mysql_select_db("volunteers");
> >
> > $result = mysql_query("SELECT * FROM names WHERE id=$id");
> >
> > &line = mysql_fetch_row(&result);
> >
> > $first = $line["first"];
> > $middle = $line["middle"];
> > $last = $line["last"];
> >
> > $street = $line["street"];
> > $city = $line["city"];
> > $zip = $line["zip"];
> >
> >?>
> >
> >
> >
> >--
> >Andy Ziem
> >Is Jesus Your Answer?
> >http://www.ChristianAnswers.net/gospel
> >
> >
> >
> >
> >
> >----------------------------------------------------
> >Get a FREE E-Mail account at http://www.ACMEmail.net
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
> -=- Mike Flynn - Burlington, VT -=-
> [EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood *
> ...maintaining lawns, watching televised sports, birthing
> children, listening to Top 40 music, and collecting
> stuffed animals...
>
>
>
Andy Ziem
http://www.springsrescuemission.org
----------------------------------------------------
Get a FREE E-Mail account at http://www.ACMEmail.net
--- End Message ---
--- Begin Message ---
Hi,
I am trying to retreive stored data, and I can't figure out why I
receive this PHP error--even after reading PHP documentation and looking
at examples--
"Parse error: parse error in c:\vol\php\e.php on line 10"
The following is my simplified code:
<?php
mysql_connect("localhost", "root");
mysql_select_db("volunteers");
$result = mysql_query("SELECT * FROM names WHERE id=$id");
&line = mysql_fetch_row(&result);
$first = $line["first"];
$middle = $line["middle"];
$last = $line["last"];
$street = $line["street"];
$city = $line["city"];
$zip = $line["zip"];
?>
--
Andy Ziem
Is Jesus Your Answer?
http://www.ChristianAnswers.net/gospel
--- End Message ---
--- Begin Message ---
Shouldn't
&line = mysql_fetch_row(&result);
read
$line = mysql_fetch_row(&result); ??
If its not this then check for missing off the final } on an if
statement-gets me quite often!
LJ
"Andrew Ziem" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am trying to retreive stored data, and I can't figure out why I
> receive this PHP error--even after reading PHP documentation and looking
> at examples--
>
> "Parse error: parse error in c:\vol\php\e.php on line 10"
>
> The following is my simplified code:
>
> <?php
>
> mysql_connect("localhost", "root");
>
> mysql_select_db("volunteers");
>
> $result = mysql_query("SELECT * FROM names WHERE id=$id");
>
> &line = mysql_fetch_row(&result);
>
> $first = $line["first"];
> $middle = $line["middle"];
> $last = $line["last"];
>
> $street = $line["street"];
> $city = $line["city"];
> $zip = $line["zip"];
>
> ?>
>
>
>
> --
> Andy Ziem
> Is Jesus Your Answer?
> http://www.ChristianAnswers.net/gospel
>
>
>
>
>
--- End Message ---
--- Begin Message ---
Hi there
I am trying to pun PHP4 under the Win32 install of Apache and am going
through the tutorial on the PHP site. Every time I try to look at the page
it says Page not found. and yet it is there. Also if I click on the page in
Win Explorer it dosent work as it says it should.
Am I just stupid or am I screwing the whole thing up?
Any help appreciated
Hayden
--- End Message ---
--- Begin Message ---
Hello everyone,
A small question:
I have installed Apache (that works)
I have installed php 4 and it gives the text of the scriptfile(phpinfo.php)
on the screen of IE
I have changed the conf. in the apache conf map.
I have changed the php.ini in the win map
But made a misstake somewhere.
--- End Message ---