[PHP] Please Help

2002-04-16 Thread Omland Christopher m

Can anyone tell me how to unsubscribe. There is just a bit too much volume
for me.
Thanks.
-Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] User Authentication

2002-03-29 Thread Omland Christopher m

Hi, I had a question on user authentication/member accounts.
I have built a MySQL database with users and passwords, and I wrote this
code:

LOGIN IN PROGRESS

PLEASE LOG IN



Username:
Password:
 

Click Here");

}

So this will work it regonizes a real user vs. a fake on I do. But I don't
understand whats to stop someone from directly linking to a protected
page? For example why couldn't someone just go directly to
./about.php.

Does this make sense? Should I have the login form in one file and the php
script in another? Do I need to check the http header somehow to see if
they have logged in?
Thanks.
-Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] ID NUMBER HELP

2002-03-26 Thread Omland Christopher m

Can someone help me with this. I'm trying to get ?id= set to the id number
of the name in the database. I can get ?id="THE NAME" but I can't get it
to pick up the id number. here is the code i"m trying:
while($row = mysql_fetch_array($result))
{

 printf("%s\n", $PHP_SELF,
$row["ID"], $row["Name"], $row["Name"]);
}

If I change the first $row["ID"] to $row["Name"] then ?id="Name here" but
then when I try to extract the information from the database using:

$result = mysql_query("SELECT * FROM Profiles WHERE id=$id", $dbcnx);
$row = mysql_fetch_array($result);

It won't work, but in the address bar if I manually change ?id=1 then the
information will load fine. Can anyone help?
Thanks.
-Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Loading Images

2002-03-26 Thread Omland Christopher m

I wasn't so much concearned about security of users grabbin pics. I am
more trying to learn how these people load there menus dynamically and
pics dynamically. Do you have any links to pages or code that describe how
to make a link in the db to pics on my filesystem?
Thanks.
-Chris

On Tue, 26 Mar 2002 [EMAIL PROTECTED] wrote:

> At 26.03.2002  12:47, you wrote:
> >
> >I don't have any code for this, but I'm hoping someone can point me in the
> >right direction. I want to load images or navigation menus dynamically. Is
> >it possible to build a database of images and then use php to display
> >them? Or something along these lines. I know this must be possible,
> >becuase I see sites that do something like this, and I cant seem to right
> >click the image and save it. Does this make any sense?
> >Thanks.
> >-Chris
> Storing images in a db is not a good idea. instead store them
> in your filesystem an have a reference to them in your db.
> Then you can make everything ;-)
>
> Even there´s no real security for grabbing pics. If your client can see them,
> they are on his/her machine. To prevent the right-click, you have to use
> JavaScript, but that only works, if the user has it switched on.
> A little more secure is putting the pics in flash-movies. But I think there are
> already programs out, which allow to extract pictures and componenets.
> HTH Oliver
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Loading Images

2002-03-26 Thread Omland Christopher m

I don't have any code for this, but I'm hoping someone can point me in the
right direction. I want to load images or navigation menus dynamically. Is
it possible to build a database of images and then use php to display
them? Or something along these lines. I know this must be possible,
becuase I see sites that do something like this, and I cant seem to right
click the image and save it. Does this make any sense?
Thanks.
-Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Database connection problem

2002-03-25 Thread Omland Christopher m

Hi, can anyone help me with this problem.
I'm trying to connect to a MySQL database on my computer, I don't have a
hostname for it, so I just insert the IP, something like this.

...
mysql_cos?
Thanks.
-Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dynamic Webpage AGAIN!

2002-03-12 Thread Omland Christopher m

Anyone have a good link to a tutorial on creating dynamic web pages in
PHP, mainly I'm interested in loading navigation bars and that kind of
thing. If you have code you can send that would help too.
Thanks.
-Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dynamic Web Navigation

2002-03-12 Thread Omland Christopher m

Does anyone have a good link to a tutorial, or a book suggestion that will
help me learn more about making dynamic web pages with MySQL/PHP. Mainly
things like loading navigation menues, and pics and what not?
Thanks.
-Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] index.php question

2002-03-11 Thread Omland Christopher m

Hi all, I'm new to the mailing list, I hope I'm in the right spot.
I have installed php, and .php files work fine, unless they are my index
file. For example http://whatever.com/~jondoe/info.php will work. But if I
make a index.php file and go to http://whatever.com/~jondoe it wont work.
I can view the source and see my php code, which I know means the server
isn't translating it. I'm running RH LINUX, and running apache webserver.
I have checked the httpd.conf file and the load modules lines are in
there, and they are correct??(I THINK)
Any help would be appreciated.
Thank You.
-Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php