Line 24:
Code: Select all
mysql_select_db("rac");
$query=mysql_query('select * from projects where substring(categories,'.$category.',1)="1"');
print('<table border=1 width="100%">');
for($i=0;$i<mysql_num_rows($query);$i++)
{
// print in table etc etc
}Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\anjanesh\OpenProjects.php on line 25
Similarly for this :
Code: Select all
<form action="SignIn.php">
<td>Username : </td>
<td><input maxlength=20 title="Enter the username here" name=username></td>
</tr>
<tr>
<td>Password : </td>
<td><input type="password" maxlength=20 title="Enter your password here" name=pass></td>
</tr>
<tr><td><input type=submit value="Sign In" name=SignIn></td></tr>
</form>In college its working. The Script SignIn.php contains :
Code: Select all
if(!isset($username) || !isset($pass)) die("Unable to authorize you");The scripts seem to be fine but I don't understand why it does not work in the Co esp when using mysql db scripts.
Thanks