[SOLVED]error...check this out...undefined variable
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();
}line 2AND projectID='$id'";Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
$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>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
;
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$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>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 "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.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'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}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();
}line 24 isNotice: 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 errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24$_SESSION['userID'];Code: Select all
<td width=80%>$row[0]</td>
$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&4c5c817b3]
<?
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSIONї'userID'];
$query = "e;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 "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</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 errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24Code: Select all
<td width=80%>$row[0]</td>
$id = $_GET['pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSIONї'userID'];
$query = "e;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24ult = @mysql_query($query);Code: Select all
<td width=80%>$row[0]</td>
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 errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24serID'];Code: Select all
<td width=80%>$row[0]</td>
$query = "SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorNotice: Undefined variable: row in c:\inetpub\wwwroot\pro;'pid'];
$fn = $_SESSION['firstname'];
$uid = $_SESSION['userID'];
$query = "e;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorbelow:Notice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
when compiled, it returns an errorCode: 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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24GET['pid'];Code: Select all
<td width=80%>$row[0]</td>
$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'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24when compiled, it returns an errorCode: 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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24below:Code: Select all
<td width=80%>$row[0]</td>
when compiled, it returns an errorCode: 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> " <? $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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24when compiled, it returns an errorCode: 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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24
[phname'];
$uid = $_SESSION['userID'];
$query = "e;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 "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
[/below:
when compiled, it returns an errorCode: 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'"e;; $result = @mysql_query($query); if ($result) { echo "e; <table width=100% border=1> <tr> <td width=20%><b/>Project Title</td> <td width=80%>$rowї0]</td> </tr> "e;; } else { echo 'system error!<br>'.mysql_error(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24when compiled, it returns an errorCode: 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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24AS prCode: Select all
<td width=80%>$row[0]</td>
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>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorline 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24when compiled, it returns an errorCode: 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(); }line 24 isNotice: Undefined variable: row in c:\inetpub\wwwroot\project\viewproject.php on line 24FROM projects AS p, profile AS prCode: Select all
<td width=80%>$row[0]</td>
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.mysql_error();
}
when compiled, it returns an errorNotice: 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 isESSION['userID'];Code: Select all
<td width=80%>$row[0]</td>
$query = "e;SELECT projecttitle, companyrole, firstname FROM projects AS p, profile AS pr
WHERE p.userID = pr.userID AND projectID='$id'"e;;
$result = @mysql_query($query);
if ($result)
{
echo "e;
<table width=100% border=1>
<tr>
<td width=20%><b/>Project Title</td>
<td width=80%>$rowї0]</td>
</tr>
"e;;
}
else
{
echo 'system error!<br>'.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
Code: Select all
<td width=80%>$row[0]</td>