created login and connection page in dreamweaver. all works fine locally. uploaded files and db to go daddy hosting account, changed connection page to their specifics and now i get errors.
when i go to the login page, i get the following errors:
[CODE]Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/content/k/i/n/kingevil/html/yips/smoking/Connections/connection.php:21) in /home/content/k/i/n/kingevil/html/yips/smoking/login.php on line 35
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/k/i/n/kingevil/html/yips/smoking/Connections/connection.php:21) in /home/content/k/i/n/kingevil/html/yips/smoking/login.php on line 35
then when i try to login, i get these errors:
[CODE]Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/k/i/n/kingevil/html/yips/smoking/login.php on line 50
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/k/i/n/kingevil/html/yips/smoking/login.php on line 55
Table ‘smoking.$usertable’ doesn’t exist
here are the lines the errors are referring to:
login.php on line 35:
[CODE]session_start();
login.php on line 50:
[CODE]mysql_select_db($database_connection, $connection);
login.php on line 55:
[CODE]$LoginRS = mysql_query($LoginRS__query, $connection) or die(mysql_error());
i’m sure this has to do with local vs live. i’m just not sure what to change.
also, when i imported the db into go daddy, they gave me a new ‘connections’ page to upload. it contained a line and i wasn’t sure what to change it to:
[CODE]$yourfield = ‘your_field’;