მაქვს ასეთი კოდირება
<?php
$db = new PDO ('mysql:host=localhost;dbname = site','more','123321');
$sql = 'SELECT * FROM reklama';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css">
<title>serchcom</title>
</head>
<body>
<table class="table">
<?php include ( "blocks/baner.php" ); ?>
<tr>
<?php include ("blocks/left_reklam.php"); ?>
<td width="60%" class="tbale_tr_td3">
<?PHP echo $myrow['text']; ?> </td>
<?php include ("blocks/right_reklam.php"); ?>
მინდა ბაზიდან გამოვიტანო სასურველი ჩანაწერი და ბრაუზერში ამას მიწერე :
Notice: Undefined variable: myrow in C:\xampp\htdocs\serchcom\index.php on line 21ვერ გავერკვიე რატო და იქნებ დამეხმაროთ ..მადლობა წინასწარ