[SOLVED]error...check this out...undefined variable

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
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

[SOLVED]error...check this out...undefined variable

Post by pleigh »

i have a php code below:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
 = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 2AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}
;

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;p;lt;?
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}
[/php:1:54cbelow:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);
		
if ($result)
{
echo &quote;
	&lt;table width=100% border=1&gt;
  
  &lt;tr&gt;
    &lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
    &lt;td width=80%&gt;$row&#1111;0]&lt;/td&gt;
  &lt;/tr&gt;
&quote;;
}
else
{
	echo 'system error!&lt;br&gt;'.mysql_error();
}
when compiled, it returns anbelow:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row #1111;'firstname'];
$uid = $_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'system error!<br>'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
$_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&4c5c817b3]
<?
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSIONї'userID'];

$query = &quote;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1>

<tr>
<td width=20%&gt;&lt;b/&gt;Project Title&lt;/td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'sy$query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'system error!<br>'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>

$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSIONї'userID'];

$query = &quote;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
ult = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'system error!<br>'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
serID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\pro;'pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];

$query = &quote;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
below:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td&aole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
below:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
&quot
<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

;
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is
[phname'];
$uid = $_SESSION['userID'];

$query = &quote;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}
[/below:

Code: Select all

<?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);
		
if ($result)
{
echo &quote;
	&lt;table width=100% border=1&gt;
  
  &lt;tr&gt;
    &lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
    &lt;td width=80%&gt;$row&#1111;0]&lt;/td&gt;
  &lt;/tr&gt;
&quote;;
}
else
{
	echo 'system error!&lt;br&gt;'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

;		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

&ale width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row?			
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];		
			
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);
		
if ($result)
{
echo "
	<table width=100% border=1>
  
  <tr>
    <td width=20%><b/>Project Title</td>
    <td width=80%>$row[0]</td>
  </tr>
";
}
else
{
	echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an error
Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error
Notice: Uamp;lt;?
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'system error!<br>'.mysql_error();
}


when compiled, it returns an error line 24 is

Code: Select all

<td width=80%>$row[0]</td>
ESSION['userID'];

$query = &quote;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'&quote;;
$result = @mysql_query($query);

if ($result)
{
echo &quote;
&lt;table width=100% border=1&gt;

&lt;tr&gt;
&lt;td width=20%&gt;&lt;b/&gt;Project Title&lt;/td&gt;
&lt;td width=80%&gt;$rowї0]&lt;/td&gt;
&lt;/tr&gt;
&quote;;
}
else
{
echo 'system error!&lt;br&gt;'.mysql_error();
}


when compiled, it returns an error line
<?
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];

$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'";
$result = @mysql_query($query);

if ($result)
{
echo "
<table width=100% border=1>

<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$row[0]</td>
</tr>
";
}
else
{
echo 'system error!<br>'.mysql_error();
}


when compiled, it returns an error
line 24 is

Code: Select all

<td width=80%>$row[0]</td>
Last edited by pleigh on Wed Jul 06, 2005 5:42 am, edited 1 time in total.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

its not a fatal error but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
t. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
6d36]
$row = mysql_fetch_row($result);
re. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
ror but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
ror but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
o put in

Code: Select all

$row = mysql_fetch_row($result);
d36]
$row = mysql_fetch_row($result);
efining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
u just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
fetch_row($result);
y and thats it. you have to put in

Code: Select all

$row = mysql_ror but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
ysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
ror but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
w anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
put in

Code: Select all

$row = mysql_fetch_row($result);

Code: Select all

$row = mysql_fetch_row($result);
ror but you arnt defining $row anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
h_row($result);
ou just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
anywhere. you just have mysql_query and thats it. you have to put in

Code: Select all

$row = mysql_fetch_row($result);
$row = mysql_fetch_row($result);
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yah tnx...i missed that one...:D...tnx very much...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

btw, don't forget to call session_start before using $_SESSION data...
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

timvw wrote:btw, don't forget to call session_start before using $_SESSION data...
yeah..did that....is it ok tim if i include it in my header.inc file??so that every page that has the header include will automatically call the session_start function....the same idea with my database connection..
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I only noticed there was no such call in your sample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
ou have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
162043a] be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
de, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
re was no such call in your sample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
[/php:re was no such call in your sample code, thats why i mentionned it  So, if you have it in your header.inc it should be all ok 

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
l in your sample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
ats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
etimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  sessiont  So, if you have it in your header.inc it should be all ok 

Sometimes if i ware was no such call in your sample code, thats why i mentionned it  So, if you have it in your header.inc it should be all ok 

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
tionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start]
if (!isset($_SESSION))
{
  session_start();
}
re was no such call in your sample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
ample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

[phpour header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if.inc it should be all ok 

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
re was no such call in your sample code, thats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
 es if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
session_start();
}
hats why i mentionned it ;) So, if you have it in your header.inc it should be all ok ;)

Sometimes if i want to be asolutely sure, i do the following:

Code: Select all

if (!isset($_SESSION))
{
  session_start();
}
if (!isset($_SESSION))
{
session_start();
}
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

that's great...thanks... :wink:
Post Reply