News:

The "Support Requests" forum is now viewable by guests.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ghost

#16
@webzone

Ok, yeah if you do it that way you do need it, although I still think it's alot easier just to put double quotes for the outside.
#17
Quote from: webzone on November 30, 2005, 02:01:18 AM
Quote from: ghost on November 30, 2005, 01:31:01 AM
$SQL1 ="UPDATE userbase SET password ='$NEW_PW' WHERE username = '$lostpw' '';

You dont need double quotes on the variables.. just the outside, which makes it easier.

My solution didn't use double quotes, but single quotes, this is why they had to be escaped. I agree that your solution is simpler, but mine is faster to process (single quotes are always faster).

Single quotes shouldn't need to be escaped?
#18
Change to these? :: $SQL , $SQL2 ::

$SQL="SELECT email FROM `userbase` WHERE username = '$lostpw'";

$SQL2="SELECT password FROM `userbase` WHERE username = '$lostpw'";
#19
Javascript popup box?
#20
It would help if you copied and pasted the error as it shows up on the page. (Same page as before I'm guessing too?)
#21
Looks like it was just the way the line was written with those quotes.

mysql_error() will most likely be helpful in the future though.
#22
Support Requests / Re: PLESK SERVERS
November 30, 2005, 01:35:42 AM
The only reason I switched onto freepgs is because Plesk was always locking up or something for me  :-\

(Plesk just looks nicer and has more options)
#23
$SQL1 ="UPDATE userbase SET password ='$NEW_PW' WHERE username = '$lostpw' '';

You dont need double quotes on the variables.. just the outside, which makes it easier.

And if you want to actually see the error use this:

$result1=mysql_query($SQL1,$conn) or die(mysql_error());
#24
Support Requests / Re: ASP
November 29, 2005, 06:16:21 AM
Ok cool, thats all I needed to know.

:)

--Thanks,
Ghost.
#25
Support Requests / ASP
November 29, 2005, 05:22:49 AM
With the ASP Chat, it runs on a different server than the freepgs users do? (windows based or something..) 

Anyways.. was wondering if it was possible (for those who want it) to pay abit to get a small amount of space to run one of those chats for there site, sort of like an add-on?


--Thanks,
Ghost.
#26
Support Requests / Re: htaccess
November 28, 2005, 03:49:47 AM
It possible that you were on Plesk lasttime? Maybe thats why its not working this time...
#27
Support Requests / Re: Confused.
November 27, 2005, 08:37:00 PM
Looks like you found your account #?   

There was a fire so stuff was lost, sorry to say.

You just have to request an account reinstatment on this board:

http://newsys.freepgs.com/smf/index.php?board=2.0

And you can probably ask to have your domain set to it at the same time (You will also probably be on the freepgs side instead of Plesk now)




--Hopefully you had backups too.
#28
Support Requests / PHP Scripting
November 27, 2005, 07:11:40 AM
I have two three questions, the first is, how long does a 'session' in php last before it times out?

and:

          $timeactive="Update users set active=". time() .", logoff='0' where ID='{$_SESSION['ID']}'";

          $timeactive2=@mysql_query($timeactive);


why does the above code need the '@' symbol to function properly? All my other mysql_query's dont need it. (That line was used in a script written by someone else, which I use in my own site)

and lastley, with the timestamps, on my site they are determined by the time set on the server, right? So there is no way to set it to my time (+15 min) without altering the timestamp itself?
#29
Support Requests / Re: PHP4 ?
November 27, 2005, 06:09:54 AM
but he said they cannot 'downgrade to php5'

maybe what was meant is cannot downgrade to php4?
#30
Support Requests / Re: PHP4 ?
November 27, 2005, 05:30:15 AM
Why is it PHP5 would be a downgrade from 4?

QuoteWe cannot simply downgrade this machine to PHP5