can anyone tel me what king of funkcion does this thing have....
echo $templateXleftsize
can anyone tel me ....
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
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:
or more than likely it will be something from a DB query
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
?>think you mean
Mark
Code: Select all
$templateXleftsize = blahblahblahActuallyBech100 wrote:think you mean
MarkCode: Select all
$templateXleftsize = blahblahblah
Code: Select all
$templateXleftsize = 'blahblahblah';hare is the same problem but...
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>
<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>
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.
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.