a PHP question - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-15-2006, 12:55 AM   #1 (permalink)
Member
 
Join Date: Jun 2006
Posts: 107
Default a PHP question

hi all

wel I have mastered HTML and (almost ) CSS and now I want to use PHP and I have been learning a little about both PHP and My SQL but my question is
can I control my databases using only PHP without the need of entering to the database or not?

thanks

BB
BrotherBear is offline   Reply With Quote
Sponsored Links
Old 09-15-2006, 02:09 AM   #2 (permalink)
Member
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 718
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Re: a PHP question

Well, if you mean you want to manage the database using PHP yes you can, i personally have opted to stay away from that, i am a big fan of phpMyAdmin Which i use to administer my database. But there are ways to create add delete and anything else regarding a data base using PHP.

~Snapple
O~Snapple is offline   Reply With Quote
Old 09-15-2006, 02:07 PM   #3 (permalink)
Junior Member
 
alwaysinit's Avatar
 
Join Date: Aug 2006
Posts: 36
Default Re: a PHP question

Yes, like O-snap said, php controls what goes in and how it goes in. I'm new to it myself, but as far as I can tell I would never have touch the database directly. The PHP script touches it all. It all happens in the PHP script.
But check out what O-snapple said "big fan of phpMyAdmin".
A complete beginner can use phpMyAdmin to handle every table and field in the database. Assigning values, defaults, types, indexes, and primaries is made very easy by "phpMyAdmin".
alwaysinit is offline   Reply With Quote
Old 09-15-2006, 03:12 PM   #4 (permalink)
Member
 
Join Date: Jun 2006
Posts: 107
Default Re: a PHP question

thanks snap and alwaysinit that helps , actually I use phpMyAdmin as well but I am really new on using that feature can snap or someone explain me how it works or at least tell me where to find some tutorials about using phpmyadmin? thanks

BB
BrotherBear is offline   Reply With Quote
Old 09-15-2006, 03:13 PM   #5 (permalink)
Member
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 718
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Re: a PHP question

Well what is it you are trying to do, each situation requires different things so lets see if we can sketch this out for you.

~Snapple
O~Snapple is offline   Reply With Quote
Old 09-15-2006, 03:36 PM   #6 (permalink)
Member
 
Join Date: Jun 2006
Posts: 107
Default Re: a PHP question

well first I want to create tables to put infromation from users not like registering or something like that just a enqueries table from the users and once I create the tables I want to make fields like "lasname, firstname,age, comments" I want to name the table "customers" and when you create a table how to setup all the values and stuff

BB

Last edited by BrotherBear; 09-15-2006 at 03:39 PM.
BrotherBear is offline   Reply With Quote
Old 09-15-2006, 04:20 PM   #7 (permalink)
Member
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 718
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Re: a PHP question

So this will be a personal database, you will enter all the data and make your own query's from it ???

If that is the case i would suggest using MS Access

If you want to use it from a web interface it might be smart to create a Form that you could use to qeury and enter data into the database

~Snapple
O~Snapple is offline   Reply With Quote
Old 09-15-2006, 04:35 PM   #8 (permalink)
Member
 
Join Date: Jun 2006
Posts: 107
Default Re: a PHP question

well the thing is to explain it better, I have a linux based host so it does not allows any microsoft databases such as MSacces in my host I have one phpMyAdmin with MySQL I want to use it in my site, i want to make forms where users can submit there suggestions and stuff but inorder to submist this i want them to enter there name (last and first) age , and comments so I already created a table in phpMyAdmin but I don't know how to set the other values like Type lenght values collation attributes null default extra and the rest so if u could help me with this it would be great

BB
BrotherBear is offline   Reply With Quote
Old 09-15-2006, 05:11 PM   #9 (permalink)
Member
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 718
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Re: a PHP question

Got ya it all makes sense now, Ok well in the Form Action should be called form1.php, you will want to make the fields for fname lname and comment required, or i believe it is not Null is how they put it, for the comment field you should use LONGTEXT i believe, and make a max characters like 250 or whatever you feel is necessary.

To be honest i dont know much about colliation but what i use and it works good is Latin1_sweedish_ci so you might want to give that a shot.

Does that make sense LOL

~Snapple
O~Snapple is offline   Reply With Quote
Old 09-15-2006, 05:20 PM   #10 (permalink)
Member
 
Join Date: Jun 2006
Posts: 107
Default Re: a PHP question

thanks that helps I understand everything but what do you mean with in the form action it should be called form1.php?

BB
BrotherBear is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:29 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting