Building Dynamic Websites With MySQL And PHP

A Member? Please Login  
type your username and password to login
Date: October 13, 2008, 03:46 AM
249179 members and 147757 Topics
Latest Member: Ebvuofwx
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: SAM MILLA, uspry1)  |  Building Dynamic Websites With MySQL And PHP
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Building Dynamic Websites With MySQL And PHP  (Read 706 views)
damseremie (m)
Building Dynamic Websites With MySQL And PHP
« on: August 14, 2006, 05:09 PM »

First of all i just want to say i am not a pro so make nobody harrass me if my question stupid.
I don't hand-code although i know basic html.

But what my real problem is that i obviously need 2 learn dynamic site design.

Noiw i use dreamweaver. photoshop etc for my web designs so i guess am more of a web designer than a web developer.

But now i need to build a basic dynamic site allowing user registration with "username and password". i have created the mySQL tables required and am using php and it works well on my pc. What ill like 2 know is how to transfer the local database on my pc to my internet server (do i just upload it? and if so where exactly do mySQL databases save to).

Or will i have to use a tool like myphpAdmin to create  the datbase online(AGAIN?).

Need help ok. So am down opn my knees pleading and yes if any of u have ebooks on html ,php, ajax ,asp , mySQL etc, And u feel u can share them, I'll be very grateful. don't worry. am not out to take anybodys jobs(hahhaha) so make una no fear.
signon (m)
Re: Building Dynamic Websites With MySQL And PHP
« #1 on: August 14, 2006, 06:39 PM »

You option at this time is to create the database from your control panel's MySQL Account Maintenance  or use phpmyadmin to do same.

Using your control panel's MySQL Account Maintenance will provide you with the connection string that you can cut and paste to your program:


$dbh=mysql_connect ("localhost", "username", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("databasename");

Once you have your database and connecting string, all you need are the insert, select, update and delete calls and you are set to go.

Since you don't know enough of php yet, it will futile to ask you to write the mysql code and upload to your hosting, this is also an option.

Visit:
http://www.freewebmasterhelp.com/tutorials/insert
or
http://www.webmonkey.com/programming/php/tutorials/tutorial4.html



Good luck!


Godwin

my2cents (m)
Re: Building Dynamic Websites With MySQL And PHP
« #2 on: August 14, 2006, 08:34 PM »

damseremie:

As the chinese say, "He who asks now is a fool for 5 minutes.  He who doesn't ask is a fool forever",

and as I like to say, "the only stupid question is one that is never asked".

I hope these help and that you get the answers you seek Wink
timmy (m)
Re: Building Dynamic Websites With MySQL And PHP
« #3 on: August 15, 2006, 03:32 PM »

Well we just told him the phase one of his problems,he might still have doom set ahead of him Grin
@damseremie ,
well if that works, lets hope it does, you "might" have to either create a replica user you have locally with the one online and set a global privilege to the user.

from my understanding, you know how to use PhpMyAdmin not Myphpadmin (since its yours, it sure wont work Tongue) so like prodgalson said do the export thingy
Since you used dreamweaver, yyou'dalso have to edit a .php file in your siteroot/Connections/ folder ,


you sshouldsee somfin similar to this

1 <?php
2 # FileName="Connection_php_mysql.htm"
3 # Type="MYSQL"
4 # HTTP="true"
5 $hostname_examguide = "localhost";
6 $database_examguide = "examguide";
7 $username_examguide = "timmy";
8 $password_examguide = "abstract";
9 $examguide = mysql_pconnect($hostname_examguide, $username_examguide, $password_examguide) or  trigger_error(mysql_error(),E_USER_ERROR);
?>


you might have to edit line 5 (but not always, most likely that remains the same value and if u used 127.0.0.1 locally, change it to localhost online)
but certainly your line 6,7 and 8 most be well monitored else yuld be setting for doom, i just pray your client is the gentle type else na yawa for you,

anyways like i said lets know the kind of admin panel your host support, then i could give a precise help.
Anetor .T
Re: Building Dynamic Websites With MySQL And PHP
« #4 on: August 16, 2006, 09:46 AM »

Thanks u all . Am yet to try it but i will and ill make sure i let u know what went RIGHT, (Or wrong). Grin and to timmy yes i meant PhpMyAdmin not myphpadmin as i wrote earilier (well u got me).

I'll finish work on the site in the next 3 or 4 days so that ill put your solution to test.
Thanks again.

timmy Could u tell me exctly what details u need about my admin panel so that i can send them,  (again remember am an amateur so bear with my questions if they seem foolish)
damseremie (m)
Re: Building Dynamic Websites With MySQL And PHP
« #5 on: August 16, 2006, 09:55 AM »

The last message was actually from me . i mistakenly used someone else;s account who was already logged in. So here it is again


Thanks u all . Am yet to try it but i will and ill make sure i let u know what went RIGHT, (Or wrong).  and to timmy yes i meant PhpMyAdmin not myphpadmin as i wrote earilier (well u got me).
prodgalson:  ill finish work on the site in the next 3 or 4 days so that ill put your solution to test.
Thanks again.
timmy Could u tell me exctly what details u need about my admin panel so that i can send them,  (again remember am an amateur so bear with my questions if they seem foolish)
Zahymaka (m)
Re: Building Dynamic Websites With MySQL And PHP
« #6 on: August 20, 2006, 04:45 PM »

Quote from: damseremie on August 16, 2006, 09:55 AM
The last message was actually from me . i mistakenly used someone else;s account who was already logged in. So here it is again


Thanks u all . Am yet to try it but i will and ill make sure i let u know what went RIGHT, (Or wrong).  and to timmy yes i meant PhpMyAdmin not myphpadmin as i wrote earilier (well u got me).
:  ill finish work on the site in the next 3 or 4 days so that ill put your solution to test.
Thanks again.
timmy Could u tell me exctly what details u need about my admin panel so that i can send them,  (again remember am an amateur so bear with my questions if they seem foolish)

Idams it's so unclucky we don't meet online. I'D be glad to help you when I'm on. Just buzz me [I'm almost always invisible].
valmeji (f)
Re: Building Dynamic Websites With MySQL And PHP
« #7 on: August 25, 2006, 09:40 AM »

Hi,
I want to create a form that can be viewed and filled online and the content of the form will reside in a database but i don't know where to start from i do know however, that i would use mysql and php. So please can anybody out there help me. Embarrassed

thanks
 Website Review - Just Nigeria Entertainment  Increase Yours Google Ads Profit By Posting In Forums Using Ur Ads Id  Your Greatest Embarrassment As A Webmaster Or Programmer?  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.