Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 06-12-2007, 11:31 PM
Sergeant
 
Join Date: Jun 2007
Posts: 24
Default MySql and php using tables

Would i be able to create tables on Microsoft Access and all the needed fields and links to each table etc and then use the SQL Code that it creates which you can view then import that into my PHP and HTML or is that not physically possible?

Just wondering cos like Access is very good GUI program better than coding..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 06-12-2007, 11:45 PM
Girlonthehill's Avatar
General
 
Join Date: Oct 2005
Location: England, UK
Posts: 4,231
Default Re: MySql and php using tables

Oooh, I'd be interested to find out the answer to your question. I will keep popping back ... hope you get an answer soon.
__________________
The moment one definitely commits oneself, then providence moves too. All sorts of things occur to help one that would never otherwise have occurred. A whole stream of events issues from the decisions, raising in one’s favor all manner of unforeseen incidents and meetings and material assistance which no man could have dreamed would have come his way. Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now. (William Hutchinson Murray)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 06-12-2007, 11:51 PM
Sergeant
 
Join Date: Jun 2007
Posts: 24
Default Re: MySql and php using tables

I'd be shocked if no one has thought of it... cos it does seem logically possible but i dont wana work all day on it and find out you can't so im hoping some one else has figured it out :P

If you can it be a dream come true and a time saving moment !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 06-12-2007, 11:57 PM
Girlonthehill's Avatar
General
 
Join Date: Oct 2005
Location: England, UK
Posts: 4,231
Default Re: MySql and php using tables

Quote:
Originally Posted by SirChick View Post
I'd be shocked if no one has thought of it... cos it does seem logically possible but i dont wana work all day on it and find out you can't so im hoping some one else has figured it out :P

If you can it be a dream come true and a time saving moment !
I'd be delighted! I know how to use MSAccess. Lol The other stuff leaves me feeling clueless. Fingers crossed but you may have to be the one to test it. Lol
__________________
The moment one definitely commits oneself, then providence moves too. All sorts of things occur to help one that would never otherwise have occurred. A whole stream of events issues from the decisions, raising in one’s favor all manner of unforeseen incidents and meetings and material assistance which no man could have dreamed would have come his way. Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now. (William Hutchinson Murray)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 06-13-2007, 12:00 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Posts: 4,504
Send a message via MSN to Karen Mac
Default Re: MySql and php using tables

I would assume that you can as i do it via Excel all the time. As long as the mysql viewed the format as acceptable you should be able to import it. Not sure if you would have to set up the headers to import to or not first tho. Id have to login and look to see if you could create a database and then import the headers totally.

Karen
__________________
KMAC Enterprise
Granny's Country Nook 10%Off, your code: Forum Discounts
Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 06-13-2007, 12:19 AM
Sergeant
 
Join Date: Jun 2007
Posts: 24
Default Re: MySql and php using tables

Does that mean your going to check or are you suggesting that is what i should do. Wasnt sure then :P

I dont own my own server yet mind. So for me testing would be a bit pointless cos i could not get an answer.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 06-13-2007, 12:29 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Posts: 4,504
Send a message via MSN to Karen Mac
Default Re: MySql and php using tables

Well... im not off to look this moment! I was suggesting thats what you could do. Perhaps if you were voda host customer, I might make the xtra journey, but I dont have a reason to log in and look at mysql and find out. For now I would assume that you can at least import it to a table that you create and use the import to populate the table.

Karen
__________________
KMAC Enterprise
Granny's Country Nook 10%Off, your code: Forum Discounts
Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 06-13-2007, 07:12 AM
Sergeant
 
Join Date: Jan 2007
Posts: 29
Question Re: MySql and php using tables

Hi, I want to make my table so that if I add a value into one column it will add the same value to another table.

Ex. Table customers
memberid

Table customers2
memberid

If I add a value into memberid in the customers table it will also be added to customers2 memberid.

How can I accomplish this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 06-13-2007, 11:38 AM
Sergeant
 
Join Date: Jun 2007
Posts: 24
Default Re: MySql and php using tables

Karen Mac - I would be a vodahost customer if i knew it was possible.. no point in buy a host if i dont know weather i can achieve it yet.

And horus make your own thread youll get more responses aimed at you that way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 06-13-2007, 06:29 PM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,282
Default Re: MySql and php using tables

Yes it is possible. However it takes lot of php knowledge to do this. At current the only one I know that have that kind of knowledge is Naval, Watdaflip and Davidunalica. Both Naval and Watdaflip will take on the job for a nominal fee. David- you'd have to ask.

I am currently learning php and have discoverd how to store info in a flat file and then create a php script that will read the info in the flat file and place it in a display table in any manner I wish. When complete- it will cut my website directory from 150 pages to about 5 or so. So I know it is possible.

Perhaps contact either of the members above for more solid input.

Andy
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 06-13-2007, 06:31 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Posts: 4,504
Send a message via MSN to Karen Mac
Default Re: MySql and php using tables

SirChick..

As I said, as long as you export in a compatible mode, it should be possible to populate a mysql database with a feed. If i go from excel you should be able to go from access same way. You may have to import it to excel or make a pivot table and then export it, but it shouldnt be a problem to manipulate it. You will still have to create the database before populating it in mysql then go to php my admin and do the import.

