This code is not display data and not show any error.so reply me what is error.

<html>
<head>
<title>insert new post</title>
</head>
<body>
<form method="post" action="insert_post.php" enctype="multipart/form-data">
<table align="center" border="10" width="600">
<tr>
<td align="center" colspan="5" bgcolor="yellow">
<h1>insert new post here</h1></td>
</tr>
<tr>
<td align="right">post title</td>
<td><input type="text" name="title" size="40"></td>
</tr>
<tr>
<td align="right">post auther</td>
<td><input type="text" name="auther"></td>
</tr>
<tr>
<td align="right">post image</td>
<td><input type="file" name="image"></td>
</tr>
<tr>
<td align="right">post content</td>
<td><textarea name="content" cols="40" rows="20">

Well, there isn't any code in there to display data, so what did you expect? ;) Did you post all of your code though? Seems like some is missing.

<html>
<head>
<title>insert new post</title>
</head>
<body>
<form method="post" action="insert_post.php" enctype="multipart/form-data">
<table align="center" border="10" width="600">
<tr>
<td align="center" colspan="5" bgcolor="yellow">
<h1>insert new post here</h1></td>
</tr>
<tr>
<td align="right">post title</td>
<td><input type="text" name="title" size="40"></td>
</tr>
<tr>
<td align="right">post auther</td>
<td><input type="text" name="auther"></td>
</tr>
<tr>
<td align="right">post image</td>
<td><input type="file" name="image"></td>
</tr>
<tr>
<td align="right">post content</td>
<td><textarea name="content" cols="40" rows="20">

It is a PEBKAC error,
a conceptual problem

this is an input form,
to display data there must be some code somewhere to
get the data from the DB
parse it to readable html
output to browser

that code would usually be found in the file referred by the action of the form, or in the file that file refers to
not in the input file

input
process
display

can't display in the code shown, as the post is not made yet

If you have copy n pasted the source from a functioning site, you are out of luck, serverside code does not get sent to the browser, only the parsed html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.