470,833 Members | 1,190 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

problemi a connettersi a mysql se pubblico lo script sul web

Qualcuno mi spiega come poter interagire con dei record di una tabella
mysql: ho creato lo script per collegarsi e funziona provandolo col mio
editor, ma quando provo a pubblicare lo script php nel mio sito web non
riesce a collegarsi al db ed a vedere i record di conseguenza.
localhost per me Ť nulla ovvero"" in locale ma se provo a collegarmi dal
sito web forse devo inserire qualcosa come localhost ????
Grazie, per favore rispondete il prima possbile

--

Alberto
Jul 17 '05 #1
1 1894
SAN CAZIANO wrote:
Qualcuno mi spiega come poter interagire con dei record di una tabella
mysql: ho creato lo script per collegarsi e funziona provandolo col mio
editor, ma quando provo a pubblicare lo script php nel mio sito web non
riesce a collegarsi al db ed a vedere i record di conseguenza.
localhost per me Ť nulla ovvero"" in locale ma se provo a collegarmi dal
sito web forse devo inserire qualcosa come localhost ????
Grazie, per favore rispondete il prima possbile


Rough English Translation:

Someone explains to me as to be able to interact with of the records of
one table mysql: I have created the script in order to be connected and
works trying it with mine editor, but when I try to publish the script
php in my situated one web does not succeed to be connected to the db
and to see the records consequently. localhost for me it is null that
is "" in premises but if I try perhaps to be connected from the situated
one web I must insert something like localhost? Thanks, please you
answer the first possbile

il plaase ci mostra il codice che collega alla base di dati
plaase show us the code that connects to the database
$HOST= 'localhost';
$USR = 'mysql';
$PWD = '<enter password here --digiti la parola d'accesso qui>';
$DB = 'mysql';
$link = mysql_connect($HOST,$USR,$PWD);
if( $link ) {
mysql_select_db( $DB, $link );
}

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Spidah | last post: by
4 posts views Thread by Neil | last post: by
4 posts views Thread by Damien Renwick | last post: by
11 posts views Thread by mikey_boy | last post: by
reply views Thread by Duane Winner | last post: by
6 posts views Thread by Heavy | last post: by
5 posts views Thread by Guillermo Antonio Amaral Bastidas | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.