This is a discussion on Help - Php within the Php and MySQL forums, part of the Programming / Scripting / Coding category; Im going to leasrn PHP but i carnt find any decent tutorials if anyone noes of any good ones or ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Guest | Im going to leasrn PHP but i carnt find any decent tutorials if anyone noes of any good ones or even better Video tutorials could you post them here Ive learnt a lot of HTML and VB in the last month http://www.seangreasley.com/ |
| |
| | #2 (permalink) |
| Active Member | never seen any video tutorials, but www.spoono.com is pretty good for beginning, making a guestbook is a good way to learn and then you can improve it as you advance |
| | |
| | #3 (permalink) |
| Guest | right i need HELP ive made a script Code: <?PHP $cfg['mysqlhost'] = ''; // Database host URL $cfg['mysqluser'] = ''; // Database user $cfg['mysqlpassword'] = ''; // Database password $cfg['mysqldb'] = ''; // Database name // MySql $db_banlist = ''; $db_config = ''; $db_levels = ''; $db_mail = ''; $db_users = ''; $db_admin = ''; $db_style = ''; $db_lang = ''; $db_ads = ''; $db_online = ''; ?> its for a register form |
| |
| | #4 (permalink) |
| Active Member | hmmm not sure why you have put the connection variables into an array. Here is the way i do it: I save the code below in to a file called db.php PHP Code: PHP Code: remeber to use this when you have finished with the connection(when you have finished querying the database): PHP Code: |
| | |
| | #9 (permalink) |
| Active Member | Its un tested but should be fine, there are many improvements that coupld be made but it should do the job you want. You will need to create a mysql database with a table called whatever you like but it must have the username and password columns. Edit the code so that $table equals whatever table name you have used. Here is the code hope it helps! PHP Code: |
| | |