Please, why does the first textarea work but the second not ??
<html>
<head>
<style type="text/css">
#txt {style="backgro und-color:#F0F0F0; color:#0000FF; font-size:10pt;"}
</style>
</head>
<body>
<form>
<p>Area 1</p>
<TEXTAREA NAME="this1" COLS="40" ROWS="3" STYLE="backgrou nd-color:...
User Profile
Collapse
-
Which is most efficient please
I have a DB with 100K records
I need to pull out ONE records at a time for processing
I say SELECT * FROM table WHERE done=0 LIMIT 1;
Since the records have 30+ fields (some large) would it be better to say
SELECT id FROM table WHERE done=0 LIMIT 1;
and then do another SELECT * for this 'id'
Just thinking of mySQL holding all that data just to throw it all away again for the... -
Locking Needed
PHP/mySQL website to allow multiple user editting records facility.
Each record has 'status' '0'=awaiting edit;'1'=being editted;'2'=don e
PHP makes mySQL query
[CODE=mysql]SELECT * FROM table WHERE status=0;[/CODE]
Then needs to quickly update status of this record to '1' to prevent someone else getting it.
Or should it be [CODE=mysql]UPDATE table WHERE status=0 set statu... -
Even more info.
Looks like Windows only
Tried the above little test on Linux Server & all's well
Trouble is - I need it to work on Windows -
More info:
File getim.htm contains:
[CODE}
<html><body>
<image src="./getim.php">
</body></html>
{/CODE]
File getim.php contains:
...Code:<?php $command="dir"; exec($command); $img=file_get_contents("gim29.gif"); header("Content-type: \"image/gif\""); print $img;Leave a comment:
-
PHP exec upsetting get_file_contents
Hi
I'm running with PHP5 on WAMP & have come across a problem. I use the following php script to respond to an <image src="this.php?s ource=xxx">
...Code:// get $source & $res $command = "convert -geometry $res $source gim29.gif"; exec($command); if (file_exists("gim29.gif")) { if($img = @file_get_contents("gim29.gif")) { -
Thanks - innerHTML - I just came back to say I had discovered this solution only to find the suggestion waiting here for me !
I embedded <span id='menu1'> ...pure text... </span>
since I have some other stuff within the <li> . . .</li>
Is this cross-browser safe ?Leave a comment:
-
Sorry - incomplete submission
the updateMenu is called from an onChange event in a form.
so <input type='text' id='shortform' value='' onChange='updat eMenu(this)'>
Further reading seems to imply that the <li> element's value is actually its position in the list.
How can I change the associated text ?Leave a comment:
-
Change list item text
Hi
Forgive me if a stupid question but . . .
I have
[HTML]<ul>
<li id='menu1'>MENU ONE</li>
<li id='menu2'>MENU TWIO</li>
<li id='menu3'>MENU ONE</li>
....... etc....
</ul>[/HTML]
and some Javascript
[CODE=javascript]function updateMenu(item ) {
menuID="menu" + document.thefor m.which.value;...
No activity results to display
Show More
Leave a comment: