Nice way to dump out the names and values of the variables coming from a posted form:
foreach ( $_POST as $key => $value ) {
echo $key . ” ” . “=” . ” ” . $value;
echo ”<BR>”;
}
Nice way to dump out the names and values of the variables coming from a posted form:
foreach ( $_POST as $key => $value ) {
echo $key . ” ” . “=” . ” ” . $value;
echo ”<BR>”;
}
Getting the current date into variables
Get the parts of the current date into workable variables….
$cday = date(‘d’,time());
$cmonth = date(‘m’,time());
$cyear = date(‘Y’,time());
Keeping your copyright years current
A small way to at least keep your pages looking current…and keep your copyright protection going…
<SCRIPT LANGUAGE=”JavaScript”>
<!– today=new Date();
y0=today.getFullYear();
document.write(y0);
// end hiding —>
</SCRIPT>
Just stick this after a start year, and you are off to the races!
Checking for failed database search
One way of detecting of a select statement returned any results. Using this currently…
$result = mysql_query(“SELECT * FROM some_table where some_field = ’some_value’ “, $connection);
if (!$result)
$count=0;
else
$count =mysql_num_rows($result);
if ($count == 0) {
die(“Database query failed: ” . mysql_error());
For those that have visited my site and wondered why there are not any prices listed….here is the explanation. There is a base cost per month, and if you are looking for something that will compete against the ‘commodity website hosting’ companies that you can find by a simple search, Evidia will not be able to come close.
The monthly Evidia Ltd fee is a ‘managed hosting’ fee. That means that your website gets 100% attention and makes sure that your website stays healthy. You don’t need to worry about it. Just pop a message to us on any changes you need, and we can take care of it. This includes your email server as well.
This type of service is perfect for those that need to keep their attention on their own business. Staying focused on what you are good at and let us take care of your website and email services.
Please contact us if you would like further information on website services…from domain to hosting, we can help you thru the entire process.