Implementing CyberCash, I am having trouble understanding Nathan's examples at http://www.phpbuilder.com/columns/nathan20001225.php3
I got the first example to work fine. But integrating MySql with his second step is a total puzzle for me.
- Where does he open the MySQL connection?
- Is the following pseudo-code:
if(mysql("your_db", $insert) == false){
mail('youremail@yourcompany.tld',
'Cyberauth Database Log Error','', $insert);
- If not, how do you connect to the db?
- Why did he use $db as a variable? $db is usually reserved for something like,
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$result = mysql_query("SELECT * FROM employees",$db);