squid44th 33 Newbie Poster

Yes you were Dude, but I laughed so hard when he asked me if his Hole COllection was cool I had to say Yes. I showed my wife and both set of parents and the laughed harder than I did. I have since put the date on it along with what it is and his name and framed it. It will be one of his wedding gifts when its time. Just for laughs.

Sulley's Boo commented: Cute =D .. +5
squid44th 33 Newbie Poster

Well, what it is, is an ordinary blue sheet of paper with a combination of pen and pencil holes. The tears are from kittens playing.

But if you ask my 5yr old (the maker) he will proudly say...

"Dad isn't my HOLE COLLECTION cool!"

squid44th 33 Newbie Poster

Just wondering how many of you know what this is? I will tell you in a few days.

Ancient Dragon commented: good one :) +24
squid44th 33 Newbie Poster

To begin with, I will state now that I know virtually nothing, zip, zero, zilch about .htaccess and mod_rewrite. That being said, I know it can be done.

What I have is a framed site that has a header/footer plus left menu and main frame. What I have now is a link in the menu for a client login which apears in the main frame. the user input U/P which would go to a php file and verify who they are. Once verified the php login would contain a header("link") to their protected directory.

That part I can handle easily. The hard part is that I also need the directory protected with .htaccess to prevent direct linking. Or when the client bookmarks the page I need them to log in.

I have seen it before at i2 Membership which uses a mod_rewrite to redirect the .htaccess to a php login script. This is what I would like to accomplish.

On a side note, I would also like to prevent downloading of images by putting some other coding in the .htaccess if that is possible too. I have also read and reread the following forum .htacces thread

As of now I have no .htaccess in the directory, but need to do this quickly.

Thanks in Advance for any help.
Squid

squid44th 33 Newbie Poster

After a quick glance, I see that the value you're passing for $re is "mysql_query($query) or die
(mysql_error());".

If memory serves me, that would not be a correct variable for mysql_num_rows.

You could always put the db select with the die statement in the dbconnect.php. That way, the value for $re would be "mysql_query($query);" which would be correct for mysql_num_rows.

squid44th 33 Newbie Poster

I would use mysql_fetch_array instead of mysql_fetch_assoc.

But your problem lies here:

mysql_select_db ($[B]db[/B]database, $db);
Sulley's Boo commented: =') +4
squid44th 33 Newbie Poster

squid44th is a pair of shoes that takes high-quality digital photos!

Now if I could only download them to my computer.

squid44th 33 Newbie Poster

I like using the \" when using php, never had any problems when doing it this way.

$del = mysql_query("DELETE FROM items WHERE url=\"".$delurl."\"");
squid44th 33 Newbie Poster

I prefer to use the css version of the tool tip.

<style type="text/css">
#info p {margin-left:15px; margin-right:20px;}
#info img {margin:15px; float:left;}
#info h1 {margin-left:15px;}
/* the style starts here */
a.tooltip {color:#c00;}
a.tooltip b {display:none;}
a.tooltip:hover {border:0; position:relative; z-index:500; text-decoration:none;}
a.tooltip:hover b {display:block; position:absolute; top:20px; left:-25px; padding:5px; font-weight:normal; color:#000; border:1px solid #888; background:#ffc; width:150px;}
a.tooltip:hover b em {position:absolute; left:20px; top:-6px; width:11px; height:6px; background:#fff url(tooltip.gif) 0 0; display:block; font-size:1px;}
</style>
<a class="tooltip" href="link or anchor">Display<b><em></em>The text in tool tip</a>

found it at CSS Play