Tuesday, 20 August 2013

Trying to make an error in php file and its not working

Trying to make an error in php file and its not working

I am trying to make an error in the code like in the video
http://www.youtube.com/watch?v=0ol6C0ETQqM&list=PLE134D877783367C7, I
think the problem is in the mysql_connect
Code
<?php
$connect_error = 'Sorry we\'re experiencing connection problems.';
mysql_connect('localhst', 'root', '') or die ($connect_error);
mysql_select_db('lr'); or die ($connect_error);
?>

No comments:

Post a Comment