Karen
__________________
KMAC Enterprise
Granny's Country Nook 10%Off, your code: Forum Discounts
Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 06-13-2007, 08:02 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: MySql and php using tables

Quote:
Originally Posted by horus View Post
Hi, I want to make my table so that if I add a value into one column it will add the same value to another table.

Ex. Table customers
memberid

Table customers2
memberid

If I add a value into memberid in the customers table it will also be added to customers2 memberid.

How can I accomplish this?
This is not automatically done by MySQL itself. It is your script that needs to update both tables. How do you update the tables ? Meaning what kind of script you use ?
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 06-13-2007, 08:30 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: MySql and php using tables

Quote:
Originally Posted by SirChick View Post
Karen Mac - I would be a vodahost customer if i knew it was possible.. no point in buy a host if i dont know weather i can achieve it yet.

And horus make your own thread youll get more responses aimed at you that way.
It is possible: export from Access to Excel. Then export again as CSV, so you can import it into the database.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 06-14-2007, 03:26 AM
Staff Sergeant
 
Join Date: Dec 2006
Location: Newcomerstown,Ohio
Posts: 41
Send a message via Yahoo to bobs-pcmall
Wink Re: MySql and php using tables

navaldesign:

We use MS Office Access Professional 2003.
We are able to export directly from Access into csv type text.
By right clicking on the Table, Query, or Forms. Note " Item can not be open or in design view"
Select Export ::
When New Window Opens "Export Form 'Name of Datbase Opened By Access' "
From the dropdown Save as type. Here we select as ' Text Files (*.txt;*.csv;*.tab;*.asc) '
If Encode Window Pops Up "Encode As Unicode (UTF-8 then select OK.
The Next Window Should Be Export Text Wizard;
Select Delimited. Then Next. Here we prefer to use Semicolon, and Text Qualifier; We use the Broken Bar {Alt+0166}
We use broken bar because some items in text fields contain qoutes.
These seem to import fine into MySql Tables. We have used Include Field Names on First Row; but don't always get the results we
wanted.
It's Best to create database and tables first, then import.

Hope this was helpful.
__________________
Bob the Builder
www.bobs-pcmall.com
Without Data, you're just another opinion.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 06-15-2007, 05:14 PM
Sergeant
 
Join Date: Jun 2007
Posts: 24
Default Re: MySql and php using tables

Quote:
Originally Posted by bobs-pcmall View Post
navaldesign:

We use MS Office Access Professional 2003.
We are able to export directly from Access into csv type text.
By right clicking on the Table, Query, or Forms. Note " Item can not be open or in design view"
Select Export ::
When New Window Opens "Export Form 'Name of Datbase Opened By Access' "
From the dropdown Save as type. Here we select as ' Text Files (*.txt;*.csv;*.tab;*.asc) '
If Encode Window Pops Up "Encode As Unicode (UTF-8 then select OK.
The Next Window Should Be Export Text Wizard;
Select Delimited. Then Next. Here we prefer to use Semicolon, and Text Qualifier; We use the Broken Bar {Alt+0166}
We use broken bar because some items in text fields contain qoutes.
These seem to import fine into MySql Tables. We have used Include Field Names on First Row; but don't always get the results we
wanted.
It's Best to create database and tables first, then import.

Hope this was helpful.
So create the database and tables in access first or create them on the server first?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 06-15-2007, 05:22 PM
Sergeant
 
Join Date: Jan 2007
Posts: 29
Question Re: MySql and php using tables

Yes, what kind of script do I use to update the tables. I only want 1 column to be updated in both tables.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 06-15-2007, 10:22 PM
Staff Sergeant
 
Join Date: Dec 2006
Location: Newcomerstown,Ohio
Posts: 41
Send a message via Yahoo to bobs-pcmall
Default Re: MySql and php using tables

Sorry about the delay on getting back to you.

We've created the database and tables on Access first.
And then done the data entry.
Next we've created the same database and tables with the mysqladmin in cpanel
The one thing you need to be aware of is tables in mysqladmin seem to convert to lower case.
Example 'Wireless_Networking' gets converted to 'wireless_networking'.
Field names don't seem to be affected this way.
And mysqladmin adds it's own ID field for record keepping.
Emport fields must match data types.

Updateing one or two colunms is the problem we are experiancing with Visual.
Parseing the xml into the database to update records.
Right now we're not sure if it's something here to do with the schema or mapping setup.
When we get that figured out we'll be sure to post it in this forum.
We're new at the sql part of this too. Have been working with static page for 5 years up till now.

Hope this helps everyone out. I'll keep you all posted. Cheers.
__________________
Bob the Builder
www.bobs-pcmall.com
Without Data, you're just another opinion.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old 06-16-2007, 08:16 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
Default Re: MySql and php using tables

You cannot usethe "Import "feature of phpMyadmin to update only one column. However, you can upload the csv file onthe server, and then have a simple php script that will look into the uploaded file, and update the MySQL tables accordingly (obviously, you need to set at leat one fild as index key filed, so each value will go in the correct record. )
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!