Reply to Resource error # 4

Your name:

Reply:


Posted by Robert on 05/31/07 01:47

Hi y'all,

The below gives resource error # 4. I've cut a lot of code out in an
attempt to just display adv_id twice. The first time works as expected.
The second time I get the error.

When echoing result, I should be looking for an array to be displayed?
If so, how?

Thanks.

Robert

*******************

<?php
include ("connect.php");
?>

<form action="<?php echo "display_details.php" ?>" method="post">
<p>Which record would you like to see?</p>
<P>Enter Record #<br>
<input type=text name="adv_id" size=5>
<input type=submit name="submit" value="View Record">
</form>

<?php
if (!empty($_POST))
{
$adv_id = $_POST['adv_id'];
echo "$adv_id";
$result=mysql_query("SELECT * FROM advertiser_tbl WHERE adv_id =
'adv_id'") or die

(mysql_error());
echo "$result";
}

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация