MCSR_logo.jpg (56K)
Home My MCSR Supercomputers Software Research Education
Login
Quick Links:

FAQs
Minicamp
Chemistry
insideHPC Blog
Current Jobs
Job History
Mathematica
Training
News
Contact Us

Instructions for adapting the PHP sample code from http://www.cems.uwe.ac.uk/~cjwallac/mysql/queryemp.txt to run on willow.

  1. 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"
  2. 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).
  3. select your database
    (in line 21: if(!(mysql_select_db("chris",$dblink))) { )
    Change "chris" to your database name "instruct".
  4. Add the following line of code into the sample file
    (right after line 11 "print($text); "): $query = $_GET["query"];

Last Modified:June 08, 2007 10:31:51.   Copyright © 1997-2012 The Mississippi Center for Supercomputing Research. All Rights Reserved.   The University of Mississippi
Valid RSS