The PHP Community's Journal Friday, August 29th, 2003
Date:
2003-08-29 00:34
Subject:
Security:
Public
Mood:
curious
I was checking our this tutorial on authenticating users against a database. But for some reason, this line:
$num = mysql_numrows($result);
never works. I was forced to write my code another way because that function is undocumented in the manual (though mysql_num_rows is, but that doesn't work either). Anyone know about this?
Ok, So I have a users database (username, first name, last name, bio, city, state, zip) and anyone can look at it, once logged into the site. Then I got thinking it would be nice for my users to not display EVERYTHING they have stored for fear that my users wouldn’t want to give the information knowing that everyone will be able to see it. The best way around this, I’m thinking is a “public” info database and a “private” database where users will update the private one and only select what goes in the public one. The best method I’ve come up with was to have checkboxes next to the fields in the private database edit page, and have just the check marked fields updated to the public database.
But how do I get a page of check marked items in relation to a field like $fname and $bio to update my private database?
I’ve looked around and most help sites say I need to use an array, and a foreach but both are new pretty and vague to me for this application.
I'm actually looking for someone who can help me with mod_rewrite so this is off-topic in here. If anyone can point me towards an apache community then i would be very grateful. ( Collapse )