|
|
Instructions for adapting the PHP sample code from http://www.cems.uwe.ac.uk/~cjwallac/mysql/queryemp.txt to run on willow.
- servername:
(in line 16:
if(!($dblink=mysql_connect("kenny.netlab.cems.uwe.ac.uk","cwstudent"
,"cwstudent"))) {)
Change "kenny.netlab.cems.uwe.ac.uk" to your servername
"willow.olemiss.edu" or your server's IP address
"130.74.110.16"
- username and password:
(in line 16:
if(!($dblink=mysql_connect("kenny.netlab.cems.uwe.ac.uk","cwstudent"
,"cwstudent"))) {)
Change "cwstudent" to your own username (keep the double
quote sign).
Change "cwstudent" to your password for the above username
(keep the double quote sign).
- select your database
(in line 21: if(!(mysql_select_db("chris",$dblink))) { )
Change "chris" to your database name "instruct".
- Add the following line of code into the sample file
(right after line 11 "print($text);
"):
$query = $_GET["query"];
|