代码生成空白页面

问题描述:

这是我的代码

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 (