soljohnston777@gmail.com Posted January 7, 2016 Share Posted January 7, 2016 I have learned a lot from W3schools, but I wished there was more tutorials on placing variables within variables - like in PHP inserting Variables in other commands. $SQL= Insert into table; $database = $SQL where order = 1; I know this may not be properly inputted, but that is the basic idea. i do a programming within different languages, but syntax is always the hardest to figure out sometimes. I would love if I had one good model from one main site of doing things such as this for a lot of commands and formatting. Thanks for everything so far! Link to comment Share on other sites More sharing options...
Ingolme Posted January 7, 2016 Share Posted January 7, 2016 The most comprehensive guide to PHP is on the PHP website itself. It looks like you want to learn about strings. Here's the manual page for strings: http://php.net/manual/en/language.types.string.php I would not recommend putting variables in SQL strings because it's a big security vulnerability. It's best to use prepared statements which is something you should learn about once you've mastered the basics of PHP. Link to comment Share on other sites More sharing options...
davej Posted January 7, 2016 Share Posted January 7, 2016 I have learned a lot from W3schools, but I wished there was more tutorials on placing variables within variables - like in PHP inserting Variables in other commands. $SQL= Insert into table; $database = $SQL where order = 1; What the heck are you talking about? It looks like you are describing SQL database queries. Have you looked at these tutorials? http://www.w3schools.com/sql/default.asp http://www.w3schools.com/php/php_mysql_intro.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now