Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions basics/First ten Prime no .php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<html>
<head>
<title>First ten Prime no </title>
<body>
<h1>
<?php

echo "First Ten Prime no are:.<br>";
echo "<br>";

for($i=0;$i<=30;$i++)
{
$count=0;
for($j=1;$j<=30;$j++)
{
if($i%$j==0)
{
$count++;
}

}
if($count==2)
{
echo $i." ";
}

}

?>
</h1>
</body>
</html>

29 changes: 29 additions & 0 deletions basics/Multiplication Table 5 to 15.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<html>
<head>
<title>Multiplication Table 5 to 15</title>
</head>
<body>
<h1>
<?php

echo "Multiplication table 5 to 15";
echo "<table border=\"1\" style='\border-collapse:collapse'>";

for($r=5;$r<=15;$r++)
{
echo"<tr>\n";
for($c=1;$c<=10;$c++)
{
$p=$c*$r;

echo "<td>$p</td>\n";
}
echo "</tr>";
}

echo"</table>";

?>
</h1>
</body>
</html>
24 changes: 24 additions & 0 deletions basics/Series.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

<html>
<body>
<h1>
<table border=1>
<?php
echo "Series displayed as:.<br>";
for($i=2;$i<=50;)
{
?>
<tr><td>
<?php
echo "$i"
?>
</td></tr>
<?php
$i=($i*2)+1;
?>
<?php
}
?>
</h1>
</body>
</html>
22 changes: 22 additions & 0 deletions basics/basic color.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

<html>
<body>
<font color="red">
<h1>

<?php
echo "Hello World"."<br>";

?>
<br>
</font>
<font color="green">
Hello World
<br>
<font color="blue"><br>
Hello World
</h1>
</font>
</font>
</body>
</html>