this is the error log
error_log
PHP Warning: mysql_connect() [<a href='function. mysql-connect'>functi on.mysql-connect</a>]: Access denied for user 'root'@'localho st' (using password: YES) in /home/.../public_html/....com/includes/connection.php on line 5
User Profile
Collapse
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user
i got this error after uploading all the files in www folder. i'm using wamp.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localho st' (using password: YES) in /home/.../public_html/....com/includes/connection.php on line 5
Database connection failed: Access denied for user 'root'@'localho st' (using password: YES)
how can i fix this? i'm really new to this. -
please help me publish my site using PHP & MySQL.
I now have completed my site using basic php/mysql
Thanks to all who helped me with those errors I got.
I use a ftp to publish my static website
but don't how with PHP & MySQL
and the securities.
Please guide me or post me a link for tutorials. -
This is now solved thank you.
you were right too. and so this is where its solved.
Thanks to all of you.
Code:$query = "UPDATE subjects SET menu_name = '{$menu_name}', position = {$position}, visible = {$visible} WHERE id = {$id}"; $result = mysql_query($query, $connection);
Leave a comment:
-
-
SQL SYNTAX ERROR help
The subject update failed.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = 6' at line 5.
THis error always shows when a menu is being edited.
Code:$query = "UPDATE subjects SET menu_name = '{$menu_name}', position = {$position}, visible = {$visible}, WHERE id = {$id}";
-
Please help with this error in SQL syntax.
The subject update failed.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = 6' at line 5.
This is in the edit_subject.ph p page.
I dont know whats wrong with the query i;v had.
[HTML]<?php require_once("i ncludes/connection.php" ); ?>
<?php require_once("i ncludes/functions.php") ;... -
i' change the subj in the table and its doing great now with the help of the many here. thanks.Leave a comment:
-
Error: Database query failed: Unknown column 'subj' in 'where clause'
Database query failed: Unknown column 'subj' in 'where clause'
What does this error mean and how should it be fix? -
-
Okay. But then I'm gonna do that later. I think I'm gonna have to do and learn this on my own for now. After all you don't need a dog, you actually own lots of dogs here.Leave a comment:
-
Mercy please. Have mercy.. Woohff woohff!
I can be your dog instead!
Anyway, please provide me a link to the instructions to manupulate the GUI of the phpadmin.
It dont seem right, dyou know what are syntax to write in the console to make my links visible?Leave a comment:
-
It got me days to find out that an underscore is a problem.
God bless you Markus
And oh I'm sorry. I'm not sure if i'd be willing to be your slave.
since you only give me the hint. :P
Thanx.Leave a comment:
-
Code:<?php function confirm_query($result_set) { if (!$result_set) { die("Database query failed: " . mysql_error()); } } function get_all_subjects() { global $connection; $query = "SELECT * FROM subjects ORDER BY position ASC"; $subject_set =
Leave a comment:
-
Thanx.
I really think theres no parenthesis missing in this code. since i've been figuring this since yesterday. And I really need help.
Code:<?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php include("includes/header.php"); ?> <table id=structure> <tr> <td
Leave a comment:
-
I got this Parse error: syntax error, unexpected T_STRING, expecting '(' in
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\stu dy_group\includ es\functions.ph p on line 19
I got this error and this syntax is from 8 to 19th line.
Code:<?php $subject_set = get_all_subjects(); while ($subject = mysql_fetch_array($subject_set)) { echo "<li>{$subject["menu_name"]}</li>";
No activity results to display
Show More
Leave a comment: