User Profile

Collapse

Profile Sidebar

Collapse
barrypalmer
barrypalmer
Last Activity: Mar 13 '08, 08:51 AM
Joined: Oct 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • barrypalmer
    started a topic CSS & TEXTAREA

    CSS & TEXTAREA

    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:...
    See more | Go to post

  • barrypalmer
    started a topic Which is most efficient please

    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...
    See more | Go to post

  • barrypalmer
    started a topic Locking Needed

    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...
    See more | Go to post
    Last edited by mwasif; Dec 14 '07, 12:48 PM. Reason: Added [CODE=mysql]/[/CODE] tags

  • barrypalmer
    replied to PHP exec upsetting get_file_contents
    in PHP
    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
    See more | Go to post

    Leave a comment:


  • barrypalmer
    replied to PHP exec upsetting get_file_contents
    in PHP
    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;
    ...
    See more | Go to post

    Leave a comment:


  • barrypalmer
    started a topic PHP exec upsetting get_file_contents
    in PHP

    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")) {
    ...
    See more | Go to post

  • barrypalmer
    replied to Change list item text
    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 ?
    See more | Go to post

    Leave a comment:


  • barrypalmer
    replied to Change list item text
    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 ?
    See more | Go to post

    Leave a comment:


  • barrypalmer
    started a topic Change list item text

    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;...
    See more | Go to post
    Last edited by gits; Oct 29 '07, 12:17 PM. Reason: added code tags
No activity results to display
Show More
Working...