NEW #21
Avatar
Zero2Cool Elite Member
Joined: Oct 14, 2006
Posts: 44,952
Avatar
Zero2Cool
Elite Member
Joined:Oct 14, 2006
Posts:44,952
It'd be ASP.NET w/MVC2 not ASP. I thought MVC2 was only available with ASP.NET.
0
SlickVision, Methodikal, Kevin and 5 others
NEW #22
Avatar
djcubez Senior Member
Joined: Aug 07, 2008
Posts: 1,768
Avatar
djcubez
Senior Member
Joined:Aug 07, 2008
Posts:1,768
"dhpackr"
<?php

// $delete_query = "DELETE ?????FROM posts WHERE id='$postID'";
// mysql_query($delete_query);
$nonmemberposts++;
?>


wouldn't work if it wasn't commented out, this would cause an error, not telling what you want to delete.

why don't you just delete id #2, the whole row? if you are using auto increment for the id field, it wouldn't let you delete the row unless you delete the id


I explicitly stated in post why I had it commented out and that it wouldn't work unelss you removed the comments. That MySQL statement is also 100% correct it would delete the entire row for that post.
0
SlickVision, Methodikal, Kevin and 5 others
NEW #23
Avatar
dhpackr Registered
Joined: Dec 12, 2007
Posts: 963
Avatar
dhpackr
Registered
Joined:Dec 12, 2007
Posts:963
I stand corrected, great job.
0
SlickVision, Methodikal, Kevin and 5 others
NEW #24
Avatar
djcubez Senior Member
Joined: Aug 07, 2008
Posts: 1,768
Avatar
djcubez
Senior Member
Joined:Aug 07, 2008
Posts:1,768
"dhpackr"I stand corrected, great job.


Sorry I had no intention of being a prick if I did come off that way :) It's always nice to have another person look through your code anyway to give some feedback.
0
SlickVision, Methodikal, Kevin and 5 others