yanjchan Posted April 6, 2009 Share Posted April 6, 2009 Hi! I'm one of those people who learn by example, so could one of you please make an annotate a small MySQL script that would create a database, create a table, then read and insert into it? All the tutorials I've seen serve to confuse me. Though, if you knew of a good one, that would be nice too. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/ Share on other sites More sharing options...
AdRock Posted April 6, 2009 Share Posted April 6, 2009 go from here http://www.tizag.com/mysqlTutorial/mysqlconnection.php onwards. They do some really easy to follow tutorials you'll never learn if you don't try Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/#findComment-803013 Share on other sites More sharing options...
Maq Posted April 6, 2009 Share Posted April 6, 2009 All the tutorials I've seen serve to confuse me. Hard to believe, but may be so. Tizag certainly won't confuse, it's one of the most basic references known to man. There's also plenty of examples on these forums. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/#findComment-803017 Share on other sites More sharing options...
yanjchan Posted April 7, 2009 Author Share Posted April 7, 2009 I guess I didn't search well enough. Well, thanks for the tizag tutorial! It's very helpful. However, don't I need to close the mysql connection? That's one of the only other things I remember, because it put it in bold. Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/#findComment-803037 Share on other sites More sharing options...
phil88 Posted April 7, 2009 Share Posted April 7, 2009 From www.php.net/mysql_close : Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. See also freeing resources. So no, generally speaking, you don't need to explicitly close a mysql connection. Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/#findComment-803050 Share on other sites More sharing options...
Maq Posted April 7, 2009 Share Posted April 7, 2009 It's good practice. Quote Link to comment https://forums.phpfreaks.com/topic/152905-help-with-mysql-please/#findComment-803055 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.