[wplug] Need suggestions
Romano, Christopher
cjr6 at exchange.cis.pitt.edu
Sat Oct 20 12:56:12 EDT 2001
In my opinion, PHP would be trivially easy to learn for you. Quick, what
does the following function do?
function blackbox() {
$conn = mysql_connect("localhost","username","secret)
or die("Could not connect to MySQL database.");
// Connection info.
$select_db = mysql_select_db("test", $conn);
// Selects database and calls $conn
$result = mysql_exec("SELECT snake_id FROM info WHERE
type='python'");
// sets up the search procedure
$num = mysql_num_rows($result);
// numbers the results.
echo "$result pythons in database.<br>";
// prints the sentence
}
Well how did I do?
More information about the wplug
mailing list