JoshuaLuke
Posting Freak
- Jan 29, 2012
- 529
- 51
Hey,
I'm testing my PHP skills with some MySQL stuff. I have a variable which is:
Then I have a little or die script on my mysql_connect:
BUT. When I input something wrong, the output to the page is only: MySQL Error: When it should show something like MySQL Error: ERROR HERE FROM mysql_error();, but it doesn't, so why not?
I'm testing my PHP skills with some MySQL stuff. I have a variable which is:
Code:
$mysql_error_handler = '<center><font face="Arial">MySQL Error:' . mysql_error();
Then I have a little or die script on my mysql_connect:
Code:
or die ($mysql_error_handler);
BUT. When I input something wrong, the output to the page is only: MySQL Error: When it should show something like MySQL Error: ERROR HERE FROM mysql_error();, but it doesn't, so why not?