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 );
}