You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'phyconinja'

We found 2,828 matches.


<< < > >>

Viewing 1-30 of 2,828 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 95295

1.

Happy

Topic: Better way of getting name from id

Posted: 07/19/08 07:33 AM

Forum: Programming

Ok, thanks. I will just continue to use the database then.


2.

None

Topic: Better way of getting name from id

Posted: 07/19/08 06:09 AM

Forum: Programming

Yes, I said "without using a database". So how would I do it if I put the names and IDs in another file? both with registartion of new accounts and with getting the names. Or would it be better to use the database?


3.

None

Topic: Better way of getting name from id

Posted: 07/19/08 05:55 AM

Forum: Programming

What would be the best way to get the username from a user on my site, when I have the user ID. At the moment I get the name by using a Database, and tell it to give me the username where the user ID is the user ID I give it. But is there another way? Where I dont have to conect to the database all the time! Using PHP of corse.

If I didnt make my self clear, I want a different way of doing this, without using a database (If thats a good idea):

mysql_query("SELECT username FROM userdatabase WHERE userid='$userid'")

4.

None

Topic: Suggestions For My Php App.

Posted: 06/29/08 03:13 PM

Forum: Programming

Maybe you shouldn't let people post php codes on your site?

http://www.websticky.co.cc/pages/info-97 33.html


5.

Goofy

Topic: Dreamweaver...

Posted: 06/22/08 05:20 AM

Forum: Programming

At 6/21/08 11:58 PM, sasuke2910 wrote: well dude you got to know at least some html after that it's basically a drag and dorp editor

It don't have to be. I use Dreamweaver, but I never use it as a drag and drop editor.


6.

None

Topic: PHP for a noob...

Posted: 06/22/08 04:46 AM

Forum: Programming

http://w3schools.com/php/default.asp
There's some good tutorials there on how to use some of the different functions and how some things work there.

http://www.newgrounds.com/bbs/topic/3728 90/666
Tutorials made by users on this site, contains tutorials on how to make different parts of a website.


8.

None

Topic: PHP Problems

Posted: 05/19/08 05:59 PM

Forum: Programming

At 5/19/08 05:43 PM, AcidX wrote:
When trying to View Page:
Warning: Missing argument 1 for displayNews(), called in /home/willjb/public_html/index.php on line 458 and defined in /home/willjb/public_html/index.php on line 62
default:
displayNews();
}

Maybe you need a numer in there? eks. displayNews(0);


9.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/14/08 04:32 AM

Forum: Programming

Sorry for tripple post, but I figured it out. Apperently I can use $navn instead of $_SESSION['navn']. and since I used that for something else, it changed the $_SESSION['navn'] variable. Didnt know that, thanks for your help everyone.


10.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/14/08 03:57 AM

Forum: Programming

I just found out that it changes to the user-id of the person you send the PM to. that should be proof enough for you that it happens on that page.


11.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/14/08 03:50 AM

Forum: Programming

At 5/14/08 02:25 AM, WoogieNoogie wrote:
At 5/13/08 08:03 PM, phyconinja wrote: So it has to be in this code.
If it's the session itself that's changing, then it's not in this code. A second part of the session isn't being stated.

Could you display the code of the output page?

Well, I noticed that every time I tryed sending a PM I got loged out. So I just checked the $_SESSION['navn'], and it was changed to the user id. It ONLY happens when I send a PM, so it has to be on that page. Even tho I cant find anything in my code that changes $_SESSION['navn'].

When I check the variable I just used

<?= $_SESSION['navn']; ?>

It shows the username before I send a pm, but id after.


12.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/13/08 08:03 PM

Forum: Programming

At 5/13/08 06:52 PM, Seachmall wrote: Is it if you output the variable its changed or is it changed when its sent to the DB?

The session changes. when I try getting the information on another page, the username is switched with the user id. But I have no idea how that happens. But it only changes when I try sending a PM. So it has to be in this code.


13.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/13/08 03:11 PM

Forum: Programming

At 5/13/08 08:25 AM, polym wrote:
$navn=$_SESSION['navn'];
$passord=$_SESSION['pass'];

