Click here to Skip to main content
14,775,288 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Parse error: syntax error, unexpected '<' in C:\wamp64\www\database\mydb.php on line 30

What I have tried:

echo "<tr><td>", $row['Accession ID'], "</td><td>", $row['Title'], "</td><td>", $row['Abstract'], "</td><td>",$row['Sample size'], "</td><td>",$row['Tissue type'], "</td><td>",$row['PMID'], "</td><td>",$row['Platform ID'], "</td><td>",$row['Platform details'], "</td><td>",$row['Raw data'],</td></tr>";
Updated 28-Jan-20 20:49pm

1 solution

Because you are missing a double quote:
<td>",$row['Raw data'],</td></tr>";
<td>",$row['Raw data'],"</td></tr>";
Member 14729284 29-Jan-20 2:00am
Thank you so much...It works,but now i am getting new errors:

! ) Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in C:\wamp64\www\database\mydb.php on line 25
Call Stack
# Time Memory Function Location
1 0.0006 360312 {main}( ) ...\mydb.php:0
2 0.0026 408608 mysqli_fetch_assoc ( ) ...\mydb.php:25

( ! ) Notice: Trying to access array offset on value of type null in C:\wamp64\www\database\mydb.php on line 29
Call Stack
# Time Memory Function Location
1 0.0006 360312 {main}( ) ...\mydb.php:0

Line no:25 while($row = mysqli_fetch_assoc($result))
line no:29 echo "", $row['Accession ID'], "", $row['Title'], "", $row['Abstract'], "",$row['Sample size'], "",$row['Tissue type'], "",$row['PMID'], "",$row['Platform ID'], "",$row['Platform details'], "",$row['Raw data'],"";
OriginalGriff 29-Jan-20 4:33am
So go through them one by one, looking at the error message and the code it refers to - it gives you the file and line numbers for each - and use the debugger to work out what the problem is. We can't do that for you - we don;t have your code and couldn't run it under the same circumstances you do if we did!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900