There is nothing wrong with planetsims code, and the only error you would get on that line (besides parse error, but there was no parse error in his code) is that it is not a valid mysql result resource. What you probably didn't do is replace table_name with the name of your table (which you said was movies).
I'll show you how to do what you want and explain how it works, but don't expect people to write code for you. You should figure out how to adapt the code to your needs as it's all rather straight forward.
Now I want to display some of this data on my page. So lets say I need to get data from ID: "1"--> field: "img". How do I do that?
$query = mysql_query("SELECT img FROM movies WHERE ID='1'");
// now to display the results of that
$a_row = mysql_fetch_array($query);
// that just created an array called $a_row and you can call the fields by $a_row['field_name']
// You have to plug in YOUR FIELD NAME, don't use field_name
// now to display it
echo $a_row["img"];
// notice how i plugged in the field name
To select all the fields in your database
SELECT * FROM your_table (replace your_table with the name of your table)
If you watn to select all the fields where id = 1
SELECT * FROM your_table WHERE id=1
(make sure you use proper caps. id and ID and Id are all different).
Now if you have 4 rows, and want to display all 4 rows, you'd use a while statement
I have 4 rows on this table and there labeled ID: 1,2,3,4.
You'd normaly only use the id to in the WHERE part of your select, you'd want to call each particular field as I did above using it's field_name
$query = mysql_query("SELECT * FROM your_table"); // replace your_table with the name of your table
while ($a_row=mysql_fetch_array($query)) {
echo $a_row["image"] . "<br>\n";
echo $a_row["spec"] . "<br>\n";
echo $a_row["sum"] . "<br>\n";
echo $a_row["dl"] . "<br><br>\n";
// end while loop
}
That's really all there is to it. The above code would display the values for each of those fields for each row in your table. so if you have 4 rows, it would display the value for image, spec, sum, dl, then repeat that 3 more times. It keeps going until there are no more rows in your database.
Search for PHP/MySQL tutorials. If you still can't find any, post back and we can give you some good ones, but there are literally thousands out there. For more on the SELECT statement, SELECT()
Cgraz