I am a programmer of many languages but I have a few issues. I want to learn sql code but have no idea where to input it! Do I make files or is there a program I use? Please, captain obvious point it out to me... Thanks in advance!
I am a programmer of many languages but I have a few issues. I want to learn sql code but have no idea where to input it! Do I make files or is there a program I use? Please, captain obvious point it out to me... Thanks in advance!
well you can run it manually from PHPMyAdmin
or make a script to run it once an action has been completed in PHP, there are also other languages available, but i think this is the most popular
Well that's a good start -> http://www.w3schools.com/sql/default.asp
What exactly do you need SQL for?
Are you working with any SQL based databases? MySQL, PostgreSQL?
Also check out the thread "SQL for noobs".
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
another silly question... can you create store procedures via phpmyadmin? (real noob here)
Thank you so much for your replies! I feel like such an idiot now...
P.S.
phpMyAdmin will echo the SQL that it uses for each CREATE,INSERT, UPDATE, etc comand, good idea to copy it down...
then you can use it later for your php, just change the WHERE something='something' to something='".$value."' like that...
Have fun....
Better yet, use prepared statements: change statement to "... WHERE something=:something ...". PHP code looks like:
PHP Code:$stmt = $db->prepare('... WHERE something=:something ...');
$stmt->execute(array(':something', $value));
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.