jimdidr Posted September 7, 2008 Share Posted September 7, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/ Share on other sites More sharing options...
.josh Posted September 7, 2008 Share Posted September 7, 2008 That makes no sense whatsoever. Please try again. Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/#findComment-636054 Share on other sites More sharing options...
DarkWater Posted September 7, 2008 Share Posted September 7, 2008 I have no idea what you just said. Honestly. =( Please be a bit clearer? >_> Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/#findComment-636056 Share on other sites More sharing options...
jimdidr Posted September 7, 2008 Author Share Posted September 7, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/#findComment-636074 Share on other sites More sharing options...
.josh Posted September 7, 2008 Share Posted September 7, 2008 You need to echo out your vars not just put some single quotes around them (which btw single quotes won't parse variables. echo $event; etc... Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/#findComment-636082 Share on other sites More sharing options...
jimdidr Posted September 7, 2008 Author Share Posted September 7, 2008 Thank you thank you, i thought i had tried that. but i was missing part of that mini-code for etc Variable. Quote Link to comment https://forums.phpfreaks.com/topic/123149-solved-creating-layout-for-information-that-is-collected-from-a-mysql-database-via-php/#findComment-636139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.