seba4 Posted September 13, 2008 Share Posted September 13, 2008 Hi i am really a beginner in mysql and php, and need some help.I was studying some book about mysql and php. I know how to set php (.php), but i got a problem i dont know where to write mysql commands for creating tables. Any other file or how? hope someone can help me because i want to start doing in php and mysql but cant because of that.žThanks for help Link to comment Share on other sites More sharing options...
boen_robot Posted September 13, 2008 Share Posted September 13, 2008 Errr... you might want to experiment a little more with PHP before you dig into SQL.You (normally) write SQL queries inside the PHP file. PHP would actually connect MySQL in order to perform the query.Read W3Schools' PHP turorial (and it's MySQL section) for more info. Link to comment Share on other sites More sharing options...
seba4 Posted September 13, 2008 Author Share Posted September 13, 2008 Errr... you might want to experiment a little more with PHP before you dig into SQL.You (normally) write SQL queries inside the PHP file. PHP would actually connect MySQL in order to perform the query.Read W3Schools' PHP turorial (and it's MySQL section) for more info.Ok i will try it. I know about php connecting to database, and then chosing table. I have tried to make one table and it didnt work, i will check that tut. and see if it will helpUsually mysql code is inside .php . (if using with php) Same with creating tables u write the code inside php for creating table in database.? Link to comment Share on other sites More sharing options...
boen_robot Posted September 13, 2008 Share Posted September 13, 2008 Usually mysql code is inside .php . (if using with php) Same with creating tables u write the code inside php for creating table in database.?Yes. I couldn't have said it better myself. Link to comment Share on other sites More sharing options...
smartalco Posted September 15, 2008 Share Posted September 15, 2008 although generally, you would use a SQL admin interface like phpMyAdmin to create the database and tables, and then the only parts that would be in the php files would be the code to enter information into the tables or read from them Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.