Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete link

Status
Not open for further replies.

2bulent2

Technical User
Jan 7, 2009
24
TR
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>
 
you may find this post useful from my blog. i have posted the code in this forum from time to time too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top