Похожие чаты

Which kind of errors and what are you using for

your website?

1 ответов

16 просмотров

<!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>

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта