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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by maslett

  1. maslett

    Creating an array from an SQL table description

    You learn something new every day! Cheers :)
  2. maslett

    Creating an array from an SQL table description

    I guess I want to "implode" the result from the sql "describe" into the array.
  3. maslett

    Creating an array from an SQL table description

    Eh? The loop in the first post is pretty much the same as the loop in the second post - they differ only in what happens between the brackets. To quote yourself: "that was not the loop I referred to" - so which loop were you referring to? There's only one loop. Sorry for being such a doofus.
  4. maslett

    Creating an array from an SQL table description

    while($row = mysql_fetch_array("describe names;")) { $field[]=$row; } print_r($field); Didn't work... Output is: NULL
  5. maslett

    Creating an array from an SQL table description

    Hi, I'm trying to create an array from an SQL table description. When I run this: $res = mysql_query("DESCRIBE $tablename"); while($row = mysql_fetch_array($res)) { echo "{$row['Field']} - {$row['Type']}<br>"; } I get: name - varchar(20) age - int(3) ...I'd like to get the results...
  6. maslett

    Will more RAM help my database server?

    Cheers guys/gals. OS: Linux 2.4.31 #6 Sun Jun 5 19:04:47 PDT 2005 i686 unknown unknown GNU/Linux Specs: xxxxxxx description: Low Profile Desktop Computer product: OptiPlex GX1 450L+ vendor: Dell Computer Corporation serial: RRDNL width: 32 bits capabilities...
  7. maslett

    Will more RAM help my database server?

    Hi, I have inherited an apache/mysql server at work. Every morning my colleagues complain about the speed of the database - looking at the sql process list there are usually about 8 SELECTS running, each using multiple tables one of which contains over 2.5 million records. The thing grinds...
  8. maslett

    Long complex string not being contained in a div container.

    Hi, I'm having a problem with long strings not being contained in a div container. The strings are computer generated and contain all manner of quotes and slashes so I don't want to go down the php route (I've tried). I've noticed the 'code' TGML tags on this site handle it correctly and they...
  9. maslett

    Keeping long complex strings contained in a div

    I guess that could work but it's not a permanent fix for the problem. I had a look at the source code for this page and tek-tips use a css class for their code tags (which do exactly what I'm after) so I'm going to the css forum. Cheers anyway! m@
  10. maslett

    Changing Turkish Vista to English

    Thanks Linney - I've decided to get the owner to change the language. Too much hassle for a freebie fix!
  11. maslett

    Keeping long complex strings contained in a div

    HaHa - you're writing replies quicker than I can! I'll have a word with my web host - nowdoc seems to be the answer. Will update the thread if I can. Thanks for your help! Regards, m@
  12. maslett

    Keeping long complex strings contained in a div

    (message to self - read the error message) The problem isn't line 17 in the source - it's line 17 in the include file. Here's the whole include file mentioned in the error message - line 17 is in bold: <p class="boxtitle">electric-box - a VERY addictive puzzle game</p> <div...
  13. maslett

    Keeping long complex strings contained in a div

    Weird - I put the single quotes in: $mystring=<<<'ENDOFTEXT' {"0$#0"$0D%2%&0"'1/(0#,0|/0920|@0DB0#D2)F0DJ0DK2)M0"O0#P0DT0#U0#V0#X0#Y0#Z0#]3D^0#`0)a2&b0"c0"d0$e2Dg2Dh0Aj0Dk0)l0Dn0Do2Dq1Dr0"s1Dt0"u1Dv0"w1Dx0"y0D~(#/43)/3~!0"B+?,@-.5?6@7+?G@GA6I(J(K(} ENDOFTEXT; echo $mystring; ...and got this...
  14. maslett

    Keeping long complex strings contained in a div

    That looked promising but it didn't work. Here's the code I used - example1 displays it in html then example2 uses your suggestion: <div class="textleft"> Example1:<br>...
  15. maslett

    Keeping long complex strings contained in a div

    Hi, I'm trying to keep a long string contained in a div - the problem is I'm not defining the string and it may contain all types of quotes and other control characters (the string is computer generated) Here's an example...

Part and Inventory Search

Back
Top