PHP - Helppp
Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/website/public_html/scripts/connect.php on line 7
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'website'@'localhost' (using password: NO) in /home/website/public_html/scripts/connect.php on line 8 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/website/public_html/scripts/connect.php on line 8 Warning: mysql_query() [function.mysql-query]: Access denied for user 'website'@'localhost' (using password: NO) in /home/website/public_html/header.php on line 10 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/website/public_html/header.php on line 10 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/website/public_html/header.php on line 12 what should i do it keeps happening Similar TutorialsHey... I was going through this sample that was given in the class, but got confused at the first point "//change this to include your own database connect script. include "../../dbconnect.php";" and the database connection code is "<?php if ($_POST['submit']) { // connect to your database $connection = pg_connect("port=5432 dbname=rr_ds user=nobody"); if (!$connection) { die("Connection has failed: " . pg_last_error()); }?> " the database connection code is from a previous assignment which i did, but that was for a login page. The current assignment is to connect to the database and have data on it. |