Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 7th, 2005, 9:11 PM   #11
CasualSax
Newbie
 
Join Date: May 2005
Posts: 6
Rep Power: 0 CasualSax is on a distinguished road
Making some good headway. First, set up XAMPP to run on my machine. Bought the book you recommended and reading through - really great examples and clear language thats on my level (going through the PHP introduction).

Starting with the MySQL stuff, though, and using XAMPP I have no clue how to access my database outside of PHP - to setup/add initial data. Any simple tips (ie, "run this program," or "access it through this application doing___") to get me started would be much appreciated.

Thanks in advance. =D
CasualSax is offline   Reply With Quote
Old Jun 8th, 2005, 2:46 AM   #12
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
if you are using Mysql have a hunt on google for a gui or there must be a command line interface to it.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 8th, 2005, 6:09 AM   #13
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
If you're using MySQL, set up phpMyAdmin on your home server - it's an excellent GUI for MySQL databases.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 9th, 2005, 9:49 AM   #14
diego
Newbie
 
Join Date: Jun 2005
Posts: 3
Rep Power: 0 diego is on a distinguished road
Connecting to a MySQL database is very easy with PHP since it has specific functions to work with in MySQL databases:

Just an example:

<?php
       $connect = mysql_connect ("localhost","root","password");
       if (! $connect) {
                  echo ("Sorry, no connection possible!");
                  }
?>

This is the code-snippet which allows you to connecto to your database. Of course, you'll have to surrogate "root" and "password" with the right values (e.g. the ones you put in when you set up your xampp).
Need more help?
diego is offline   Reply With Quote
Old Jun 9th, 2005, 9:51 AM   #15
diego
Newbie
 
Join Date: Jun 2005
Posts: 3
Rep Power: 0 diego is on a distinguished road
Quote:
Originally Posted by Berto
if you are using Mysql have a hunt on google for a gui or there must be a command line interface to it.
I use the windows-"shell" exclusively for my work with MySQL and PostgreSQL. I think GUIs dont give me enough control over the servers.
diego is offline   Reply With Quote
Old Jun 10th, 2005, 2:48 AM   #16
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
Quote:
Originally Posted by diego
I use the windows-"shell" exclusively for my work with MySQL and PostgreSQL. I think GUIs dont give me enough control over the servers.
I find it depends on my mood i am becoming quite good with sql jnow so i can do it either way tbh.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 10th, 2005, 9:14 AM   #17
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Quote:
Originally Posted by Berto
I find it depends on my mood i am becoming quite good with sql jnow so i can do it either way tbh.
i am the same way. Sometimes i use PgAdmin, and sometimes i use just a shell...
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jun 10th, 2005, 1:30 PM   #18
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I use phpMyAdmin and the SQL statement insertion option, most of the time.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 13th, 2005, 3:48 AM   #19
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
I also use the shell more often then anything else due to well code on my web pages or though my java to the AS400 at work is all sql so it helps me to test my sql is working correctly.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 15th, 2005, 9:40 PM   #20
CasualSax
Newbie
 
Join Date: May 2005
Posts: 6
Rep Power: 0 CasualSax is on a distinguished road
I'm on the right track again, working beautifully.

Thanks!
CasualSax is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC