$result = mysql_query("SELECT * FROM $table WHERE `id`='$id'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $contact = $row['contact']; $expdate = $row['expdate']; $deadline = $row['deadline']; $html = file_get_contents("/path/public_html/template/template.html"); echo $html; } I am trying get the html in template.html as $html, which i can but inside template.html i need to have the vars. like i have
Greetings $client,
We are ready to start the new edition of x
Your Current ad will expire on $expdate. If you would like
continue advertising with us, The deadline for submitting
changes is $deadline.