Join 307,116 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,000 people online right now. Registration is fast and FREE... Join Now!
I'm in a PHP class and I have no idea what I'm doing. I'm frustrated with the instructor because the homework he gives has nothing to do with the chapters in the book...anyway...
So we have this assignment that we have a schema (PHPnn) and a new table called EMPFF. We are supposed to sort it by department, count the number of records, total the salary column and average the total salary.
That would all be peachy if I could even get the table to show up, I just get "Query Failed".
It's not finished, I don't have all of the column names in there, but I have no idea how to get it to connect. I've tried a few different ways. Can anyone see anything obviously wrong?
i'm not sure why you have two $sql variables in the first $sql the sql statement is wrong. i'm not sure if those are tables or colums it looks like colums:
i'm not sure why you have two $sql variables in the first $sql the sql statement is wrong. i'm not sure if those are tables or colums it looks like colums: