Hi
I’m trying to change my script from mysql connection to PDO and I managed to fetch data but there’s an input box and based on the input fetched data is supposed to change but the results just disappear for me when i click ‘search the table’
[php]
<form name="search_form" method="POST" action="apps.php">
Search: <input type="text" name="search_box" value="" />
<input type="submit" name="search" value="Search the table" >
</form>
<table width="90%" cellpadding="5" cellspace="5">
<tr>
<td>Name</td>
<td>Category</td>
<td>Details</td>
</tr>
<?php while( $row = $stmt->fetch()) { ?>
<tr>
<td><?php echo $row['app_name']; ?></td>
<td><?php echo $row['category']; ?></td>
<td><a href="template.php?id<?php echo $row['appID']; ?>">Details</a></td>
</tr>
<?php } ?>
[/php]