Jump to content

[SOLVED] Problem


SkyRanger

Recommended Posts

Not sure exactly what the problem is here, can anybody give me an idea, I am not getting any errors or anything.

 

$resulticon = mysql_query("SELECT * FROM clients WHERE username='$username'");

while($rowc = mysql_fetch_assoc($resulticon)) {
    extract($rowc);
	  $payicon = "";
    if($payment == "Paypal") {
        $payicon = "<img src='../images/payment/paypal.gif' alt='paypal'>";
    } elseif($payment == "2CO") {
        $payicon = "<img src='../images/payment/2checkout.gif' alt='2Checkout'>";
    } elseif($payment == "Mail") {
        $payicon = "<img src='../images/payment/mailinpayment.gif' alt='Mail in Payment'>";
    }
echo "<center>$payicon</center>";
}

Link to comment
https://forums.phpfreaks.com/topic/39809-solved-problem/
Share on other sites

try this one out and see if you get errors

<?php
$resulticon = mysql_query("SELECT * FROM clients WHERE username='$username'") or die('Error in Query: ' . mysql_error());

while($rowc = mysql_fetch_assoc($resulticon)) {
    extract($rowc);
	  $payicon = "";
    if($payment == "Paypal") {
        $payicon = "<img src='../images/payment/paypal.gif' alt='paypal'>";
    } elseif($payment == "2CO") {
        $payicon = "<img src='../images/payment/2checkout.gif' alt='2Checkout'>";
    } elseif($payment == "Mail") {
        $payicon = "<img src='../images/payment/mailinpayment.gif' alt='Mail in Payment'>";
    }
echo "<center>$payicon</center>";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/39809-solved-problem/#findComment-192266
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.