Search found 9 matches

by iLLuZZiOn
Thu Aug 15, 2002 7:58 pm
Forum: PHP coding => General
Topic: execute code when browser closes?
Replies: 6
Views: 4878

Did you try onUnload in the body tag?
but evertime the user clicks on a link or refreshes the page it will log them out...

unless at the beggining of everypage there is a script that logs them back in automatcly?
by iLLuZZiOn
Thu Aug 08, 2002 4:27 am
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

yes

"$_POST['amd_cpu']" gives me the IDno

but the query returns resourse id #x

or something like that

and when i try to use the array function, it outputs 'Array'
by iLLuZZiOn
Thu Aug 08, 2002 1:12 am
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

i can't get this working at all!!! i need to get a single value from the mySQL database ______________________________________ |IDno|ProductName|ProductDesc|UnitPrice| | 1 | product1 | Desc1 | $100 | | 2 | product2 | Desc2 | $200 | | 3 | product3 | Desc3 | $300 | | 4 | product4 | Desc4 | $400 | this...
by iLLuZZiOn
Wed Aug 07, 2002 3:08 am
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

<?php mysql_select_db($database_Connection1, $Connection1); $querycpu = "SELECT UnitPrice FROM amd_cpu Where ProductID = ".$_REQUEST['amd_cpu']; $cpuprice = mysql_query($querycpu,$Connection1) or die(mysql_error()); echo $cpuprice; ?> ok, this returns Resource id #3 $querycpu returns 'SELECT UnitPr...
by iLLuZZiOn
Mon Aug 05, 2002 2:41 am
Forum: PHP coding => General
Topic: execute code when browser closes?
Replies: 6
Views: 4878

One option i can think of is making a popup window that pops up then the main page is accessed or when the user logs in. and if u can start with the window maximised. This window could have the close button disabled, and at the top and bottom of the page it has a close button, when clicked it logs t...
by iLLuZZiOn
Mon Aug 05, 2002 12:33 am
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

Re: Dropdown Value

That is true well i would like to do it php, i might just put a button to update the prices on the quote ok now another question... how do you get a value from a cell in the mySQL database the way i have set it up is i have the ID number of the item as the value in the dropdown so when i submit the ...
by iLLuZZiOn
Sat Aug 03, 2002 11:34 pm
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

Re: Dropdown Value

so is there anyway to do this in a html page

with asp or .jsp

could it be done in flash?
by iLLuZZiOn
Sat Aug 03, 2002 4:31 pm
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

Re: Dropdown Value

well.. is there any client side language that can access a mySQl database? what i am trying to do is make a online quote for a computer, so there is a dropdown menu for each componect in a computer. i have got the values in the dropdown from the mysql database, the value in the dropdown is the produ...
by iLLuZZiOn
Fri Aug 02, 2002 6:08 pm
Forum: PHP coding => General
Topic: Dropdown Value
Replies: 18
Views: 10496

Dropdown Value

i need to get the value of a dropdown menu into a variable, Without submiting the form. I also would like it if it updates instantly So as soon as someone picks an option from the dropdown menu(lets say 'mymenu') it creates a variable called 'myvar'. Is it possible, if not is there anyway to convert...