user=serena
passwd=7777
db=home
table=guest
라고할때
$connection = mysql_connect("localhost","$serena","$7777");
mysql_select_home("$guest", $connection);
$result= mysql_query ("select id from guest", $connection);
$Total = mysql_num_rows ($result);
이부분이 맞게 되었는지 좀 봐주세요...
책에 있는 소스에 이쪽만 바꿔서 하면 된다고 했는데 연결이 안됩니다.
물론 mysql에서의 db생성과 user등록은 잘 되었습니다.
감사합니다.
다음과 같은 에러가 나거든요
Warning: MySQL Connection Failed: Access denied for
user: 'nobody@localhost' (Using password: YES)
in /usr/local/apache/htdocs/gprocess.php3 on line 51
Fatal error: Call to undefined function: mysql_select_home()
in /usr/local/apache/htdocs/gprocess.php3 on line 52