[PHP] explode? (table field to a variable of same name)

2002-02-19 Thread Baloo :0\)

How can I assign automatically all fields of a database to a variable of
the same name?

Instead of having to manually do
$user_id=$row[user_id];
etc

Then how could I know the number of fields in the table so I can do a
loop to print them all in html?

In advance, thanks for your help.

Alfredo


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




[PHP] block ctrlaltdel and alttab

2002-02-07 Thread Baloo :0\)

Hi,

I have a routine to administrate a cybercafe with MySQL, PHP over Win
2K.

Does anyone knows how could I programm a routine to request ID and
Password wich disables the ctrlaltdel , alttab and
shiftf4?

Thanks in advance,

Alfredo


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




[PHP] Re: automatic forward URL to other URL

2002-02-07 Thread Baloo :0\)

In the first domain (www.mydomain.com) create a page called  index.php with
the code:
?
header(Location:www.mydomain2.com);
?

regards,
Alfredo

Manu Verhaegen wrote:

 I want automatic forward URL (www.mydomain.com) to (www.mydomain2.com)

 If i type in my brower www.mydomain.com the i will see www.mydomain2.com

 Greetings,
 Manu


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




[PHP] Re: I'm a n00b scum...

2001-12-04 Thread Baloo :0\)

I strongly reccomend the book called PHP Essentials by Julie C Meloni

It's written very simple and at the same time you learn quite good level of PHP

Alfredo

Markmi6 wrote:

 And I've just read the tutorial on webmonkey.com on php and now I'm hooked,
 where can I get more stuff like that on webmonkey?  Or would I be better off
 buying a book on php and if so which do you recommend?

 --
 It's not the job I enjoy, it's the people I run into - Bus Driver.
 -
 www.gamerseurope.com - We redesign and the world stops, see the revolution
 this February.
 -
 ICQ: 118713900
 MSN: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)

Someone came with a very clever solution to simplify the extraction of all
fields when doing aselect * from table

it's a command that passes all values from the fields on the table to variables
of the same name than the field on that table.  No need to program it manually,
creates all variables with same names as the table fields.

Could someone tell me how to do this?

Alfredo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: small window scripts in Javascript?

2001-12-04 Thread Baloo :0\)

To close the window when the user clicks on the hiperlink type in your HTML tag
for Body Body onUnload=Window.close()
This will close the present window when the user clicks on the hiperlink.

When you close the present window, you need to open a new window (or an existing
one)  where you will display the new page.

Alfredo

Wee Chua wrote:

 Hi all,
 How could i get rid of the white space and show the picture exactly same
 size as the window, so it would be perfect fit. What else do I miss in the
 codes to make the perfect fit size? Also, how can I have the small window
 close automatically after user clicking on the picture's hyperlink? Any
 helps will be greatly appreciated. Thanks.

 Script
 !--
 function displayWindow(url, width, height) {
  window.open(url,displayWindow,'width=' + width + ',height=' +
 height
 +',resizable=0,scrollbars=no,menubar=no,status=no,topmargin=0,leftmargin=0')
 ;
 self.close();

 }
 //--
 /script

 a
 href=javascript:displayWindow('../JPeg/big%20jpeg/Untitled-1.jpg',750,530)
 

 regards,
 Calvin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)

Someone came with a very clever solution to simplify the extraction of
all
fields when doing aselect * from table

it's a command that passes all values from the fields on the table to
variables
of the same name than the field on that table.  No need to program it
manually,
creates all variables with same names as the table fields.

Could someone tell me how to do this?

Alfredo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]