RE: [PHP-WIN] parse error
| From: | Charles P. Killmer | Date: | Tue, 19 Nov 2002 14:03:48 +0000 |
| Subject: | RE: [PHP-WIN] parse error | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17032@lists.php.net to get a copy of this message | ||
I think you are missing } before the else
-----Original Message-----
From: Dash McElroy [mailto:php@l1te.net]
Sent: Tuesday, November 19, 2002 12:57 AM
To: zeus
Cc: Howard, Robert P; phpwin
Subject: Re: [PHP-WIN] parse error
What line number are you getting the parse error at? It's amazing what
that can tell you.
-Dash
On Tue, 19 Nov 2002, zeus wrote:
> Nope! i try that one too, but the parse error thing still exist....
>
>
> Howard, Robert P wrote:
>
> >change your else($submit) statement to else
> >
> >-----Original Message-----
> >From: zeus [mailto:zeus_dreamer@myrealbox.com]
> >Sent: Wednesday, 20 November 2002 4:25 AM
> >To: phpwin
> >Subject: [PHP-WIN] parse error
> >
> >
> >i get parse error with this code, what's wrong with the code? i think i
> >have give the "else" statement in ther right way.
> >help,neet it so bad.....
> >
> >Thanks....
> >
> >===========================================
> ><form action="<? echo $PHP_SELF ?>" method="post">
> >
> ><?PHP
> >/////////////////////
> >//configure ///
> >/////////////////////
> >require("config.php");
> >
> >/////////////////////
> >//connect ke mysql///
> >/////////////////////
> >mysql_connect($db_host,$db_user,$db_pass) or die ("cannot connect");
> >@mysql_select_db($db_base) or die ("cannot select db");
> >
> >
> >if($submit)//kalo tombol submit belum di tekan
> >{
> > $result=mysql_query("SELECT * from balon_chara");
> > while($r=mysql_fetch_array($result))//loop
> > {
> > $chara_id=$r["chara_id"];
> > $judul=$r["judul"];
> > ?>
> > <input type="radio" name="chara_id" value="<?
> > echo $id; ?>">
> > <? echo $id; ?>
> > <? echo $judul; ?><br>
> > <?}?>
> > <input type="submit" name="submit"
> > value="submit"></form>
> > <?}?>
> >
> ><?
> >else($submit)
> > {
> > $sql = "DELETE FROM balon_chara WHERE chara_id='$chara_id'";
> > $result = mysql_query($sql);
> > echo "recold deleted";
> > }
> >?>
> >
> >
> >
> >
> >
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php