Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello there,

 

I am stuck. Using php version 5.3.6 and mysql 5.5.9

 

I copied the delete_user.php but it doesn't work. When I click on the delete link on view_users.php, I receive the following link:

 

http://localhost:8888/phpAndMySQL/delete_user.php?id%20=%201

 

Seems that there are too many letters in the ?id%20=%201, so when I manually remove the %20 (two times) to ?id=1, it works. Why do I have the %20 show up? Must be something wrong with my coding? This is what I have:

 

 

echo '<tr>

<td align = "left"><a href = "edit_user.php?id = ' . $row['user_id'] . ' ">Edit</a></td>

<td align = "left"><a href = "delete_user.php?id = ' . $row['user_id'] . ' ">Delete</a></td>

<td align = "left">' . $row['last_name'] . '</td>

<td align = "left">' . $row['first_name'] . '</td>

<td align = "left">' . $row['dr'] . '</td>

</tr>

';

 

Probably something really silly and simple...

 

Thanks for any help.

Link to comment
Share on other sites

 Share

×
×
  • Create New...