invalid args?
Posted: Tue Aug 08, 2006 3:59 pm
feyd | Please use
is it because the file its not picking up the database? any suggestions as to how i would go about correcting the problem?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
im getting the error
[b]Warning: Invalid argument supplied for foreach() on line 36[/b]
for this block of codeCode: Select all
foreach($fields_1 as $field => $value)
{
if(ereg("pass",$field))
$type = "password";
else
$type = "text";
echo " <tr><td style=\"text-align:right;
font-weight:bold\">$value</td>
<td><input type='$type' name='$field'
value='".@$$field."'
size='{$length_1[$field]}'>
</td></tr>\n";
}feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]