This code to PHP, help me, please!

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
adicooldude
New php-forum User
New php-forum User
Posts: 10
Joined: Mon Apr 07, 2014 2:26 am

Re: This code to PHP, help me, please!

Post by adicooldude » Mon Apr 07, 2014 3:06 am

hi, can you provide those errors, it helps in solving the issue.

adicooldude
New php-forum User
New php-forum User
Posts: 10
Joined: Mon Apr 07, 2014 2:26 am

Re: This code to PHP, help me, please!

Post by adicooldude » Mon Apr 07, 2014 3:16 am

this works.

Code: Select all

<?php
$n = $_GET ['n'];
for($i = 1; $i <= $n; $i ++) {
	$y = (2 * $i) + 1;
	echo $y . '<br>';
}
?>

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest