Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Mar 2011, 03:35 PM   #1
So Ambitious
War Room Member
 
nikeman070's Avatar
 
Join Date: 2010
Location: Chicago, IL
Posts: 263
Thanks: 57
Thanked 19 Times in 16 Posts
Lightbulb
Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

I can create the database I just learned pretty simple..

Import the sql using php my admin

Buuut I cant put it together in my mind how to apply the script to my site..

Now this is a script I belive that has 1k quotes on it..

Any ideas??

note.. this is for a site that is new and has no files do I need to create an index file and apply it with a path or something or what?

nikeman070 is offline  
Unread 18th Mar 2011, 03:37 PM   #2
People Know Me
War Room Member
 
aaron_nimocks's Avatar
 
Join Date: 2006
Location: Virginia Beach
Posts: 705
Thanks: 30
Thanked 138 Times in 115 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

Well you need to learn PHP or something and make queries to the DB to pull the data out and display it.

Id start reading

PHP Tutorial
and then go through
PHP MySQL Introduction

My free PSD logs can be downloaded at PSD Bum. Enjoy!
aaron_nimocks is offline  
Unread 18th Mar 2011, 09:26 PM   #3
Warrior Member
 
Join Date: 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

You have to connect to your database from within a web scripting language like PHP and perform sql queries to get results
voitenkos is offline  
Unread 21st Mar 2011, 08:30 AM   #4
Web Development Guru
 
phpdev's Avatar
 
Join Date: 2011
Location: Pakistan
Posts: 53
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

If you can convert your quotes files to CSV, then you can import that from phpMyAdmin
phpdev is offline  
Unread 22nd Mar 2011, 05:34 PM   #5
Warrior Member
 
Join Date: 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

Importing the data
After logging in, navigate to the phpMyAdmin import screen by doing this:

Look in the left-hand column and click on the name of the table into which you want to import the data.
Click the Import tab that appears at the top of the page.
Change the "Format of imported file" to CSV. (Do not choose "CSV using LOAD DATA"; it will not work.)
You'll then see a screen that allows you to choose the import options:

Next to "Location of the text file", choose the file from your hard disk that you want to import.
Change the Fields terminated by option to be a comma instead of the default semicolon.
Leave the other options unchanged unless you know what you're doing.
Press Go.


From support.tigertech.net

forum386 is offline  
Unread 6th Dec 2011, 12:51 AM   #6
Warrior Member
 
Join Date: 2011
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

use a server-side language like PHP to connect to the Mysql DB

then you can manipulate the data any way you want and also list them on your website
rockerzz is offline  
Unread 6th Dec 2011, 05:19 AM   #7
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 99
Thanks: 6
Thanked 13 Times in 10 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

To be honest, you need to learn a whole lot to achieve what you want.
Just "connecting" won't do it.
Depending on what and how you want to display your data, you need to learn query call statements, php (or some other server side script) to retrieve and then display the code.

Do you know html? That is the first basic step to displaying ANY page on the internet.
You say there are no files...everything above is built from files (one or many).

Good luck
tampaprogrammer is offline  
Unread 8th Dec 2011, 12:35 AM   #8
Active Warrior
War Room Member
 
robfrancis's Avatar
 
Join Date: 2011
Location: New Zealand
Posts: 90
Thanks: 21
Thanked 27 Times in 19 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

Originally Posted by tampaprogrammer View Post

To be honest, you need to learn a whole lot to achieve what you want.
Just "connecting" won't do it.
I agree with tampaprogrammer. Searching google for "php mysql tutorial" will bring up plenty of results to guide you step by step along the path.

Best of luck to you,
Rob Francis
robfrancis is offline  
Unread 9th Dec 2011, 04:15 AM   #9
HyperActive Warrior
 
casius's Avatar
 
Join Date: 2010
Posts: 131
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: Applying a SQL file to my website help!?
Share on: 
fb share twitter share gplus share more share

Another things is to use phpMyAdmin which has the major control of MySQL.

Cloud VPS || Shared Hosting
Web Hosting Solutions for Geeks!
HOST1PLUS
casius is offline  
Closed Thread


Bookmarks

Tags
applying, file, sql, website


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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:37 PM.