Jump to content

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


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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.