Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: hos2
  • Order by date
  1. hos2

    How to dynamic use printf together with input type textfields?

    yep $ary holds the row results it loops through all the fieldnames of you're select statement and puts the values ($value) into variables of their fieldname ($$key) so if you have 10 fieldnames you get 10 (in this case select options) if you have 20 fieldnames you get 20 select options but if...
  2. hos2

    How to put a value in an input file box?

    you could use cookies or sessions to store the value temporarily
  3. hos2

    How to dynamic use printf together with input type textfields?

    here a small example where I build up a menu which is generated from the database. you can also use it for inputfields like above $q_result = mysql_query("SELECT * from contenttable order by coorder"); while ($ary = mysql_fetch_assoc($q_result)) { //one while (list($key,$val) = each($ary)) {...
  4. hos2

    How do you dynamically create private variables?

    perhaps because the variable type private doesn't exist in PHP , if you have some reference in a manual where it's used I would like to see but I can't find it on http://nl2.php.net/manual/en/language.variables.scope.php hey I don't know all the options php has to offer so when someone comes...
  5. hos2

    How do you dynamically create private variables?

    yep my example is almost the same but differs quite a lot because of the $$ assignment suppose you have a variable $test='var1'; then $$test='hallo'; echo $var1; gives back "hallo" perhaps is there something wrong with $this, I have never seen that before but I just copied you're code...
  6. hos2

    Variable in array value

    $lib_dir_2['value']=$lib_dir perhaps ??
  7. hos2

    How do you dynamically create private variables?

    or foreach ( $array as $new_var ) { private $this->$$new_var = ""; } ;)
  8. hos2

    Populate a drop down with selected value and others

    $query="SELECT * from artisttable order by arname"; $q_result=mysql_query($query,$conn); $templist=''; $templist = "<select name=\"agarid\"><option value=\"\">Empty"; while ($ary_stage = mysql_fetch_assoc($q_result)) { //one status while (list($key,$val) = each($ary_stage)) { $$key = $val; }...
  9. hos2

    Variable in array value

    you're welcome ;)
  10. hos2

    Variable in array value

    $test=array() $test['value']="aa" . $my_var . "cc"; $test['text']="My TEST"; and to put the values in an var with the corresponding value you do while ( list($field, $value) = each ($test)) { $$field=$value; } something like this ??
  11. hos2

    If a variable contains nothing then.....

    if ($row[5] <> '') {echo $row[5]."<br>"; // Add3}
  12. hos2

    multiple multiple select boxes dynamically created.

    you can also use checkbox if a user is allowed to select more values of the same field
  13. hos2

    Session var = object

    an awful lot ?? I'm als obusy with sessionvariables in MYSQL and I was wondering that if I want to make my pages multilanguage if it's the best to store all the vars of the textobjects in the session or use include files for it ????
  14. hos2

    date functions - how to find all available dates in range

    pfff here are some dat functions that retrieve the amount of days. then it's simple to loop through that amount of days add 1 day each time and add them in an array http://nl2.php.net/manual/en/function.date.php
  15. hos2

    Logic help needed

    and that mother in laws are put in a far away appartment as possible ;)
  16. hos2

    Logic help needed

    in the piece of logic you must also consider which appartments you want to fill first, the large appartments or the smaller ones .
  17. hos2

    replacing double space by a single

    the slashes are normal to be in front special characters. translated back to html they will show the right sign without a slash ;) only the last statement is good
  18. hos2

    Get all $_POST variables

    nice article, I was always curious about that sql injection :)
  19. hos2

    Get all $_POST variables

    that's called a radiobutton if it's yes or no. checkbox is for multiple answers possible ;) I have a nice script for checkboxes multiple values ;)
  20. hos2

    Get all $_POST variables

    do you need to create a string for each checkbox since a checkbox can have multiple values ?? or just 1 total string?

Part and Inventory Search

Back
Top