PHP white screen of death every time. What am I doing wrong?

前端 未结 5 499
傲寒
傲寒 2021-01-26 08:44

I\'m a complete noob to PHP and working with mysql so you know I do however have a great deal of experience with HMTL and CSS. All I need is for a form on my site to upload the

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-26 09:40

    $_POST[firstName] should be $_POST['firstName'] and so on and

    mysql_query($sql) or die('MySQL Error: ', mysql_error());
    
    echo 'Data inserted';
    

    You shouldn't not be using mysql_ now, its deprecated. Do it with PDO

提交回复
热议问题