代码生成空白页面 [英] Code produces blank page

查看:131
本文介绍了代码生成空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码

This is my code

展开 | 选择 | Wrap | 行号

推荐答案

因为您没有转错报告,并且您的代码包含错误,例如
because you have not turned error reporting on, and your code contains errors, such as
展开 | 选择 | Wrap | 行号


除了 bilibytes


你应该将 link 添加到 mysql_query()或 mysql_select_db()(例如 mysql_select_db(''second'',
In addition to bilibytes,

you should add link to functions like mysql_query() or mysql_select_db() (for example mysql_select_db(''second'',


connection); 。另外..没有理由 INSERT 某些东西到数据库然后从那里选择它,你可以检查 INSERT 是否运行良好,然后使用相同的变量...然后,看看第37和38行,如果你运行38,那么37没有意义,因为你使用相同的变量名称(
connection);. Plus.. there''s no reason to INSERT something to the database and then select it from there, you could just check if the INSERT went good or not, and then use the same variables... more then that, look at lines 37 and 38, if you run the 38, then then the 37 has no point because you''re using the same variable name (


这篇关于代码生成空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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