[eluser]davy_yg[/eluser]
Hello,
I have this codes:
Code:
<html>
<head>
<meta http-equiv="Content-Type" c charset=utf-8">
<title>untitled</title>
</head>
<body>
<h2>Create</h2>
<?php echo form_open('site/create'); ?>
<p>
<label for="title">Title:</label>
<input type="text" name="title" id="title" >
</p>
<p>
<label for="content">Content</label>
<input type="text" name="content" id="content" />
</p>
<p>
<input type="submit" value="Submit" />
</p>
<?php echo form_close(); ?>
<h2>Read</h2>
<?php if(isset($records)) : foreach($records as $row) : ?>
<h2><?php echo $row->title; ?></h2>
<div><?php echo $row->content; ?></div>
<h2>No records were returned.</h2>
<?php endif; ?>
</form>
</body>
I get this error:
Parse error: syntax error, unexpected T_ENDIF in C:\xampp\htdocs\Codeigniter_213\application\views\options_view.php on line 34
Why is it?