Jump to content

erdomester

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

erdomester's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. When I expand the ddbox, the whole webpage makes a jump then the ddbox becomes a fixed listbox. So when I want to use other ddboxes on the page, that one remains a listbox. But that is a great start:)
  2. mjdamato: EXACTLY! So I shall make a javascript list?
  3. This is a simple html code, I am sorry i didn't pay attention.. something like this: echo '<select name="hour">'; for ($i=0; $i<24; $i++) { if ($i < 10) { $i = "0".$i; } echo "<option value='$i'>".$i."<?/option>"; } echo '</select>'; Yeah, sg like the size operator, looking for a maxsize or sg, but havent found anything and begin to think that there no html solution for this...
  4. I want something like this: http://kepfeltoltes.hu/090529/ddbox_www.kepfeltoltes.hu_.jpg
  5. Single select. I dont get what you are saying. I have 190 elements in the dropdown box and when I click on the arrow (like here in the "Message icon" row: Standard), it "drops down" 16 elements. This is too many for me as I have not so much place on the website.
  6. Hi! Is there any way to max the size of a dropdown box? If I use size=X, it becomes a listbox of a size=X. The ddbox visualizes 16 elements but i want only 10 max. erdomester
  7. Solution: Instead of "_" i had to write "\_" Bye, erdomester
  8. NOT SOLVED!!!! I accidentally clicked on the button. So. Not working what u suggest. Not working either: CONCAT('%', $search, '_', '%') This results in an error: Error in query: SHOW TABLES FROM bkv45 WHERE Tables_in_bkv45 LIKE CONCAT('%', b206, '_', '%') Unknown column 'b206' in 'where clause' (b206 is the first table in the solution, nothing wrong with it, the code just somehow goes wrong) either this: LIKE '%".$search."_%' or this: LIKE CONCAT('%', '$search', '_', '%')
  9. Not ize:) Tables_in_bkv45 LIKE '%$blabla%'
  10. Neither this worked: $blabla = $search."_"; Tables_in_bkv45 LIKE '%$ize%'
  11. Hello, I have a statement like this: $sql_s = "SHOW TABLES FROM bkv45 WHERE Tables_in_bkv45 LIKE '%$search%' "; I have tables like this: B15_MW_something B36_MWS_anything B156_MW_notinteresting ....etc. Let's say $search=B15. The result of the query will be two tables: B15_something and B156_notinteresting. BUT i only wan't B15_something. How am i supposed to do that? I have tried LIKE '%$search%_' ->> error LIKE '%$search_%' ->> does nothing.
  12. Thanks. I removed the implode line. I had a similar query in another file connected to this where removing the implode resulted in an error. That is why I didn't give a try here.
  13. HAHO: b240_hkszcs_ind Array ( [0] => b240_hkszcs_ind ) 0 element of tablenames is b HAHO: kb240_ny_hkszcsp_ind Array ( [0] => kb240_ny_hkszcsp_ind ) 1 element of tablenames is k
  14. Hello, I have this code: $tablenames= array(); $tn=0; $search = $newarray[$i]; $sql_s = "SHOW TABLES FROM db WHERE Tables_in_db LIKE '%$search%' AND Tables_in_db LIKE '%k%'"; $result_s = mysql_query($sql_s) or die ("Error in query: $query. ".mysql_error()); while ($row_s = mysql_fetch_row($result_s)) { $tablenames = implode("", $row_s); echo "HAHO: ".$row_s[0]."<br>"; $tablenames[$tn] = $row_s[0]; echo $tn." element of tablenames is ".$tablenames[$tn]."<br>"; $tn++; } Why am I getting this result?: HAHO: b240_hkszcs_ind 0 element of tablenames is b HAHO: kb240_ny_hkszcsp_ind 1 element of tablenames is k Why is it getting only the first letter of the tablenames??? (I've put a "k" to the front of the second tablename to make sure that it is getting the first letter :S )
  15. Maybe my query line shoud look like $query = "SELECT * FROM $newarray[$i]; And before this I should make a query that (e.g. if bus "206" comprises "something street") checks all tables whose names contain "206_times" and "W" (if today is Wednesday). So I may need something like SHOW TABLES FROM DATABASE_NAME WHERE table_name contains 206_times and W.... What do U think?
×
×
  • 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.