Jump to content

[SOLVED] Creating layout for information that is collected from a MySQL database via PHP.


jimdidr

Recommended Posts

I'm trying to input different $VARs into a tabel that i created useing Photoshop sliceing (its just easyer if you want your table to look funky.)

 

How do i do this, as i can't write the code for the table inside the <?php  and ?> tags...

 

 

Any help highly appriciated...

Uhm ok, lett me try again...

 

What is wrong with this code..?

 

here are lines 21-34...

(more code above, but without the table info it works, just does not look good.)

echo	'<table id="Blog" width="399" height="190" border="0" cellpadding="0" cellspacing="0">';
echo	'<tr> <td width="252" height="29" colspan="2">';
'$event'
echo	'</td> <td width="147" height="29">';
'$dato'
echo	'</td> </tr> <tr> <td width="399" height="135" colspan="3">';
'$ingress'
echo	'</td> </tr> <tr> <td width="217" height="25">';
'$gallerilinker'
echo	'</td> <td width="182" height="25" colspan="2">';
'$underskrift'
echo	'</td> </tr> </table>';

++$i; } } else { echo "Uhm, could not find any articles in the database... Did you backup?!?!"; }?>

 

Its supposed to be HTML table with variables put into it using a PHP page.

 

The error i get is

Parse error: syntax error, unexpected T_ECHO in /usr/home/jim/public_html/foto/blogin.php on line 24

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.