Php Syntax help for a noobie
<p>Im working on a noobie app to pull some dates from the database and then a year later send me an alert (with cron). So far im struggling a bit and am trying to make a page which does my maths which I can work on building up.</p>

<p>So far ive been debugging all day and reading tutorial after tutorial but am still getting errors. Very frustrating :)</p>

<p>My code looks like this....</p>

<pre><code>&lt;?php
$con = mysql_connect("localhost","root", "etc");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  mysql_select_db("db", $con);

$result = mysql_query('SELECT CheckDate FROM Data') or exit(mysql_error());
while ($row = mysql_fetch_array($result))
{
extract($row);

$validfromdate = CheckDate;

$alert=strtotime("+1 year", $validfromdate);

echo $alert;

?&gt;
</code></pre>
