Jump to content

How to code the insertion data based on table


shebbycs

Recommended Posts

Yes, it's possible.

 

Have you ever heard about databases?

 

yes even I had created all the field but how to call that for example I call like this only

 

$sql2 = mysql_query("SELECT *,DATE_FORMAT(Task_Date, '%d/%m/%Y %l:%i %p') AS Task_Date FROM task_report WHERE ID='$b' ORDER BY Task_Date") or die(mysql_error());
 echo "<body  bgcolor='#F5D16A'>";
 echo "<center><img src ='OK.gif'></center><br>";
 echo "<center><h2>OPERATION REPORT</h2>";
 echo "<table><tr><td><h3>LOCATION</h3></td><td><h3>:</h3></td><td><h3>".$a."</h3></td></tr></table></center>";
 echo "<center><table border = '1'>";
 echo "<tr><th>DATE & TIME</th><th>STAFF NAME</th><th>TASK</th><th>OPERATION</th><th>ACTION & RESULTS</th><th>CHECK BY</th></tr>";	 
  while($report = mysql_fetch_array($sql2))
 {
  echo "<tr align='center'><td>".$report['Task_Date']."</td>";
  echo "<td>".$report['Task_Name']."</td>";
  echo "<td>".$report['Task_Task']."</td>";
  echo "<td>".$report['Task_Operation']."</td> ";
  echo "<td>".$report['Task_Action']."</td> ";
  echo "<td>".$report['Check_By']."</td></tr> ";
 }
  echo "</table>";
Edited by shebbycs
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.