Hi,
I am new to PHP and connecting to databases. So please forgive my ignorance.
I've setup a MYSQL database on godaddy.com and have data in it; however, I
can't manipulate any of the data from my php code.
i know that it's authenticating the first part of the code because it gives
an error message if I purposely put the wrong username or password. However,
if i purposely put the wrong database name "sellerlistings", nothing
happens. It keeps giving an error message on my $query line of code. I can
learn syntax on my own, but I desperately need help to simply connect to the
database! Please help me.
Grant
<?php
$link1= @mysql_pconnect("mysql.secureserver.net", "user", "password");
mysql_select_db("sellerlistings")
$query = "INSERT INTO tblhouses set HousesID='789', bedrooms='3', floors=
'4', baths='3', fireplaces='1', squarefeet='1800', price= '200000'";
$result = mysql_query($query);
?>
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/