February 13, 201214 yr <?php include_once 'parts/top.php'; ?> <?php if(empty($_POST["username"])) {echo "Username is empty <br>";} elseif (empty($_POST["password"])) {echo "Password is empty ";} include_once 'parts/dat.php'; $verbinding=mysql_connect($llocalhost,$lusername,$lpassword); if(!verbinding) {echo "Niet verbonden";} else {echo "Verbonden";} ?> <?php include_once 'parts/bot.php'; ?> This is the current script. Ussual it should connect but when it connects I get; Use of undefined constant $naam This is in mine dat file; $llocalhost="localhost"; $lusername=""; $lpassword=""; So where is the mistake that I made? Edited February 14, 201214 yr by Renaissance-Design Please use the code button or tags to format your code.
February 14, 201214 yr Author :huh: How can I have overseen that small issue that it should been "if(!$verbinding)" Edited February 14, 201214 yr by kensha
Create an account or sign in to comment