php3-list | 199908
Date: 08/29/99
- Next message: Kemal 'disq' Hadimli: "Re: [PHP3] parsing a line. :P"
- Previous message: almir kazazic: "RE: [PHP3] Insert into multiple tables"
- In reply to: ilan Bloch: "[PHP3] [php3 + mysql] uninitialized property(submit) in form"
- Next in thread: Richard Lynch: "Re: [PHP3] [php3 + mysql] uninitialized property(submit) in form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
have u connected to DB?
you have to do that first like this
$db = mysql_pconnect('localhost', 'root','');
mysql_select_db("wst",$db);
$sql ="select o.*, g.name, concat(m.vorname, ' ', m.name) as makler,
m.email, m.gruppe from objekte o,gruppe g, makler m where plz like '" .
stripslashes($bundesland) . "' And kathegorie='". $kathegorie ."' And
m.ind=o.makler And g.ind=m.gruppe";
//echo ($sql);
$result = mysql_query($sql);
this functions always
-----Original Message-----
From: root <email protected> [mailto:root <email protected>]On Behalf Of
ilan Bloch
Sent: Sonntag, 29. August 1999 10:35
To: php3 <email protected>
Subject: [PHP3] [php3 + mysql] uninitialized property(submit) in form
Hi all,
I am desperately trying to send queries to a mysql DB using the
following php3 script.
Actually it all works pretty well. So what's the problem, would you say
?
The query form mentions :
"Warning : Uninitialized variable or array or property(submit) in
/mypath/to/my/file.php3 on line 7 "
<form method=post action="<?php echo $PHP_SELF?>">
<?php
if($submit){$query="SELECT * FROM main";
$result=mysql_db_query("mytable",$query);
if($result){while($r=mysql_fetch_array($result)){echo $r;}} ?>
<input type=text name=field1>
<input type=submit name=submit>
</form>
I have tried also with the php code AFTER the submit button, but the
same warning appears.
Has anybody already faced this kind of problem ? Why? and more important
how can I correct this ?
TIA
ilan
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Kemal 'disq' Hadimli: "Re: [PHP3] parsing a line. :P"
- Previous message: almir kazazic: "RE: [PHP3] Insert into multiple tables"
- In reply to: ilan Bloch: "[PHP3] [php3 + mysql] uninitialized property(submit) in form"
- Next in thread: Richard Lynch: "Re: [PHP3] [php3 + mysql] uninitialized property(submit) in form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

