Reply to Re: PHP Error message: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/jplane/certcent/phpweb/quiz/index.php on line 20

Your name:

Reply:


Posted by ZeldorBlat on 06/16/07 01:34

On Jun 15, 7:27 pm, "techjoh...@gmail.com" <techjoh...@gmail.com>
wrote:
> Error:
>
> Warning: mysql_query(): supplied argument is not a valid MySQL-Link
> resource in /home/jplane/certcent/phpweb/quiz/index.php on line 20
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> result resource in /home/jplane/certcent/phpweb/quiz/index.php on line
> 21
>
> PHP CODE:
>
> session_start();
> require_once('inc/db_config.inc.php');
> $conn = db_connect();
>
> if (isset($HTTP_SESSION_VARS['scoreboard'])) {
> echo '<p id="hornav"><a href="results.php">View Results Sheet</a></
> p>';}
>
> ?>
> <h2>Welcome to the Test Zone</h2>
> <h3>Please select a subject area and the number of questions you wish
> to answer.</h3>
> <ol id="numbered">
> <?php
> $sqlsu = "SELECT * FROM subjects ORDER BY ID";
> line 20 $ressu = mysql_query($sqlsu, $conn);
> line 21 if (mysql_num_rows($ressu)) {

The message means you aren't connected to the database -- or, more
specifically, that $conn is not a valid connection resource.

What's in inc/db_config.db.php ?

[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

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