$navn=mysql_real_escape_string($navn);
$getname=mysql_query("SELECT password FROM un WHERE name = '$navn'");
can be changed to $getname = mysql_query("SELECT password FROM un WHERE name = '" . mysql_real_escape_string($_SESSION['navn '] . "'");.

I know, but I like my way, it's easyer to read when your browsing thru your code fast.

At 5/13/08 02:07 PM, WoogieNoogie wrote: I don't see where you ever set the session variable...

I do that on the login page. But the problem only happen when I try sending a PM. And I didn't have the problem before I created the PM system. So it should be in the code I linked to, since its the only place where the problem happens.


14.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/13/08 04:48 AM

Forum: Programming

At 5/13/08 03:25 AM, WoogieNoogie wrote:
At 5/12/08 06:22 PM, phyconinja wrote: Im not sure why I did that, but its to make sure its a string. Is that pointless?
Very much so. But, it wouldn't be doing anything. Can you show the code of the functions? I think that's where the error is occurring.

Ok, that's what I thought. Dunno why I still got it there.

Here's the function that checks if the user is logged in. But I doubt the problem is here, I use it on every page, but the problem is only on 1.

function checkLogInState(){
session_start();
if(isset($_SESSION['navn']) && isset($_SESSION['pass'])){
$navn=$_SESSION['navn'];
$passord=$_SESSION['pass'];

$navn=mysql_real_escape_string($navn);
$getname=mysql_query("SELECT password FROM un WHERE name = '$navn'");
if(!$getname){
return FALSE;
}else{
while($pass = mysql_fetch_array($getname)){
$password=$pass['password'];
}
if($passord==$password){
return TRUE;
}else{
return FALSE;
}
}
}else{
return FALSE;
}
}

15.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/12/08 06:22 PM

Forum: Programming

At 5/12/08 04:20 PM, blindnil wrote: Did you include 'session_start();' (without the quotes) ?

yeah, I use it inside one of my own functions, the one that I use to check if the user is loged in.

At 5/12/08 06:16 PM, WoogieNoogie wrote: What is this for?

$sessien="lol";

Im not sure why I did that, but its to make sure its a string. Is that pointless?


16.

None

Topic: Can someone look over my code?(PHP)

Posted: 05/12/08 02:35 PM

Forum: Programming

I'm working on a site, and I bumped into a little problem. And I just cant seem to find out whats happening. I only have the problem on this page, nowhere else on my site. So it has to be somewhere on this page. If anyone could help me find my problem I would be really thank full.

So, I made a PM system for my site, but every time I try sending a PM the session variable with the name for the person logged in, changes to the user-id of that person. But I cant even find anywhere in my code where I change the variable.

Here's my site in .txt form: http://ptestsite.awardspace.com/sendpm.t xt

List of some variables:
$sessien = The sender
$_SESSION['navn'] = The username of the loged in person (this is what changes)
$navn and $_POST['res'] = The person the PM is to
$melding and $_POST['mes'] = the content of the PM
$emne and $_POST['sub'] = the Subject of the PM

The code might look random and unorganized. But there's a system there, and I can easily see what each part of my code does. And if some variables have weird names it's cuz some got Norwegian names. (Like: "Navn" is name in Norwegian)

Thank you for taking your time helping me!


17.

None

Topic: loking to hire a skilled programmer

Posted: 03/06/08 04:26 AM

Forum: Programming

At 3/5/08 11:07 PM, Skilla wrote: Maybe you should hire a fucking english teacher fucking retard.

Maybe you should start acting like a civilized human being?


18.

None

Topic: mysql_real_escape _string problem

Posted: 03/03/08 09:31 AM

Forum: Programming

At 3/3/08 07:09 AM, Sir-Davey wrote: Here's a nifty function you can put in your header (or at least before you use any _SESSION, _COOKIE, _POST, etc variables) that will reverse the atrocious effect of magic_quotes

Wouldn't it be safer to just use stripslashes() on the things you need to? Instead of using it on everything?


19.

None

Topic: loking to hire a skilled programmer

Posted: 03/03/08 09:15 AM

Forum: Programming

At 3/2/08 09:38 PM, NeillS wrote:
At 3/2/08 07:58 PM, phyconinja wrote:
At 3/2/08 07:43 PM, Celtrum wrote: My brain is being stretched to the limits trying to understand him!
I'm guessing your limits aren't that high then? Cuz he's not that hard to understand if you try. Ive seen worse.
Huh? I feel from reading this topic that if I were to have studied for a test and then read this my brain would have just fallen apart.

So your saying that I, who have English as a second language, understands him better then you guys who have spoken English all your life?


20.

None

Topic: loking to hire a skilled programmer

Posted: 03/02/08 07:58 PM

Forum: Programming

At 3/2/08 07:43 PM, Celtrum wrote: My brain is being stretched to the limits trying to understand him!

I'm guessing your limits aren't that high then? Cuz he's not that hard to understand if you try. Ive seen worse.


21.

Elated

Topic: mysql_real_escape _string problem

Posted: 03/02/08 01:59 PM

Forum: Programming

Thanks a lot


22.

None

Topic: Basic Programming Help

Posted: 03/02/08 01:35 PM

Forum: Programming

gotoAndStop(33);
?

and next time, Flash Forum for ActionScript!


23.

None

Topic: mysql_real_escape _string problem

Posted: 03/02/08 01:11 PM

Forum: Programming

I have a form the user is able to input some info into. (comment box)
To be safe from sql injection I used mysql_real_escape_string on the input, and to be safe from people using html or javascrip I used htmlspecialchars after taking it back out from the database.

The problem is that when I user types ' or ", it becomes /' and /".
Should I go back to just using htmlspecialchars on the input, an forget about escaping it? Or is there a better way of doing it?

Thanks


24.

None

Topic: Edit post

Posted: 03/02/08 12:53 PM

Forum: Programming

At 3/2/08 12:44 PM, citricsquid wrote:
At 3/2/08 12:43 PM, kernalphage wrote:
At 3/2/08 12:40 PM, citricsquid wrote: And it will never happen because of abuse.
abuse, or retroactively changing arguments. would be nice if it appeared like the "reply" function in the reviews page, with the orange arrow clearly defining what's new about the post.

now i'm off to post this in the how-to part... because you know hes gonna repost.
Newgrounds has over a million members, they're not going to open it up to people going back after 2 weeks and changing their post to say "FUCKING BLACKS" with a big picture of a dick. It would inevitably happen.

They should add it to the regs.. And the Mods could decide to give a person the power to alter his posts. It most likely wont happen, but it would be cool if people that's not likely to abuse it could do it.


25.

None

Topic: Altalk

Posted: 03/02/08 06:53 AM

Forum: Programming

At 3/2/08 06:45 AM, Wreckages wrote: You might wanna look into buying from an actual hosting company if you're serious about this. Most free hosting companies don't offer PHP support.

Where did you get that idea from? Never been a problem to me. The problem is usualy the limits they set if you don't buy.


26.

None

Topic: loking to hire a skilled programmer

Posted: 03/01/08 03:21 PM

Forum: Programming

At 3/1/08 03:08 PM, Jessii wrote: Most of the people that have replied to this topic have websites of their own/have done stuff that you want in the past and know how involved it is. I highly doubt that you have enough $ to pay people for their services given the type of site that you want to create.

He said he pays per job. Therefor one person dont have to make the entire thing. But by paying some people to do smaller things, he wont get all the things done, but it will get him somewhere.


27.

None

Topic: loking to hire a skilled programmer

Posted: 03/01/08 12:39 PM

Forum: Programming

If you pay Im interested. Send me a PM with what you want to have done and what you will pay for it.


28.

None

Topic: jpeg or gif

Posted: 02/16/08 06:05 AM

Forum: Programming


29.

None

Topic: Forum Misplacements

Posted: 02/15/08 05:30 AM

Forum: Programming

Programming Post about Programming/Scripting here (but keep ActionScript-related posts to the Flash Forum)!

If that doesn't help, then I don't think a sticky will.


30.

None

Topic: PHP security

Posted: 02/13/08 02:46 PM

Forum: Programming

At 2/13/08 01:13 PM, henke37 wrote: sessions can not be edited by the client.

Is there a way for users to read them tho?


All times are Eastern Standard Time (GMT -5) | Current Time: 02:17 PM

<< < > >>

Viewing 1-30 of 2,828 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 95295