jama Posted May 11, 2010 Share Posted May 11, 2010 Hi One quick little issue. I want to display a table for all the activities that are in a table, with a check box in another column stored in an array with the name of that activity. I think this is the right way to approach it but have screwed up with the "" '' .. within the table. Could someone take a 2 second look and see what they think. <?php require("includes/sesh.inc"); require("includes/header.inc"); require("includes/db.inc"); require("includes/menu.inc"); $currentuser = $_SESSION['uid']; echo "<h1>Select Activities you wish to partake in</h1>"; //display full list of people in the database with option to edit or delete $query = "SELECT * FROM activities"; $result = mysql_query($query); echo "<form action='useractivities.php?submit=yes' method='post'>"; echo "<p><table border='1'><tr><th>Activity</th><th>Opt In</th></tr>"; while ($row = mysql_fetch_array($result)) { extract($row); echo "<tr><td>".ucwords(strtolower($activitytitle))."</td><td>" ."input type="checkbox" name="acts[]" value="$activitytitle"". "<td></tr>"; } echo "</table>"; echo "<input type='submit' value='time'>"; echo "</form>"; require("includes/footer.inc"); ?> Jama Link to comment https://forums.phpfreaks.com/topic/201408-check-box-array-table-woes/ Share on other sites More sharing options...
litebearer Posted May 11, 2010 Share Posted May 11, 2010 just a quick look says this line has " problems echo "<tr><td>".ucwords(strtolower($activitytitle))."</td><td>" ."input type="checkbox" name="acts[]" value="$activitytitle"". "<td></tr>"; Link to comment https://forums.phpfreaks.com/topic/201408-check-box-array-table-woes/#findComment-1056740 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.