[PHP] RE: [newbie] drop down boxes

2003-04-06 Thread Bobby Rahman
Hiya, I have created a dynamic table within my form. Above the table I want to insert a filter to order by: Here is the static list: Severity Crash Major Minor Review What I need suggestions on is: 1. recommended tutorials on list

Re: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Bobby Rahman
Hiya people After a lot of soul searching, exploring the web and help from many people I came up with this simple solution: Thank you Chris for explaining the toggle $colorset. In the end I decided this made life alot simplier. (clearly the brackets have to be correctly aligned) while( $row

[PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Bobby Rahman
Hiya I have a dynamic table and am trying to get the rows to be two different alternate colours. well Ive looked at a couple of snippets of this colour code and previous mails regarding this. Im having major troubles intergrating any of these suggestions with my code. Can anyone suggest where

[PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Bobby Rahman
Hiya Im looking for any tutorials/snippets of code to show me how to code a dynamic drop down box/list in a php form. e.g a drop down menu of all current users (I assume this will need to connect to mysql db and select all usernames from table user and place in the menu. here what I have so

[PHP] RE: [newbie] embed php in html file

2003-04-03 Thread Bobby Rahman
Hiya I need advice for an optimum solution to display the username that is logged in on every html form page of my application. I have a header.php : session_start(); echo "Logged in as: ".$_SESSION['curr_user'].""; ?> Now I have many html forms which user's see What I want to know is how t

[PHP] [Newbie] Password()

2003-03-31 Thread Bobby Rahman
Hi, in my code I am trying to send an email (containing a password) to a user when he has forgotten his password. The problem is that security leads to needing to encrypt passwords in the database. Im using the password function within mysql. Is there any way of reversing the password functi

[PHP] RE: (newbie)calling GLOBAL arrays

2003-03-23 Thread Bobby Rahman
Hiya Im having difficulties calling array values from outside script. I have db.api.php $username = $row[0]; $password = $row[1]; $email = $row[2]; echo "THE USERNAME IN DB.API IS $username"; echo "THE PASSWORD IN DB.API IS $password"; echo "THE EMA

Re: [PHP] Passing variable from webpage to php (newbie?)

2003-03-20 Thread Bobby Rahman
Hiya It could need setting register_globals =on in your php.ini if after that still problems then you may need to look into sessions and in particular session_start() and $_SESSION['varname'] and make sure the variables are global so that more than one script can use them. Hope this steers you

[PHP] RE: (newbie) how to redirect to html page from php

2003-03-17 Thread Bobby Rahman
Hiya I have a login_screen.html which on submit is sent to login.php. Login.php does all the checking of usernames and passwords. I am trying to to produce this logic: //In login.php if password and username correct { go to main page } else { go back to login.screen.html echo "Please try again"

[PHP] RE: newbie OOP?

2003-03-14 Thread Bobby Rahman
Hiya I am new to PHP and was wondering whether to develop small applications (20 pages ) is it worth it to use OOP? Can any recommend any books or URLS that explain Object orientated programming and design in detail. I have read articles in www.phpbuilder.com and www.phppatterns.com. In part

[PHP] RE: traversing and displaying directories in html [newbie]

2003-02-17 Thread Bobby Rahman
Hiya I am trying to find a way to drill down on html file names, if there are directories to display the files in the new directory. Im assuming this needs the calling of the same page which displayed the intial file names again with the argument of new directory. Does anyone have any tips f