Re: New user asks for help with connect func tion.
Erich Dollansky <[email protected]>
| Newsgroups | gmane.comp.db.mysql.windows |
|---|---|
| Organization | oceanare pte ltd |
| Message-ID | <[email protected]> |
Hi, [email protected] wrote: > The simple connection script I am using is as follows: > ============================================================== > <?php > $conn = mysql_connect("LocalHost", "wesmith", "my password"); > echo $conn; > ?> > ============================================================= > > I saved this script as mysqlconnect.php. > When I access the script with my web browser I expect to see.. > Resource id #1 > > Instead I see nothing at all. No error message. Simply a blank screen. > I do not wonder. 'conn' is an internal representation o the connection. It is nothing a human could read. You must create SQL statements, send them over to the server using 'conn' and then display the results returned. Just study the MySQL documentation. Erich -- MySQL Windows Mailing List For list archives: http://lists.mysql.com/win32 To unsubscribe: http://lists.mysql.com/[email protected]