Forum: PHP Oct 10th, 2006 |
| Replies: 8 Views: 1,480 Re: Help Needed Yes, you are right and I made a mistake in the query I wrote. It should be:
$getopp="SELECT * from a_pokemon where Pokemon='".$getuser3[Opponent]."'"; |
Forum: PHP Oct 10th, 2006 |
| Replies: 5 Views: 1,302 Re: MySQL error showing when they shouldn't I found the error... it was stupid. Somehow the variable in wich I was trying to put the result of the query had alredy another result and that caused some kind of problem.
Thank you everybody!! |
Forum: PHP Oct 9th, 2006 |
| Replies: 5 Views: 1,302 Re: MySQL error showing when they shouldn't I alredy tryed echoing the query and executing it in phpmyadmin and it works. I printed the result of the query when I'm not logged in and it's 6 , but when I'm logged in it became 8. I tryed... |
Forum: PHP Oct 9th, 2006 |
| Replies: 8 Views: 1,480 Re: Help Needed Try to write the line like:
$getopp="SELECT * from a_pokemon where Pokemon=".$getuser3[Opponent];
I dont suggest switching between ' and " . You should decide wich one you prefer and always use... |
Forum: PHP Oct 3rd, 2006 |
| Replies: 5 Views: 1,302 MySQL error showing when they shouldn't Hello,
I'm building a website like MySpace, the address is http://pantarei.awardspace.com (http://pantarei.awardspace.com/) the website is wrote in Italian. It has members customizable profiles,... |
Forum: PHP Jun 22nd, 2006 |
| Replies: 5 Views: 1,309 Re: Redirecting - Newbie Question The best way to set authorization for each page is to use the sessions. The best way to do it is to set two sessions variable: one that contain the level of authorization (for the normal users 1, for... |
Forum: PHP May 29th, 2006 |
| Replies: 4 Views: 2,890 Re: mysql errors, from submit.php and index.php The problem is in the sintax of the if statement. When you write a if clause with two argument you shoulw write it like
if ( (firt argument) || (second argument) )
I think that's the problem with... |
Forum: PHP May 29th, 2006 |
| Replies: 4 Views: 1,214 Code The code of the session handler is
<?php
// Create a connection to the database
function mysql_session_open($session_path, $session_name) {
global $conn;
$conn=mysql_pconnect("localhost", "admin",... |
Forum: PHP May 28th, 2006 |
| Replies: 4 Views: 1,214 Users management I'm building a website for me and my friends that should include a forum and a chat. I'm developing the list of the friend but I don't know how to display wich users are online and which not. The... |