html - remove php comment code from inspection -
this question has answer here:
my php code inside html , when open html file file not run code.so used inspect element of chrome browser , shows php code comment.how ca uncomment because in code uncommented. code:
<form id="data" class="form-geofence" role="form" method="post" action="geofencedata.php"> <h2 class="form-geofence-heading">update geofence</h2> <?php include_once'./import.php';?> <?php include_once'./connectionusers.php'; /*** query database ***/ $sql=pg_query("select name geofence"); echo "<select name='category_id'>"; while($row = pg_fetch_array($sql)) { /*** create options ***/ echo "<option value=''>"; echo $row['name']; echo "</option>"; } echo "</select>"; } catch(pdoexception $e) { echo 'no results'; } ?>
make sure file has extension .php, , page run on server.
Comments
Post a Comment