$articleid=$_GET['id']; $rs=new COM("adodb.recordset"); $rs->open("select * from [article] where [articleid]=".$articleid,$conn,1,1); $articletitle = $rs->Fields(1)->value; $articlecontent = $rs->Fields(2)->value;