halooo

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kujtim
Forum Commoner
Posts: 35
Joined: Sat Oct 25, 2003 4:00 am
Location: kosovo
Contact:

halooo

Post by kujtim »

Pleas can anyone tel me what kind of function this codes have ........


$link = $PHP_SELF."?language_id=".$row['lang_id'];

if ($HTTP_SESSION_VARS[language_id] == $row['lang_id'])
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Code: Select all

<?php
$link = $PHP_SELF."?language_id=".$row['lang_id'];
?>
This defines a string. Vars have been dot-concatenated with quoted strings.

$link is a query string used to define a hyperlink.

The next bit is the start of an if clause:

Code: Select all

<?php
if ($HTTP_SESSION_VARS[language_id] == $row['lang_id'])
{
    // do something
}
?>
Post Reply