我的法典就是这样。 难道这不应该奏效? 我从我的SQL那里获得所有领域。
基本上,我想要从一页后发回信息,其号码是粗略的,这应该用来选择我的SQL的浏览数。
Here s my code from the first page:
$org = $_POST[ organization ];
header( Location: .$admin. ?org= .$org);
接着,我关于主页的法典:
ECHO <script> ;
ECHO document.getElementById("orgid").value=" .$org_id. " ;
ECHO document.getElementById("orgname").value=" .$org_name. " ;
ECHO document.getElementById("add1").value=" .$add_1. " ;
ECHO document.getElementById("add2").value=" .$add_2. " ;
ECHO document.getElementById("city").value=" .$city. " ;
ECHO document.getElementById("state").value=" .$state. " ;
ECHO document.getElementById("zip").value=" .$zip. " ;
ECHO document.getElementById("url").value=" .$url. " ;
ECHO document.getElementById("email").value=" .$email. " ;
ECHO document.getElementById("phone").value=" .$phone. " ;
ECHO document.getElementById("contact").value=" .$contact. " ;
ECHO document.getElementById("hours").value=" .$hours. " ;
ECHO document.getElementById("file").value=" .$file. " ;
ECHO document.getElementById("notes").value=" .$notes. " ;
ECHO document.getElementById("description").value=" .$description. " ;
ECHO </script> ;
这里还有与我的SQL联系的守则:
if (isset($_GET["org"]) && ($_GET[ org ] !== )) {
$org = $_GET[ org ];
$resorgfull = mysql_query("SELECT org_id, org_name, add_1, add_2, city, state, zip, url, email, phone, contact, hours, file_loc, notes, description FROM organization WHERE org_id=".$org.");
if (!$resorgfull) {
die( Invalid query: . mysql_error());
}