User Profile

Collapse

Profile Sidebar

Collapse
adriann
adriann
Last Activity: Jan 9 '07, 06:44 AM
Joined: Aug 29 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • adriann
    started a topic JS wont populate a textbox via FireFox.

    JS wont populate a textbox via FireFox.

    Hi. This code works fine in IE, but absolutely nothing - zip - zilch happens in Firefox. Not even an error message.
    An item from a drop down menu is selected, which calls the JS function, which then populates a text box with some text.

    What code would you recomend I use to get the message into the text box?
    thanks - Adrian.

    ---------------------------------------------------------------------
    Code:
    function
    ...
    See more | Go to post

  • adriann
    started a topic Stuck with Session Variable code problem
    in PHP

    Stuck with Session Variable code problem

    Hi,
    I have a page that displays Mysql query results in either "simple" or "detailed" format. The directive to display in the desired format is obtained by looking at the value of a Session variable.

    If the variable is not set, (ie: first time a search has been initiated), then "simple" mode is assumed and the session variable set accordingly.

    As part of the finished page, there is...
    See more | Go to post

  • adriann
    started a topic While Loop Problem.

    While Loop Problem.

    I have a strange problem whereby an attempt at a looped SQL query only passes successfully once.
    I get the error..
    Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in...
    ... at the line where the WHILE loop is placed.

    It is the mysql_fetch_arr ay command embedded in the while loop that seems to be the problem,.
    Therefore, my question is... Is my "WHILE" in Example...
    See more | Go to post

  • adriann
    started a topic cant get text into the DB

    cant get text into the DB

    Hi,
    Im having a lot of trouble with an INSERT into a DB, and I think its because the big hunk-o-text I want to insert contains the QUOTE characters.
    This one --> " <-- (Ascii(22)).

    I will be inseerting the body text of emails, so it's likely that this will occur often.
    Could the occourence of these characters in the text I want to INSERT screw up the operation?
    The other values have the quote...
    See more | Go to post

  • adriann
    started a topic Trying to copy items to an archive DB.

    Trying to copy items to an archive DB.

    In the basic & crude code example below,...

    $result = mysql_query("se lect * from news, where status = "archived") ;
    while($r=mysql_ fetch_array($re sult)) {
    // process $result as required
    }
    }

    ...it is my understanding that the variable "$result" holds 1 entire row of the content of a database. Firstly, is that statement correct.???
    ...
    See more | Go to post

  • adriann
    replied to Dynamic use of <DIV>'s
    thanks for that info, which leads me to anther question.
    If I hide the DIV and keep on dynamically creating a new ones, will I potentially run into memory or resource problems.

    Perhaps if I use the same name or id for the DIV, then would that effectively destroy any previous instance of the DIV?

    Is that logic correct?

    thx
    See more | Go to post

    Leave a comment:


  • adriann
    started a topic Customised Browser Windows

    Customised Browser Windows

    HIm
    Im using JS code to lauch a new browser window without address bars and drop down menus etc etc, but on the title bar, I'd like to be able to have only the Close Button, (The Red X).
    I dont want the Restore Icon or the Minimise Icon,

    Can this be done using JS.?

    thanks
    Adrian
    See more | Go to post

  • adriann
    replied to Populating Arrays via code
    in PHP
    Hey, thanks for that. That works!
    I also found another solution.

    At the section of code where each new item is to be added into the array...
    array_push($Sub urbsArray, $NewItem)



    regards,
    Adrian
    See more | Go to post

    Leave a comment:


  • adriann
    started a topic Dynamic use of <DIV>'s

    Dynamic use of <DIV>'s

    Hi,
    I'm using PHP to echo or stream out some DIV tags with content inside, by a user selection, and after a page has initially loaded.

    My question is, Can I erase this dynamically created DIV container through a "close" button within the DIV... or... some other method?

    thank you.
    See more | Go to post

  • adriann
    started a topic Populating Arrays via code
    in PHP

    Populating Arrays via code

    Hi,
    How do I populate a flat array through a loop type sequence.
    So far I have a basic query resulting in a few rows of data.

    $sSql = 'SELECT suburb'
    . ' FROM locations'
    . ' WHERE locations.postc ode = '.$postcode
    . ' LIMIT 0 , 40;';

    $result = mysql_query($sS ql) or die('Query failed: ' . mysql_error());
    $numberOfRows = mysql_num_rows( $result);
    $i =...
    See more | Go to post

  • adriann
    started a topic About SESSION varaiables
    in PHP

    About SESSION varaiables

    HI,
    can a $_SESSION variable be used to hold either a simple or a nested array.
    thx
    See more | Go to post

  • adriann
    started a topic Content of text box into a PHP cariable
    in PHP

    Content of text box into a PHP cariable

    HI,

    Can the content of a Text Box within a HTML form, (either text or numeric), be assigned to a PHP variable? before the submit button is pressed.

    I was thinking of using the OnChange event as a way of initiating the function.
    The value would be set once there was 4 characters typed in.

    thank you
    See more | Go to post

  • adriann
    started a topic Passing values back & forth between other pages
    in PHP

    Passing values back & forth between other pages

    I encounterd a form which required a date in a specific format.
    I clicked on an icon representing a calendar.
    A calendar object in a tiny window lauched to allow me to choose a date.
    After clicking OK, I was returned to the original form, and the date value was passed into the text field.

    How would this have been done?

    thank you
    See more | Go to post

  • adriann
    replied to Executing another PHP page
    in PHP
    Hi Ronald,

    I tried yr code suggestion but I got the old "headers already sent " error message.

    Warning: Cannot modify header information - headers already sent by... blah blah blah.

    Are there any other ways to perform this task?

    thank you.
    See more | Go to post

    Leave a comment:


  • adriann
    started a topic Executing another PHP page
    in PHP

    Executing another PHP page

    Hi,
    I have a section of code, whereby after satisfying certain conditions of variables,
    I would like PHP to leave it's current page, and launch a different PHP page.

    Sort of like if a user had clicked on a Link or a submit button.

    thank you.
    See more | Go to post

  • adriann
    replied to php & javascript interaction
    in PHP
    thanks guys. i can now understand the subtle process that are happening here.
    thanks also for the code examples.
    See more | Go to post

    Leave a comment:


  • adriann
    started a topic php & javascript interaction
    in PHP

    php & javascript interaction

    Hi,

    can PHP be used to execute a JavaScript function?
    And, can JavaScript be used to execute a PHP function?

    if so, what is the basic coding to perform these actions.

    thank you
    Adrian
    See more | Go to post

  • adriann
    replied to Text is missing its Paragraph seperation
    Hey KUB365, Thanks. thats exactly what was required.
    Wow, PHP is packed with many features which make life very easy. I guess it will take a while for me to eventually discover them all.
    thanks again.
    See more | Go to post

    Leave a comment:


  • adriann
    replied to mixing logic types in MySQL queries
    the above post was sort of invalid by virtue of the fact that I had...
    "letter_id = "1"

    This would imply that only one unique record would be retrived. Thereofre, just ignore that part of it... the rest of my example should illustrate my question a bit more clearly.

    thank oyu
    Adrian
    See more | Go to post

    Leave a comment:


  • adriann
    started a topic mixing logic types in MySQL queries

    mixing logic types in MySQL queries

    Can the "WHERE" component of a query have the equivilants of brackets to seperate AND & OR conditions.

    eg:

    WHERE
    letter_id = "1",
    AND
    letter_author = "fred",
    AND
    (authors_city = "london" OR authors_city = "new york"),
    AND
    blah.. blah..

    thanks
    See more | Go to post
No activity results to display
Show More
Working...