I have just started learning PHP, and I am wondering - where do you insert the SQL code? Is it in a separate file, and if so, what sort of file?
Thread: Simple banner rotator |
Last edited by Jaan; 06-08-2010 at 09:37 AM.
█ Trill Hosting - Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ Shared Web Hosting | Dedicated Servers | Reseller Hosting | Linux VPS Servers | Windows VPS Servers
█ www.trillhosting.com | support@trillhosting.com
█ Live Support: Skype: jaantrill | MSN: trillsupport@live.com
Webmaster Forum | Marketing | Search Engine Optimization | Marketplace | Learn How To Make Money Online
Makes sense to insert SQL code into the MySQL database, indeed.
mysql database isnt a file
it's a database.. it's like server..![]()
█ Trill Hosting - Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ Shared Web Hosting | Dedicated Servers | Reseller Hosting | Linux VPS Servers | Windows VPS Servers
█ www.trillhosting.com | support@trillhosting.com
█ Live Support: Skype: jaantrill | MSN: trillsupport@live.com
Webmaster Forum | Marketing | Search Engine Optimization | Marketplace | Learn How To Make Money Online
OOHHHH... I still don't get a couple of things. Presumably they're already made, as web hosting providers offer a set amount of databases. So why do you need to create them using sql_create_database(), if they're already there?
you can use this function also if you have permission..
BUT
usually you are not permitted to do it..
so..
you must create databases in your Cpanel or phpMyAdmin
█ Trill Hosting - Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ Shared Web Hosting | Dedicated Servers | Reseller Hosting | Linux VPS Servers | Windows VPS Servers
█ www.trillhosting.com | support@trillhosting.com
█ Live Support: Skype: jaantrill | MSN: trillsupport@live.com
Webmaster Forum | Marketing | Search Engine Optimization | Marketplace | Learn How To Make Money Online
hmm.. you gave me an idea.. i'll create some tutorials about that![]()
█ Trill Hosting - Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
█ Shared Web Hosting | Dedicated Servers | Reseller Hosting | Linux VPS Servers | Windows VPS Servers
█ www.trillhosting.com | support@trillhosting.com
█ Live Support: Skype: jaantrill | MSN: trillsupport@live.com
Webmaster Forum | Marketing | Search Engine Optimization | Marketplace | Learn How To Make Money Online
There are currently 1 users browsing this thread. (0 members and 1 guests)