Jump to content

Attension plz

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
efim

efim

    Newbie

  • Members
  • PipPip
  • 11 posts
Because i ve not been able to resolve my previous problems, i decided to go in for something simple. I created a single table database, i have an ndex.php and login.php. I am using WAMP & dreamweaver, the server testing connection is correct as seen in my dreamweaver Local File menu.

I checked several times the ndex.php is correct but when i fill it and submit (Login) the login.php displays a blank page, it does not echo any error message or connection massage.

these are the codes;
[B]ndex.php[/B] 

[code]

<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form method="post" action="login.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">

<tr>
<td colspan="3"><strong> </strong></td>
</tr>

<tr>
<td colspan="3"><strong>Member Login </strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input type="text" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input type="password" name="password" ></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" value="Login"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>

[/code] [B] login.pho [/B]

Please help :confused:
thx:

Edited by efim, 10 February 2010 - 10:45 AM.
Please use code tags when posting code!


#2
Feral

Feral

    Programmer

  • Members
  • PipPipPipPip
  • 162 posts
$numbers = mysql_num_rows("$query");

should be

$numbers = mysql_num_rows($query);


#3
efim

efim

    Newbie

  • Members
  • PipPip
  • 11 posts
Thanks