Page 1 of 1

what are php tags

Posted: Sun May 28, 2006 1:44 pm
by franknu
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>

Posted: Sun May 28, 2006 1:48 pm
by Chris Corbyn
I was referring to the posting guidelines on this forum:

viewtopic.php?t=21171

Posted: Sun May 28, 2006 1:50 pm
by feyd
If you read your previous posts that moderators have edited you should notice a link to "posting code in the forums." Read it.

Here's an open link to it: viewtopic.php?t=21171