clanstyles Posted July 5, 2007 Share Posted July 5, 2007 1) Where can I learn up on foreach statemnts? Also, those are for php 5.0 and up right? 2) Where can I get a list of mysql commands? Like I know SELECT INSERT UPDATE DELETE but ive seen a lot of stuff ive never even heard of before. Like GROUP () and sum() and werid weird stuff. But i can use those a lot and want to see what else there is. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
soycharliente Posted July 5, 2007 Share Posted July 5, 2007 http://us2.php.net/foreach http://www.pantz.org/database/mysql/mysqlcommands.shtml Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 5, 2007 Share Posted July 5, 2007 foreach() PHP MySQL Ever heard of Google? Quote Link to comment Share on other sites More sharing options...
soycharliente Posted July 5, 2007 Share Posted July 5, 2007 Your sarcasm is a little obnoxious. And your link to Google is fairly rude. There is a polite way to say the same thing. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 5, 2007 Share Posted July 5, 2007 a watered down version of foreach is basically you can apply or use a whole array for something like lets say you want to add a continuous +1 to each value of an array you can say <?php $i = 1; foreach($myarray as $value) //$value is the standard foreach placeholder var { $value+$i; echo $value."<br/>"; $i++; } ?> its most often used for echoing o complex sorts although you can write sort functions most of the time its easier to sort via a foreach type function Quote Link to comment Share on other sites More sharing options...
clanstyles Posted July 5, 2007 Author Share Posted July 5, 2007 thx guys. Quote Link to comment Share on other sites More sharing options...
cluce Posted July 5, 2007 Share Posted July 5, 2007 also you may want to utilize this website too. I used all the others and I like this one the best. http://www.w3schools.com/php/default.asp Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 5, 2007 Share Posted July 5, 2007 Yes that google comment is a little inapproperate this forumn is made to help people not discourage so please clean up your act or don't use this forumn Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 5, 2007 Share Posted July 5, 2007 1) Where can I learn up on foreach statemnts? Also, those are for php 5.0 and up right? To answer your question foreach was introduced in php 4. Quote Link to comment 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.