Register for your free account! | Forgot your password?

You last visited: Today at 05:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP Error

Discussion on PHP Error within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2012
Posts: 66
Received Thanks: 28
PHP Error

PHP Code:
$work mysql_query(SELECT FROM Accounts); 
$work2 mysql_query(SELECT FROM Email); 
Habe auch schon versucht statt "SELECT * FROM Accounts" zu das in eine Var zu packen und dann mysql_query($var); zu machen geht aber auch nicht.

Quote:
Parse error: syntax error, unexpected T_VARIABLE in dashboard.php on line 4
Was ist da falsch?

Oder auch hier:

PHP Code:
   If($key $valid) {
    echo 
"Valid"
   }
    else {
    echo 
"Invalid";
   } 
Beispiel gemacht, auch ein T_IF Fehler....
Bierkiste™ is offline  
Old 03/28/2012, 15:19   #2
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
bei 1. sql anweisungen kommen immer in " also
PHP Code:
$work mysql_query("SELECT * FROM Accounts"); 
zum 2.

ein = ist ne Zuweisung

Du willst aber einen Vergleich daher ==

also

PHP Code:
if($key == $valid) {
echo
'vaile';
}
else {
echo
'invalid';

NotEnoughForYou is offline  
Old 03/28/2012, 15:29   #3
 
elite*gold: 0
Join Date: Mar 2012
Posts: 66
Received Thanks: 28
Ich habe es auch schon mit == versucht geht nicht

Quote:
Parse error: syntax error, unexpected T_IF in /dashboard.php on line 5
Bierkiste™ is offline  
Old 03/28/2012, 15:37   #4
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
das if klein, sonst sind keine Fehler drin ( in meiner Verbesserten Version ist das if ja klein, da ist jedenfalls kein Fehler drin, wenn noch einer kommt solltest du deinen ganzen Code zeigen )
NotEnoughForYou is offline  
Thanks
1 User
Old 03/28/2012, 15:43   #5
 
elite*gold: 0
Join Date: Mar 2012
Posts: 66
Received Thanks: 28
PHP Code:
<?php
$key   
$_POST["sec_key"];
$valid "goesvalid"

if($key == $valid){
 echo 
"Zugriff erlaubt!"
}
 else {
 echo 
"Zugriff nicht erlaubt!"
}
   
?>
Bierkiste™ is offline  
Old 03/28/2012, 15:48   #6

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Quote:
Originally Posted by Bierkiste™ View Post
PHP Code:
<?php
$key   
$_POST["sec_key"];
$valid "goesvalid"

if($key == $valid){
 echo 
"Zugriff erlaubt!"
}
 else {
 echo 
"Zugriff nicht erlaubt!"
}
   
?>
PHP Code:
<?php
$key   
$_POST["sec_key"];
$valid "goesvalid";

if(
$key == $valid){
 echo 
"Zugriff erlaubt!"
}
 else {
 echo 
"Zugriff nicht erlaubt!"
}
   
?>
boxxiebabee is offline  
Thanks
1 User
Old 03/28/2012, 15:50   #7
 
elite*gold: 0
Join Date: Mar 2012
Posts: 66
Received Thanks: 28
Geht
Bierkiste™ is offline  
Reply


Similar Threads Similar Threads
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g



All times are GMT +2. The time now is 05:50.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.