Hi all,
fwrite($fh, <?php $fields = array("url", "shoutcast_url", "site_name", "site_subtitle", "email_suffix", "twitter_username", "skype_name", "phone_number");
foreach ($fields as $field)
$$field = mysql_real_escape_string($_POST[$field]);
mysql_query("UPDATE config SET url='{$url}', shoutcast_url='{$shoutcast_url}', site_name='{$site_name}', site_subtitle='{$site_subtitle}', email_suffix='{$email_suffix}', twitter_username='{$twitter_username}', skype_name='{$skype_name}', phone_number='{$phone_number}'")
or die(mysql_error()); ?>);
Is there an easier way to fwrite this? (I know that won't work, but obviously it's very time consuming to format it correctly)
Thanks!