I running a PHp script to present a table on the database, but i get the error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
The line below is query line
echo "<td><img src='" .$row['ImageURL'] ."' style='width: 200px; height: 150px;' />."-".$row['Name'] ."</td>"";
You have an unnecessary and faulty concatenation after
/>and an extra quote on the end:The whole thing is better done without concatenations in a double-quoted string. Wrap the array elements in
{}.However, you probably ought to be sure you have escaped these for HTML output with
htmlspecialchars():