No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
[CODE=php]$sql="select * from `game` where `game_no`='3' ORDER BY `game_row`; $result=mysql_query($sql) or exit(mysql_error()); print '<table>' $i=1; while ($row=mysql_fetch_assoc($result)) { $curGR="gamerow$i"; $gamerow=explode(',',$$curGR); print '<tr>'; for($c=0;$c<9;$c++) { print '<td>'; if($gamerow==0) { print [...input...] } else { print $gamerow[$c]; } print '</td>'; } print '</tr>'; } print '</table>';[/CODE]
Try including [CODE]X-Mailer: PHP\r\n[/CODE] in the message header. There could be so many other reasons, but see how you get on with that.
[url]http://php.net/manual/en/function.mail.php[/url]
[CODE]$newfilecontents=file_get_contents('file1.txt').file_get_contents('file2.txt');[/CODE]
Why not redirect the user once the file is uploaded, and remove the need to press back?
have you tried [icode]is_object[/icode] instead of [icode]is_array[/icode]?
Html: [CODE]<form method="post" .... <select name="day"> <option="1">1</option> ... </select> <select name="month"> <option="MAY">MAY</option> ... </select> <select name="year"> <option="2010">2010</option> ... </select> <input type="submit" /> </form> [/CODE] PHP: [CODE=php]<?php if ($_POST) { $query="INSERT INTO [I]tablename[/I] `date` VALUES ('{$_POST['day']}-{$_POST['month']}-{$_POST['year']}')"; $result=mysql_query($query); } ?>[/CODE]
You cannot output anything before using [ICODE]setcookie()[/ICODE]. Presumably you have used [ICODE]print[/ICODE] in the 'header.php' file, on line 12. Set your cookies first then print.
Change line 22 to [ICODE]mysql_query($query) or exit(mysql_error());[/ICODE] and see what you get.
You have three main options, I can think of, in setting up such a script: 1. One form processes all records (including repeats) and process_form() handles all of this. 2. A form for each record set and process_form() only handles that record set. (You can then redisplay the form with …
The End.
allincorporated