Ben yeniden kullanımı ve ben bir atama için yapılan eski web sitesi çalışıyorum, ama ben bütün site genelinde aynı biçimi devam edebilmek istiyorum.
Bu html / php:
<!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" />
<title>askBU</title>
<meta name="Keywords" content="ask, BU, Bournemouth University" />
<meta name="Description" content="Welcome to askBU. Your One shop stop for student needs" />
<link href="css/css1.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<div id="header"></div>
<div id="menuMain">
</div>
<div id="contentWrapper">
</div>
<div id="content">
<?php
include("coursesearchresults.php");
?>
</div>
<div id="footer">
</div>
</body>
</html>
Bu aramaya çalışıyorum php dosyası im:
<?php
// Connection Database
$search = $_POST ['Search'];
mysql_connect("xxxxx", "xxxxx", "xxxx") or die ("Error Connecting to Database");
mysql_select_db("xxxxxxx") or die('Error');
$data = mysql_query("SELECT * FROM course WHERE CourseName LIKE '%".$search."%'")
or die('Error');
print "<h2>Search Results:</h2>"
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th>Course Name:</th> <td>".$info['CourseName'] . "</td> ";
Print "<th>Course Description:</th><td>".$info['CourseDescription'] . "</td> ";
Print "<th>Course Leader:</th><td>".$info['CourseLeader'] . " </td></tr>";
}
Print "</table>";
?>
i want to use the same css but i need the table displayed in the webpage, but im getting an error on line 12. i'vr tried doing the above and i tried to just add the php code to my content div, but neither way is working, what am I doing wrong??
teşekkürler