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...
Bingo! Thanks vacunita - that worked.
For the record...
This DIDN'T work:
mysqlrecord
some html code
more html code
<php some php code;?>
PHP code
echo $mysqlrecord;
This DID work:
mysqlrecord
?>
some html code
more html code
<php some php code;
PHP code
eval ('$mysqlrecord')...
Thanks for the reply but herein lays the problem... you say "control panel" but all I can see is a load of Turkish words. I have actually already found the control panel and then 'regional settings' by trial and error but then it gets a bit harder!
Cheers anyway.
Whoops2!
I visited the link in Feherks's footer about learning Linux, then I read jpadie's comment and thought he was insinuating I should learn Linux - which he/she wasn't.
Jeez - I'm really putting my foot in it today...
Whooops! I'd completely forgotton about this thread - sorry to everyone who replied, it was rude of me.
To answer some questions from above...
OS: Linux 2.6.24.5 x86_64
PHP: 5.2.6 (integration method?)
Webserver (from phpinfo): Apache/2.2.11 (Unix) PHP/4.4.9 mod_ssl/2.2.11 OpenSSL/0.9.8c...
Hi, A friend has given me their laptop to fix a problem but the language is set to Turkish. It's running Vista Home Premium and I don't have another Vista machine to figure out what to do.
Could someone please talk me through it using steps like 'the world icon with a blue square, the 2nd tab...
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.