Break up an array for a query
Posted: Tue Mar 15, 2005 10:47 pm
Hi guyz,
I'm having problems with the following part of the script:
before the submit
after:
I'm getting all the right information outputed on the original. I need the $row[7] to be identified as $di for submission to the database so it can change the binary table in the DB....
Thanks
feyd | Please use
I'm having problems with the following part of the script:
before the submit
Code: Select all
if($row[6]== 1)
{
$start = 'yes';
}
else {
$start = 'no';
}
echo "<tr bgcolor=\"$row_color\">
<td align=\"left\" >$row[0]</td>
<td align=\"left\" >$row[1]</td>
<td align=\"left\" >$row[2]</td>
<td align=\"left\" >$row[3]</td>
<td align=\"center\" >$row[4]</td>
<td align=\"center\" >$row[5]</td>
<td align=\"center\" >$start</td>
<td align=\"center\" ><select name=\"$row[7]\">
<option value=\"\">-</option>
<option value=\"1\">start</option>
<option value=\"0\">sit</option></td>
";
$row_count++;
}
$di = $row[7];Code: Select all
if (isset($_POST['submit'])) //redirect if cookie is not set
{
session_name('user_name');
session_start();
$page_title = "My Drivers";
include('./nascarheader2.inc');
$di=$_POST['di'];
$di=explode(" ", $di);Thanks
feyd | Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]