<BODY background="back_main.gif">

<p><font face="Verdana"><b>Ask your question to aan Mohammed
Allach</b></font></p>

<form action=addvraag.php method=GET>

 <TABLE border=0 cellpadding=0 cellspacing=1 width="580">

<TR>

 <TD align=left width="100"><font face="Arial" size="2">Naam:</TD><TD
align=left width="220">
              <INPUT type=text NAME="name" size=30 maxlength=255>
</TD></TR>

<tr>
<td align="left" width="100" valign="top"><p align="left"><font face="arial"
size="2">Question:</font></td>
   <td width="393"><textarea rows="9" name="question" cols="44"></textarea>
</td>
</tr>

 </table>

<center>
<input type="submit" Value="Submit!"></center>
</form>


<?php

$db = mysql_connect(".............", ".................",
"..................");

mysql_select_db("..................",$db);

$query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id
DESC";

$result = MYSQL_QUERY($query);

$number = MYSQL_NUM_ROWS($result);


$i = 0;

WHILE ($i < $number):




----- Original Message -----
From: Jeremy Zawodny <[EMAIL PROTECTED]>
To: Martin Kampherbeek <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 10:17 AM
Subject: Re: numrows


> On Thu, Aug 23, 2001 at 10:10:05AM +0200, Martin Kampherbeek wrote:
> >
> > What's wrong with this? I get the error: Warning: Supplied argument
> > is not a valid MySQL result resource in
> > /home/sites/site49/web/vragen/vragen.php on line 42
>
> Can we see lines 1-41 as well, if they're relevant.  Surely you
> haven't shown us all the MySQL related code.  If you *have*, then your
> problem is that you haven't connected to MySQL.
>
> Jeremy
> --
> Jeremy D. Zawodny, <[EMAIL PROTECTED]>
> Technical Yahoo - Yahoo Finance
> Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936
>
> MySQL 3.23.41-max: up 6 days, processed 77,740,075 queries (148/sec. avg)
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to