Welcome Guest, Not a member yet? Register   Sign In
Delete a column from a database
#1

[eluser]zend[/eluser]
Hello everyone.
I have a problem with a button to delete.
How to make a call ID that is not in foreac loop?

I want that button to be outside table where we sort the results from the database.
The problem is because the button where I want to be outside the loop foreac and shows me an error ...

I set the screenshot and see how I imagined, I want that button to be above and not in each column.

my VIEW is HERE

Code:
/// I whant this use delete button
         <a >id; ?&gt;">Delite</a></span>

    <tbody>
    &lt;?php foreach ($query as $row):?&gt;    
    <tr>
      <td>&lt;?php echo $row->id;?&gt;</td>
          <td>&lt;?php echo $row->title;?&gt;</td>
          <td>&lt;?php echo $row->author;?&gt;</td>
          <td>&lt;?php echo $row->parent;?&gt;</td>
          <td>&lt;?php echo $row->date_created;?&gt;</td>

          /// NOT THIS IN TABLE
      <td><a >id; ?&gt;">Delite</a></td>
    </tr>
    &lt;?php endforeach?&gt;
  </tbody>


Messages In This Thread
Delete a column from a database - by El Forum - 02-11-2011, 04:05 PM
Delete a column from a database - by El Forum - 02-11-2011, 06:43 PM
Delete a column from a database - by El Forum - 02-12-2011, 07:09 AM
Delete a column from a database - by El Forum - 02-12-2011, 12:25 PM
Delete a column from a database - by El Forum - 02-12-2011, 12:54 PM
Delete a column from a database - by El Forum - 02-12-2011, 03:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB