SkyRanger Posted February 23, 2007 Share Posted February 23, 2007 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>"; } Quote Link to comment Share on other sites More sharing options...
paul2463 Posted February 23, 2007 Share Posted February 23, 2007 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>"; } ?> Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 23, 2007 Share Posted February 23, 2007 Add this at the top: ini_set('display_errors', 1); error_reporting(E_ALL); Quote Link to comment Share on other sites More sharing options...
SkyRanger Posted February 23, 2007 Author Share Posted February 23, 2007 Thanks jesirose the code you game me showed me the problem, forgot to pull the username from the database. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.