Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > MySQL Help

MySQL Help Post any question relating to MySQL here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2004-08-25, 04:44 PM
Jacksome
Guest
 
Posts: n/a
Default

Recently I got a hosting server with all functions
of php, Mysql and phpMyAdmin. After creating databases, I don't konw where they are in the
server. I checked through FTP, found nothing for
the databases I created.

So how can I connect my html to the databases?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2004-08-25, 05:44 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

Not really sure how you are planning on connecting HTML to a database...

I assume you are using PHP to connect to your database. If so, http://www.php.net/mysql will show you how to do it.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2004-09-15, 07:32 PM
Junior Member
 
Join Date: Sep 2004
Posts: 2
the12php
Default

you can connect with many scripts.

If you connect using php you must know the following 3 things.

1) your Host url example: mysql.securesever.net
2) Your Username which is Case sensitive
3) Your Password also case sensitive



Heres an example:

Code:
<?php

// Your variables

$Host = "[I]your Host goes here[/I]"
$User= "[I]your user goes here"[/I]
$password = "[I]your password goes here[/I]"


// Connecting using Variables above

mysql_connect($Host, $User, $Password)or
   die ("Could not connect");

?>
this just connects you. You'll have to take it from there on. You can decide whether you want to CREATE, DROP, ALTER, SHOW, INSERT, LOAD, SELECT, or UPDATE the table you create.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:08 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.