/    Sign up×
Community /Pin to ProfileBookmark

Problem in displaying records

Hi ,

Actually i am not getting any errror but i am trying to display some records using select statement if i am using like this in that above code wat i send

[COLOR=”Blue”]
$edit=”select subject from addevent where event =’$_POST[event]'”;
[/COLOR]

it shows blank page only this query not taking the value of $_
POST[event].

If i give event name directly it displys some records which i have stored in data base
[COLOR=”#0000ff”]$edit=”select subject from addevent where event =’deepavali'”;[/COLOR]

Tell me now y my first query is not working wat is the main problem tell me some solution regarding that.

Pls help me

here i pasted that script

[COLOR=”#0000ff”]<html>
<style type=”text/css”>
<!–
.style3 {color: #FFFFFF; font-weight: bold; }
–>
</style>
<form name=”form1″ method=”post” action=””>
[COLOR=”Red”]<?Php
include(‘connect.php’);
$edit=”select subject from addevent where event =’$_POST[event]'”;
$edits=mysql_query($edit);
while($editf1=mysql_fetch_assoc($edits))
{
?>[/COLOR]

</p>
<p align=”center”>&nbsp;</p>
<p align=”center”>&nbsp; </p>
<table width=”900″ border=”1″ align=”center”>
<tr bgcolor=”#666666″>
<td width=”246″><span class=”style3″>Subject</span></td>
</tr>
<tr bgcolor=”#CCCCCC”>
<td bgcolor=”#FFFFFF”><?PHP echo $editf1[‘subject’];?></td>
</tr>
</table>
<p align=”center”>&nbsp;</p>
<?PHP
}
?>
</form>
</html>[/COLOR]

thanks

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @kavithadevan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...