runeveryday Posted September 12, 2009 Share Posted September 12, 2009 function mysql_fatal_error($msg) { $msg2 - mysql_error(); echo <<< _END We are sorry, but it was not possible to complete the requested task. The error message we got was: <p>$msg: $msg2</p> Please click the back button on your browser and try again. If you are still having problems, please <a href="mailto:admin@server.com">email our administrator</a>. Thank you. _END; } i know this is a way to show error in better form.but in function mysql_fatal_error,i don't know "$msg2 - mysql_error();"this line's meaning.and what result do the function return? who can help me ? thx! Quote Link to comment https://forums.phpfreaks.com/topic/173964-what-does-this-mean/ Share on other sites More sharing options...
RussellReal Posted September 12, 2009 Share Posted September 12, 2009 its a typo. they meant to use '=' not '-' Quote Link to comment https://forums.phpfreaks.com/topic/173964-what-does-this-mean/#findComment-917017 Share on other sites More sharing options...
runeveryday Posted September 12, 2009 Author Share Posted September 12, 2009 I GOT IT! THANK you and is this line " $msg: $msg2" also a typo. i found there is no value given to variable $msg。 Quote Link to comment https://forums.phpfreaks.com/topic/173964-what-does-this-mean/#findComment-917036 Share on other sites More sharing options...
mikesta707 Posted September 12, 2009 Share Posted September 12, 2009 there should be... its the parameter of the function. when you call the function you are supposed to set the value of that variable Quote Link to comment https://forums.phpfreaks.com/topic/173964-what-does-this-mean/#findComment-917037 Share on other sites More sharing options...
RussellReal Posted September 12, 2009 Share Posted September 12, 2009 this echo <<< _END should be echo <<<_END and inside this you should be able to do $msg: $msg2 because : isn't a valid character for a function name Quote Link to comment https://forums.phpfreaks.com/topic/173964-what-does-this-mean/#findComment-917064 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.