what are php tags
Posted: Sun May 28, 2006 1:44 pm
i been told to use php tags
i thought like <? ?> where the php tags there is any other of tags i should be aware of
here is where i been require to use tags
<?php
$username="localhost";
$password="abc123";
$database="contacts";
$db = mysql_connect("localhost", $username,$password);
mysql_select_db("contacts",$db);
$result = mysql_query("SELECT * FROM `First Name:` WHERE `Position:`",$db) or die(mysql_error());
$myvar= "Hello World";
printf("$myvar");
printf("Position: %s<br>\n", mysql_result($result,0,"Position:"));
$result= mysql_num_rows();
?>
</body>
</html>
i thought like <? ?> where the php tags there is any other of tags i should be aware of
here is where i been require to use tags
<?php
$username="localhost";
$password="abc123";
$database="contacts";
$db = mysql_connect("localhost", $username,$password);
mysql_select_db("contacts",$db);
$result = mysql_query("SELECT * FROM `First Name:` WHERE `Position:`",$db) or die(mysql_error());
$myvar= "Hello World";
printf("$myvar");
printf("Position: %s<br>\n", mysql_result($result,0,"Position:"));
$result= mysql_num_rows();
?>
</body>
</html>