Cybercash example not working

admin

Administrator
Staff member
Implementing CyberCash, I am having trouble understanding Nathan's examples at <!-- m --><a class="postlink" href="http://www.phpbuilder.com/columns/nathan20001225.php3">http://www.phpbuilder.com/columns/nathan20001225.php3</a><!-- m -->

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(<!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->',
'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);
 
Back
Top