Hi there,
Since very long time i am trying to write some sort of payment module.
I have this table
CREATE TABLE `paytype` (
`paytype_id` int(11) NOT NULL auto_increment,
`paytypes` varchar(50) default NULL,
`pay_active` varchar(50) default NULL,
PRIMARY KEY (`paytype_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
INSERT INTO `paytype` VALUES (1, 'Pay Flow Pro', 'no');
INSERT INTO `paytype` VALUES (2, 'Pay Pall', 'yes');
INSERT INTO `paytype` VALUES (3, 'Check/Money Order', 'no');
Depends of value " yes " or "no", i would like to show form for payment.
I have started on something, but dont know how to continue from this part.
Here is what i have :
<?
$sel_paytype = mysql_query("SELECT * from paytype Where paytypes = 'Pay Pall' and pay_active = 'yes'");
$sel_pall = mysql_query("SELECT * from paypall");
$row_pall = mysql_fetch_array($sel_pall);
if ($pay_mode_t == "paypall")
{ ?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="form1">
<? } else {?>
</form>
I was thinking if any1 can help me with this function, based on what type of payment is on to brig form.
<?
$sel_paytype = mysql_query("SELECT * from paytype Where paytypes = 'Pay Pall' and pay_active =' yes'");
if (mysql_num_rows($sel_paytype) <> 0) {
?>
Thanks