I'm working on a fairly simple website, built in PHP, to allow members to post their old items for sale. I've been beta testing it for two weeks, and everything has worked perfectly so far- but then one of my beta testers came to tell me it's not working properly in Opera.
I know many people here have said that problems in PHP with different browsers must be the HTML rather than the PHP, but this is not the case here. I've only been looking into this for a day or so but the two problems I've found are:
-Once logged in, all the menus visible only to users logged in appear properly. Users can also submit an item, which is an option only available to registered users as well. But when they go to the User Account page, they receive an error message- even though the script to check for Not Logged In is the same for all three items. And it's all in PHP.
[PHP]
$alreadyin=$_GE T["userid"];
if(!$alreadyin) {
echo '<font color="blue"><b >Error</b>: You are not logged in!</font>';
}
if($alreadyin){
[/PHP]
And the viewable code goes in the $alreadyin loop.
-I had an item waiting to be approved on the database- an Admin presses a button, and a section of the database is changed from process=0 to process=1. I ran this script in Firefox, and the item appeared in the Items for Sale list and disappeared from the Items to Approve list. But when I went back to Opera, the item appeared in BOTH lists. It then disappeared a couple minutes later. Similarly, if I submit an item it takes a minute or two for Opera to register it on the Items to Approve list. This is almost closer to a SQL problem, but based on the first issue I'd guess that this is due to the PHP code as well.
Is there a time lag using PHP in Opera? Does anyone know anything that could be causing this problem that would allow me to fix this delay? I don't want my users to have to wait two minutes after they click the log in button to be able to use their accounts!
I know many people here have said that problems in PHP with different browsers must be the HTML rather than the PHP, but this is not the case here. I've only been looking into this for a day or so but the two problems I've found are:
-Once logged in, all the menus visible only to users logged in appear properly. Users can also submit an item, which is an option only available to registered users as well. But when they go to the User Account page, they receive an error message- even though the script to check for Not Logged In is the same for all three items. And it's all in PHP.
[PHP]
$alreadyin=$_GE T["userid"];
if(!$alreadyin) {
echo '<font color="blue"><b >Error</b>: You are not logged in!</font>';
}
if($alreadyin){
[/PHP]
And the viewable code goes in the $alreadyin loop.
-I had an item waiting to be approved on the database- an Admin presses a button, and a section of the database is changed from process=0 to process=1. I ran this script in Firefox, and the item appeared in the Items for Sale list and disappeared from the Items to Approve list. But when I went back to Opera, the item appeared in BOTH lists. It then disappeared a couple minutes later. Similarly, if I submit an item it takes a minute or two for Opera to register it on the Items to Approve list. This is almost closer to a SQL problem, but based on the first issue I'd guess that this is due to the PHP code as well.
Is there a time lag using PHP in Opera? Does anyone know anything that could be causing this problem that would allow me to fix this delay? I don't want my users to have to wait two minutes after they click the log in button to be able to use their accounts!
Comment