borris83
03-29-2009, 01:21 PM
Hi, I have some source code downloaded and planning to use it in my site. I came across a function and I need a small clarification
Here is the code:
<?php
// function for showing an error message in a table
function errormess($hiba){
?>
<table width=100% align=center bgcolor=#CCCCCC cellspacing=1 cellpadding=3>
<tr><td bgcolor=#CCCCCC><b>The following error(s) found:</b></td></tr>
<tr><td bgcolor=#FFFFFF align=center><?=$hiba?></td></tr></table>
<?php
}
In
<?=$hiba?>, i see that an equal sign is placed before the variable $hiba. What is this? Does is work like
echo $hiba;
Anyway, I tried to place an = sign before a variable name and placed in a php page and it doesn't work. So, can you pls tell me what
<?=$hiba?> is doing?
Here is the code:
<?php
// function for showing an error message in a table
function errormess($hiba){
?>
<table width=100% align=center bgcolor=#CCCCCC cellspacing=1 cellpadding=3>
<tr><td bgcolor=#CCCCCC><b>The following error(s) found:</b></td></tr>
<tr><td bgcolor=#FFFFFF align=center><?=$hiba?></td></tr></table>
<?php
}
In
<?=$hiba?>, i see that an equal sign is placed before the variable $hiba. What is this? Does is work like
echo $hiba;
Anyway, I tried to place an = sign before a variable name and placed in a php page and it doesn't work. So, can you pls tell me what
<?=$hiba?> is doing?