can anyone tel me ....

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:

can anyone tel me ....

Post by kujtim »

can anyone tel me what king of funkcion does this thing have....


echo $templateXleftsize
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

function?

it is a variable
and not a 'preset' one at that, you (or the guy who wrote the script) has created it, look for a piece of code something like:

Code: Select all

<?php
blahblahblah = $templateXleftsize
?>
or more than likely it will be something from a DB query
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

think you mean

Code: Select all

$templateXleftsize = blahblahblah
Mark
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Bech100 wrote:think you mean

Code: Select all

$templateXleftsize = blahblahblah
Mark
Actually

Code: Select all

$templateXleftsize = 'blahblahblah';
;)
kujtim
Forum Commoner
Posts: 35
Joined: Sat Oct 25, 2003 4:00 am
Location: kosovo
Contact:

hare is the same problem but...

Post by kujtim »

hare is a same problem but is more in detail............


<table width="100%" height="120" border="0" align="center" cellpadding="0" cellspacing="0" class=tableTop >
<tr>

<td align="center" width="<? echo $templateXleftsize; ?>">
<img src="<? echo $url_path; ?>images/logo.jpg">
</td>

<td valign=top align=left>

<table width=100% cellpadding="0" cellspacing="0" class=tableTopRight>
<tr>
<td>
<img src="<? echo $url_path; ?>images/top_img.jpg">
</td>
</tr>
<tr>
<td height=20>
<? include 'includes/menu/main_menu.php'; ?>
</td>
</tr>
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Variables not declared direclty in a PHP-file can originate from

a) an include file,
b) any kind of array returned by any kind of function (database, class etc.) if used with [php_man]extract[/php_man]
c) an argument passed to a function

In other words:
1. check your include files,
2. check which variables get assigned where in your page,
3. check where "extract" is being used.
4. check if the code you have problems with is part of a function. If so, check which parameters are being passed to it.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

[php_man]echo[/php_man]()
Post Reply