Ich habe eine Index.php die funktioniert unter PHP 7.3 Fehlerfrei unter PHP 8.0 Kommt die Fehlermeldung.
Syntax Error
Unexpected token '<', "<style> .r"... is not valid JSON
Wenn ich alles Zwischen <style> bis </style> rauslösche geht es auch in PHP 8.0. Was hat sich da geändert?
Der betroffende Code ist:
<style>
.rounded {
Background-color: #52BBE7;
padding-left: 5px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
width: 140px;
height: 100px;
border-radius: 80px;
}
.Avatarlabel {
Background-color: #52BBE7;
}
.info-right {
position: absolute;
top: 18px;
left: 110px;
display: flex;
padding-right: 5px;
}
</style>
<?php
.
.
.