显示记录的问题 [英] Problem with displaying records

查看:60
本文介绍了显示记录的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




这里我粘贴了三个脚本,第一个是显示

i存储在数据库中的详细信息,这是有效但第二个脚本是

链接第一个如果我点击main.php它显示所有细节

数据库如果我点击一个特定细节我想看到

有关详细信息(所以我在main.php脚本中给出了链接)。这里我是

提到一些sql行我从那里遇到了一些问题


$ edit ="从addevent中选择主题,其中event =''$ _ POST [event]''" ;;

如果我使用var_dump()它会将输出显示为NULL。


如果我这样给我输出为空白页面。


$ edit ="从addevent中选择主题,其中event =''deepavali''" ;;


如果我提到特定事件,那么它会显示详细信息

那个部分事件我无法从该代码中找到错误。告诉我

这个如何重新检索这些值。我对其他一些

脚本也有同样的看法。


---------------------------- Main.php ------- --------

Hi,

Here i pasted Three scripts first one is displaying the details which
i have stored in database this is working but in second script is in
link with first one if i click main.php it displays all the details in
the database if i click one particular detail i want to see the
details about that( so i gave link in main.php scriptl).Here i
mentioned some sql line i got some problem from there

$edit="select subject from addevent where event =''$_POST[event]''";
if i use var_dump() it gives output as NULL.

If i give like this i got output as a blank page.

$edit="select subject from addevent where event =''deepavali''";

If i mentioned particular event then it displays the details adout
that partcular event I cant found the error from that code.Tell me in
this how to retrive the values .I got the same thing in to some other
scripts also.

----------------------------Main.php---------------

展开 | 选择 | Wrap | 行号

推荐答案

edit ="从addevent中选择主题event =''
edit="select subject from addevent where event =''


_POST [event]''" ;;

如果我使用var_dump()它会将输出显示为NULL。


如果我这样给我输出为空白页面。

_POST[event]''";
if i use var_dump() it gives output as NULL.

If i give like this i got output as a blank page.


edit ="从addevent中选择主题,其中event =''deepavali''" ;;


如果我提到特定事件,那么它会显示详细信息

那个部分事件我无法从该代码中找到错误。告诉我

这个如何重新检索这些值。我对其他一些

脚本也有同样的看法。


---------------------------- Main.php ------- --------
edit="select subject from addevent where event =''deepavali''";

If i mentioned particular event then it displays the details adout
that partcular event I cant found the error from that code.Tell me in
this how to retrive the values .I got the same thing in to some other
scripts also.

----------------------------Main.php---------------
展开 | 选择 | Wrap | 行号


这篇关于显示记录的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