johnchooiyoke wrote:$sql2 = 'SELECT region, type, job, location, designation, description, wwwreg, wwwdesc, datecreated, datemodified, deleteforwww, moreinformation FROM openings where no = "$no"';
Change your quotes around. "$no" won't work. The query you're passing to MySQL is SELECT region, type, job, location, designation, description, wwwreg, wwwdesc, datecreated, datemodified, deleteforwww, moreinformation FROM openings where no = "$no" so you're getting back an empty result set, hence the error. Try this:
$sql2 = "SELECT region, type, job, location, designation, description, wwwreg, wwwdesc, datecreated, datemodified, deleteforwww, moreinformation FROM openings where no = '$no'";