Need PHP expert
#1

Hi all

It looks like I can't ask for PHP help on this forum so I'll ask for person with good php experience

Basiclly I have one little problem so I need somebody who will help me, if someone is interested in, post it here or pm me!

Thanks!
Reply
#2

I don't think you need an expert for a little problem.
Reply
#3

Well, maybe not expert but good one! Who know what is he doing!
Reply
#4

Hello, wich type of help you need?
Thanks.
Reply
#5

You can ask in Everything and Nothing! (Hence, "Everything and Nothing").
Reply
#6

Okay than

I have some problems with $_GET, I have this link http://localhost/gf_ucp/index.php?action=profile;id=72 you can't open it, it's on mine localhost, so basiclly I have to get this id (witch is in this case 72) and store it in one variable
Reply
#7

There must be & instead of ; if you want seperate GET variables.
?action=profile&id=72

$_GET['action'] will be profile and $_GET['id'] will be 72.

Hope i understood you correctly.
Reply
#8

but look, I have this

PHP код:
        if($_GET['action'] == 'profile')
        {
            if(
$_SESSION['l_username'])
            {
                echo 
'<h2 style="text-align: center;">Pozdrav '.$_SESSION['l_username'].'!</h2><h5 style="text-align: center;">Ovo je vaša kontrolna ploča!<br>Ovdje možete pregledati svoje statse, izmjeniti neke opcije...<br><br>Prijavite bug <a href="index.php?action=reportbug">ovdje!</a></h5>';
            }
            else 
header('location: index.php?action=login');
        } 
I must implent in that code getting that 'id'
Reply
#9

I don't know what you want to do with that id, but $_GET['id'] represents the id thats in the link. Where do you want to put it?
Reply
#10

PHP код:
if($_SESSION['l_username'])
            {
                echo 
'<h2 style="text-align: center;">Pozdrav '.$_SESSION['l_username'].'!</h2><h5 style="text-align: center;">Ovo je vaša kontrolna ploča!<br>Ovdje možete pregledati svoje statse, izmjeniti neke opcije...<br><br>Prijavite bug <a href="index.php?action=reportbug">ovdje!</a></h5>';
                return;
            } 
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)