Nope... it dont work.
Wont validate the user... keeps saying badlogin on a good id + pass
I am just going to search for a pre made cheatcode cms and use it.
If anyone here knows of a good free one im me please. :(
User Profile
Collapse
-
I am kind of lost, do i need to remove the session and "$_REQUEST['login']" too. I dont under stand this at all. I am trying to learn here but this is bizzar to me..
This is what i came up with hope i understood u :)
[PHP]<?
if(isset($_POST['formSubmit'])) {
$username = $_POST['username'];
$password = $_POST['password'];
$sql = "select * from users where login = '$login' and...Leave a comment:
-
How to remove register_globals dependency from my code?
As i posted before i started this project on a premade script from a uk site a year back but i never knew at that time after 5000000000 hours of hard work and now ppl tell me it was bad to use RG...
So i need an experts help removing the requirement for it, and i know ask the maker his site is gone and host banned... :( So i am all alone here....
I made a zip file with all the files backend files (commen,procces s) and... -
Internal Server Error
The server encountered an internal error or misconfiguratio n and was unable to complete your request.
Please contact the server administrator, [removed] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server...Leave a comment:
-
No i tried it, "Internal Server Error"
Plus he said it is bad so i guess i need to make it better :)Leave a comment:
-
-
Ok but how?
How do i re-rite it? Or where do i start the register globals requirement was in the code before i started...
[PHP]<?php
session_start() ;
$login = $_REQUEST['login'];
$password = $_REQUEST['password'];
$sql = "select * from users where login = '$login' and password = '" . sha1($password) . "'";
$result = mysql_query($sq l...Leave a comment:
-
How to enable register_globals on a host that has disabled it.
OMG, my users cant login now since 5 days ago my free host turned off Register Globals and when i try to turn it on it says "server misconfiguratio n"
How can i fix this..... -
I need to make it better i guess....
Ok, let me explane it better.
The form rate game is on the item.php, when you choose vote and hit send it posts the info to the item.php and the sql here is supost to eather send it if you havent voted allready thats why it checks for your ip.
And eather says:
Thanks, and records your ip or it says error.
But it just dont want to do it now for some reason...Leave a comment:
-
-
How can i fix this anyone?
Please help.... :(
Why is it now defined..
[PHP]if ($ratevalue)
{
$ratecount = 0;
$ratetotal = 0;
$ip = getenv(remote_a ddr);
$sql = "select * from ratings where itemid = $itemid and ip = '$ip'";
$result = mysql_query($sq l ,$db);
if ($myrow = mysql_fetch_arr ay($result))...Leave a comment:
-
Ok that works:
[code=php]
if( ! empty($ratevalu e) )
{
[/code]
But it disables the other code, like if already voted error. and so on...
When i hit vote it used to say thanks, or sorry you already voted!
But now nothing..
So should i remove the if statment and make it better?Leave a comment:
-
It keeps yelling at me about this line of code:
[code=php]
if ($ratevalue) {[/code]
Why is it a Undefined variable?
Do i need to ad a definition to it...
If i change it to this:[code=php]
if ($ratevalue = 0)
{[/code]
It goes away and load the info.. but that does 0 mean...Leave a comment:
-
line 131 - last error...
Why is it undefined?
[PHP]
if ($ratevalue) {
$ratecount = 0;
$ratetotal = 0;
$ip = getenv(remote_a ddr);
$sql = "select * from ratings where itemid = $itemid and ip = '$ip'";
$result = mysql_query($sq l ,$db);
if ($myrow = mysql_fetch_arr ay($result)) {
...Leave a comment:
-
Oh god, look at my url...
Its hell opened up and ate my site...
http://911gamerz.exofire.net/item.php?itemid=2
um.. you mean this: [code=php]$result = mysql_query($sq l ,$db);[/code]
I placed my old item.php before i changed the code and its better not a lot but sone lots of error please help me fix this i dont understand undefined ?...Leave a comment:
-
Thanx for the post, man i am going to cry here...
It says this now....Leave a comment:
-
Duh of course i did lol i aint blond, i dont get it..
i did the error thingie:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I just looked and i put a " by misteak lol.
But nothing shows up now and still no info...Leave a comment:
-
Sorry, it used to get the info by the id=2 and on my page i have code echo it.
[PHP]Game Name: <?php printf($pagetit le); ?>
CATEGORY: <?php printf($categor y); ?>
[/PHP]
and so on, but it acts like it dont even get the info now?
Just comes out empty...
I find it strange over night not toutching it it just dies.... how?Leave a comment:
-
I am going out of my mind, select * from not working.
Man i am getting a tumor over this. Ok this morning i noticed my game page was all messed up.
I moved my site to a new server banner less :) it was all ok last night but now hell.
So i re did the code and cleaned it up but now it dont work at all.
It selects the box art but thats it!
I know its sending the itemid because in the url it shows it.
item.php?itemid =2
[PHP]<?
$itemid... -
Breana replied to Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resourcein PHPNM, i got it fixed, i looked at the error and said oops..
I had it selecting the table like this :SEARCH_TERMS
In stead of like this: search_terms
Now the error has vanished and it updates the search keys :)
Now if i can just figure out how to display the top 10 search words i am all good...Leave a comment:
No activity results to display
Show More
Leave a comment: