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.
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...
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...
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...
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@
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@
(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...
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...
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>...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.