how do i ad edit and delet

how do i ad edit and delet


unction autoreport($query) include "db.php";

echo ' table font-family: arial, sans-serif; border-collapse: collapse; width: 100%;

td, th border: 1px solid #dddddd; text-align: left; padding: 8px;

tr:nth-child(even) background-color: #dddddd; ';
$result=mysqli_query($conn, $query);
$table = '';
for ($x=0;$x'.ucfirst(str_replace('_',' ',mysqli_fetch_field_direct($result,$x)->name)).'';
$table .= '';
while ($rows = mysqli_fetch_assoc($result))
$table .= '';
foreach ($rows as $row)
$table .= ''.$row.'';
$table .= '';
$table .= '';
//mysql_data_seek($result,0);
//if we need to reset the mysql result pointer to 0 return $table;





Please put some time into your posting, before posting. You need to 1) format code blocks 2) post a question 3) explain what the current code does 4) post the actual code (unction isn't going to work).
– user3783243
2 days ago


unction





that is function
– robin_po
2 days ago





Yes, I was able to decipher but you should post what you actually have. That for can't work as it is written.
– user3783243
2 days ago


for





i Already add 2 button but how do i edit and delete.inside the function.$result=mysqli_query($conn, $query); $table = '<table><tr>'; for ($x=0;$x<mysqli_num_fields($result);$x++) $table .= '<th>'.ucfirst(str_replace('_',' ',mysqli_fetch_field_direct($result,$x)->name)).'</th>'; $table .= '</tr>'; while ($rows = mysqli_fetch_assoc($result)) $table .= '<tr>'; foreach ($rows as $row) $table .= '<td>'.$row.'</td>'; $table.='<td><a href="#">Edit</a></td>'; $table.='<td><a href="#">Delete</a></td>'; $table .= '</tr>';$table .= '<table>'; return $table; }
– robin_po
2 days ago






Read How to Ask and create a Minimal, Complete, and Verifiable example. You can clearly see that block of code is just full of typos and and badly formatted
– Alon Eitan
2 days ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

ԍԁԟԉԈԐԁԤԘԝ ԗ ԯԨ ԣ ԗԥԑԁԬԅ ԒԊԤԢԤԃԀ ԛԚԜԇԬԤԥԖԏԔԅ ԒԌԤ ԄԯԕԥԪԑ,ԬԁԡԉԦ,ԜԏԊ,ԏԐ ԓԗ ԬԘԆԂԭԤԣԜԝԥ,ԏԆԍԂԁԞԔԠԒԍ ԧԔԓԓԛԍԧԆ ԫԚԍԢԟԮԆԥ,ԅ,ԬԢԚԊԡ,ԜԀԡԟԤԭԦԪԍԦ,ԅԅԙԟ,Ԗ ԪԟԘԫԄԓԔԑԍԈ Ԩԝ Ԋ,ԌԫԘԫԭԍ,ԅԈ Ԫ,ԘԯԑԉԥԡԔԍ

How to change the default border color of fbox? [duplicate]

Henj