Похожие чаты

Which kind of errors and what are you using for

your website?

1 ответов

10 просмотров

<!DOCTYPE html> <html lang="en"> <head> <title>View</title> <!-- Bootstrap core CSS--> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom fonts for this template--> <link href="bootstrap/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- Custom styles for this template--> <link href="bootstrap/css/apna.css" rel="stylesheet"> </head> <?php include 'header.php'; ?> <h1 align="center">DETAILS</h1> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if(! $conn ) { die('Could not connect: ' . mysql_error()); } $sql = 'SELECT VendorCode, ServiceProvider, AMC, ReferenceNo, ServiceFrom, ServiceTo, POAmount, POExpireIn, CurrentStatus, ResponsiblePerson, Remark, Category FROM details'; $sql2='Select role from user'; mysql_select_db('table'); $retval = mysql_query( $sql, $conn ); if(! $retval ) { die('Could not get data: ' . mysql_error()); } ?> " <table border = '2' align="center"> <?php echo "<tr>"; echo "<th>Vendor Code</th>"; echo "<th>Service Provider</th>"; echo "<th>AMC</th>"; echo "<th>Reference No.</th>"; echo "<th>Service From</th>"; echo "<th>Service To</th>"; echo "<th>PO Amount</th>"; echo "<th>PO ExpireIn</th>"; echo "<th>Current Status</th>"; echo "<th>Responsible Person</th>"; echo "<th>Remark</th>"; echo "<th>Category</th>"; echo "<th>Action</th>"; echo "</tr>"; while($row = mysql_fetch_assoc($retval)) { if($row['ServiceTo']>date("Y-m-d")){ echo "<tr>"; echo "<td>".$row['VendorCode']. "</td>"; echo "<td>".$row['ServiceProvider']. "</td>"; echo "<td>".$row['AMC']. "</td>"; echo "<td>".$row['ReferenceNo']. "</td>"; echo "<td>".$row['ServiceFrom']. "</td>"; echo "<td>".$row['ServiceTo']. "</td>"; echo "<td>".$row['POAmount']. "</td>"; echo "<td>".$row['POExpireIn']. "</td>"; echo "<td>".$row['CurrentStatus']. "</td>"; echo "<td>".$row['ResponsiblePerson']. "</td>"; echo "<td>".$row['Remark']. "</td>"; echo "<td>".$row['Category']. "</td>"; if($sql2=1){ echo "<td><form action='edit.php' method='POST'><input type='hidden' name='VendorCode' value='".$row["VendorCode"]."'/><input type='submit' name='submit-btn' value='Edit' /></form></td>"; } echo "</tr>"; } else{ echo "<tr bgcolor=\"#ff4d4d\">"; echo "<td>".$row['VendorCode']. "</td>"; echo "<td>".$row['ServiceProvider']. "</td>"; echo "<td>".$row['AMC']. "</td>"; echo "<td>".$row['ReferenceNo']. "</td>"; echo "<td>".$row['ServiceFrom']. "</td>"; echo "<td>".$row['ServiceTo']. "</td>"; echo "<td>".$row['POAmount']. "</td>"; echo "<td>".$row['POExpireIn']. "</td>"; echo "<td>".$row['CurrentStatus']. "</td>"; echo "<td>".$row['ResponsiblePerson']. "</td>"; echo "<td>".$row['Remark']. "</td>"; echo "<td>".$row['Category']. "</td>"; if($sql2=1){ echo "<td><form action='edit.php' method='POST'><input type='hidden' name='VendorCode' value='".$row["VendorCode"]."'/><input type='submit' name='submit-btn' value='Edit' /></form></td>"; } echo "</tr>"; } } ?> </table> <?php mysql_close($conn); ?> </html>

Похожие вопросы

Обсуждают сегодня

Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
А чем вам питонисты не угодили?😂
.
79
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
пацаны, как-нибудь можно панель задач заблюрить, что она была похожа на kde или винду 7, 11?
В
16
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Dim Dim, [02.07.2024 11:07] DB 0x62 Dim Dim, [02.07.2024 11:07] DB 0x66 Dim Dim, [02.07.2024 11:07] кто пояснит что это?
Dim Dim
14
So total 101m burned Today?
Simu
18
Ошибка: segmentation fault (core dumped) Код: pastebin.com/BEsNNSSV Сообщение от компилятора: отсутствует ОС: Arch Linux Ядро: x86_64 Linux 6.9.7-arch1-1 Процессор: Intel Cele...
sec
4
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Карта сайта