Realist Posted August 8, 2009 Share Posted August 8, 2009 Ok, so I'm trying to create a gaming ladder for my site. I've never created a database before so I'm learning all of this on the fly. I've went into phpmyadmin and created a new database and table. I've also added fields. Now I dont know what I'm suppose to do next. I would like to add it to my site just to test it out to see if i'm even on the right track but I dont know how. Can someone help me out? Link to comment https://forums.phpfreaks.com/topic/169394-next-step-after-creating-a-table/ Share on other sites More sharing options...
zq29 Posted August 8, 2009 Share Posted August 8, 2009 echo mysql_connect mysql_select_db mysql_query while mysql_fetch_assoc Link to comment https://forums.phpfreaks.com/topic/169394-next-step-after-creating-a-table/#findComment-893808 Share on other sites More sharing options...
Bjom Posted August 8, 2009 Share Posted August 8, 2009 Since he is obviously learning it from scratch, why not point him to the correct up-to-date way of connecting to a mysql database which is mysqli? you can find examples and ways to connect to and manipulate (get data in, out, change them etc a.k.a CRUD) here: Connect to database with mysqli - PHP Manual Link to comment https://forums.phpfreaks.com/topic/169394-next-step-after-creating-a-table/#findComment-893828 Share on other sites More sharing options...
zq29 Posted August 9, 2009 Share Posted August 9, 2009 Since he is obviously learning it from scratch, why not point him to the correct up-to-date way of connecting to a mysql database which is mysqli? He hasn't mentioned which version of MySQL or PHP he is using, so I chose the more compatible functions. Realist, if you're using MySQL 4.1.3+ and PHP 5.0.0+ it is recommended (though not required) to use mysqli_* over mysql_*. Link to comment https://forums.phpfreaks.com/topic/169394-next-step-after-creating-a-table/#findComment-893833 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.