TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,011
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 547
  • Total: 548
  • lurkalot

Inserting snippet codes

Started by houston, November 04, 2005, 04:35:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

core

or open/close em properly like:

*start empty php block*

*close php as phpbloc has a open php precoded in it*
?>

*put in some html*
<img src="image source"><div align="center">and here comes the fabulous php block!</div>

*open php*
<?php

*put in some php*
thafabulousphpscript\}{as you see I dont know php/?||echo echo : 'lol';

*close php*
?>

*some more html below*
<img src="image source"><div align="center">the end the fabulous php block!</div>

*open php again because the php bloc has a close precoded in it*
<?php




please edit my post if I made a mistake about this :)

Rasyr

shouldn't need to open and close them like that as you can just use echo to write out the html code portions...

So, your example would look like this:

echo '<img src="image source"><div align="center">and here comes the fabulous php block!</div>';

thafabulousphpscript\}{as you see I dont know php/?||echo echo : 'lol';

echo '<img src="image source"><div align="center">the end the fabulous php block!</div>';


core

ok, thnks for the tip!


*I am a php n00b!

This website is proudly hosted on Crocweb Cloud Website Hosting.