Jump to content

itazev

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

itazev's Achievements

Member

Member (2/5)

0

Reputation

  1. Still not working. But thanks for your time. Anybody!? Please!!
  2. Hey everyone! How do I get the values stored in an array using $_POST? In the HTML form there is a multiselect listbox but when I do $my_var = $_POST['multiselect_listbox']; it will return only the last selected element. Thanks for your help!
  3. Hey everyone! I tried to google it but I could not find how to get a text of a listbox/combobox element. Besides I tried getDataProperty("text") but does not worked. I appreciate your help!
  4. Hey everyone! I'm trying to sum values to existing values on the table. Lets suppose that I have an int field called "items" then I want to sum / add more 3 (+3) to the existing value. Is there a way to do that on the MySQL itself or I have to query and sum in php and then store back the sum results? I appreciate your help!
  5. Hey everyone! I have these 2 tables and I am trying to design it in a way that when a product is deleted from the catalog it also get its entry removed from the installation table. The situation is: each installation has its own products list on it. but what if a product is no longer available? the installations having that product should remove it from the list. Appreciate any help! create table products ( id int unsigned auto_increment not null primary key, description varchar(64), price float(5,2) unsigned )type=InnoDB; create table inst_products (FOREIGN KEY (inst_id) references installation(inst_id) ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY (descID) references products(id) ON DELETE NO ACTION, inst_id int unsigned not null, unints smallint unsigned, descID int unsigned not null )type=InnoDB;
  6. hmmm interesting functions! I never heard of! Seems to solve my broblem! I'll test them! Thank you genericnumber1
  7. Hey everyone! I'm trying to figure out how to build a function to REPLACE non-standard chars in a HTML string such as É &#201; Ê &#202; Í &#205; Ó &#211; Ô &#212; something like function AnsiChars($htm_string){ ... return <<html with special char codes replaced>> } http://www.php.net/chr The problem is how do I get the char number to replace it try pressing ALT+0199 in your keyboard and you get what i mean. I appreciate any help!
  8. Hey everybody! I'm trying to build up a query to find a client by its telephone number. In this case I use tel LIKE '%55%' to find phone number containing '55' on it. The problem is that it results clients that even have a phone number registered. Probably it is due to some JOIN instruction missing. I don't know exactly. clients and contacts are referenced by primary/foreign key in InnoDB SELECT clients.id, clients.name, contacts.tel, contacts.tel2 FROM clients, contacts WHERE tel LIKE '%55%' GROUP BY name; Thank you for helping!
  9. really! Pentium 4 1gb ram i think it may be related to the fact that it access the array in another window but Thank you!
  10. Hey everyone! I am coding javascript with arrays in a way that a pop up window controls the array items on the parent window it works but gets slower to add an item to the array as it get more and more items on it. I mean 10 items on the array will bother the user pop up window manipulating the parent's array: window.opener.ArrUn[ index ] = document.list.un.value; window.opener.ArrDescID[ index ] = selectedID; window.opener.ArrDesc[ index ] = selectedText; window.opener.display(1); on IE it seems to be slightly faster the FF appreciate any help!
  11. solution: http://www.perlscriptsjavascripts.com/tutorials/javascript/window.html#07213446
  12. hey everyone! I'm looking for a way to open a pop up window (<a href ..> click) to list products in a combo or list box. What I do not know how to do is - link up <a href ..> to open a pop up window - return the selected choice from the <selected> option it is about 1000 products. I appreciate any help!
  13. There is just a problem: the current_field variable never apperas on the POST or GET string. Something like processform.php?field=aaaa?field=bbbb?field=cccc?field=dddd <script language="javascript" type="text/javascript> var current_field = 3; function addfield() { current_field ++; document.getElementById("extra_field").innerHTML += "<input type=\"text\" name=\"field\"" + current_field + " /><br />"; } </script> appreciate your time!
  14. Cheers mate! worked very well!!! I wonder how on earth did you discover that!!? I mean, i could never guess it document.getElementById("extra_field").innerHTML xenophobia, do you recommend any javascript tutorial?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.