hello
i made page with a form to insert data to the mysql database (with copy paste as i started learning yesterday) it works i put the code in a div
i want to add a delete link for the records listed but it doesnt work in echo.
how can i do it ?
<html>
<head>
<!-- TinyMCE -->
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
<link rel="stylesheet" type="text/css" href="qwe.css" />
</head>
<body>
<div class="qwe">
<form action="verigiris.php" method="post">
<textarea cols="65" rows="5" name="yazi"></textarea>
<input type="submit" />
</form>
</div>
<?php
$con = mysql_connect("localhost","user","123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("b33_2821424_phpsite", $con);
$result = mysql_query("SELECT * FROM gunluk");
while($row = mysql_fetch_array($result))
{
echo "<div class='qwe'>";
echo $row['yazi'];
echo "</div>";
}
mysql_close($con);
?>
</body>
</html>
i made page with a form to insert data to the mysql database (with copy paste as i started learning yesterday) it works i put the code in a div
i want to add a delete link for the records listed but it doesnt work in echo.
how can i do it ?
<html>
<head>
<!-- TinyMCE -->
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
<link rel="stylesheet" type="text/css" href="qwe.css" />
</head>
<body>
<div class="qwe">
<form action="verigiris.php" method="post">
<textarea cols="65" rows="5" name="yazi"></textarea>
<input type="submit" />
</form>
</div>
<?php
$con = mysql_connect("localhost","user","123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("b33_2821424_phpsite", $con);
$result = mysql_query("SELECT * FROM gunluk");
while($row = mysql_fetch_array($result))
{
echo "<div class='qwe'>";
echo $row['yazi'];
echo "</div>";
}
mysql_close($con);
?>
</body>
</html>