Tom8001 Posted November 30, 2014 Author Share Posted November 30, 2014 ok Quote Link to comment https://forums.phpfreaks.com/topic/292784-php-wont-encrypt-passwords/page/2/#findComment-1498089 Share on other sites More sharing options...
Tom8001 Posted November 30, 2014 Author Share Posted November 30, 2014 I tried echoing the $sql variable but it wont work i have tried echo '$sql'; echo "$sql"; echo ". $sql ."; and echo '. $sql .'; and it just completely ignores it. Quote Link to comment https://forums.phpfreaks.com/topic/292784-php-wont-encrypt-passwords/page/2/#findComment-1498106 Share on other sites More sharing options...
mac_gyver Posted November 30, 2014 Share Posted November 30, 2014 to echo a variable, all you need is echo $sql; this is pretty basic stuff and would be covered in any beginning php book, tutorial, or class. have you read a php book or tutorial, or taken a class to learn the basics before trying to write your own code that does something? of the lines you posted, line #2 and line #3 would have displayed the content of the $sql variable (line #3 would have also displayed the extra dots and spaces within the double-quoted string. lines #1 and #4 would have literally displayed what is within the single-quotes. if nothing was displayed when you tried to echo the $sql variable, either you either have a php syntax error and the whole page of code isn't running or you put the echo statement at the incorrect point in your code or the code where you put it at isn't being executed. if you want anyone here to try and determine why the echo statement you put into your code didn't do what was expected, you would need to post your current code that contains that echo statement to give us something upon which to help you. Quote Link to comment https://forums.phpfreaks.com/topic/292784-php-wont-encrypt-passwords/page/2/#findComment-1498109 Share on other sites More sharing options...
Tom8001 Posted November 30, 2014 Author Share Posted November 30, 2014 ok i'll make sure i do that next time Quote Link to comment https://forums.phpfreaks.com/topic/292784-php-wont-encrypt-passwords/page/2/#findComment-1498117 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.