Jump to content

Could you add this to your tutorials - I would help a lot


Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...