473,396 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1969
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for...
4
by: Neil | last post by:
Hi, I hope this question isn't too far off topic....I'm almost at my wits end trying to figure this out. I have a Mysql database and I wish to automate the backup of the database because I...
4
by: Damien Renwick | last post by:
I have a php script which simply stops midway through a while loop that processes records returned by a MySQL query. The HTML page continues trying to load the page but the php has stopped running...
11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
0
by: Duane Winner | last post by:
Hello all - I'm having a small problem with the mysql startup script that ships with MySQL-3.23.56-1. I'm running on RedHat Linux. It works fine, but I have a backup server that runs a script...
1
by: Paradigm | last post by:
Does anyone know how I can use vba in access to run a script that is stored as a file. I can make a connection to mysql database and run sql statements but this sql statement is very long (creates...
6
by: Heavy | last post by:
Ciao a tutti, sto creando una applicazione in python, che deve fungere anche da server web... non ho assolutamente problemi a prendere i parametri di una 'GET', mi limito a fare il parsing della...
14
by: mistral | last post by:
Need php script to create mySQL database programmatically; since hosting configuration may not allow create database from script, script also need eliminate/rewrite all restrictions in appropriate...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.