www.webdeveloper.com

Search:

Type: Posts; User: Jodarecode

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    846

    I just posted this for a different question but...

    I just posted this for a different question but may help anyway.


    <html>
    <head>
    </head>
    <body onload="addtext()">

    How do I keep the cursor position after the " has been replaced with...
  2. Replies
    4
    Views
    1,871

    This was a quick one I came up with, it works in...

    This was a quick one I came up with, it works in firefox so far.
    I hope this helps!!

    test1.php

    <?php

    $img1 = "image1.jpg";
    $img2 = "image2.jpg";
    $img3 = "image3.jpg";
  3. Replies
    4
    Views
    1,871

    ..I would use php, not javascript.

    ..I would use php, not javascript.
  4. How do I keep the cursor position after the " has been replaced with "?

    <html>
    <head>
    </head>
    <body onload="addtext()">

    How do I keep the cursor position after the " has been replaced with &amp;quot;?<br><br>
    <form name="update" id="update" method="post" action="">
    ...
  5. I tried that and did not work, so I tried again...

    I tried that and did not work, so I tried again creating a new column called id as primary and auto increment, still did not work.

    To recap:
    userid is always the same for the user whos logged in...
  6. INSERT and/or UPDATE using ON DUPLICATE KEY UPDATE issue

    the code below saves but only the last field. When I update that field it updates just fine, but its confined to only that field to insert or update.

    so, its working but for only one field and not...
  7. Replies
    11
    Views
    1,258

    Any Ideas?

    Any Ideas?
  8. Replies
    11
    Views
    1,258

    The above was there error I echo out using: ...

    The above was there error I echo out using:

    $query = "INSERT INTO formdata (userid, fieldid, value, saveas) VALUES (saveas) ON DUPLICATE KEY UPDATE";
    echo $query . "<br />\n";

    I tried:
    ...
  9. Replies
    11
    Views
    1,258

    this is what I get below with two of the fields...

    this is what I get below with two of the fields filled with a value



    userid would be: 27, 27 - this is ther user id
    fieldid would be: purchaser, orderno - this is the field names
    value would...
  10. Replies
    11
    Views
    1,258

    I've tried using that before and I've tried every...

    I've tried using that before and I've tried every combination I could think of and will not save or update, any Ideas what I'm doing wrong?


    $query = "INSERT INTO formdata (userid, fieldid,...
  11. Replies
    11
    Views
    1,258

    Works perfect foreach($_POST as $fieldid =>...

    Works perfect

    foreach($_POST as $fieldid => $value){
    if(in_array($fieldid,$fieldstoinsert)){
    if(trim($value)!=""){
    mysql_query("UPDATE formdata SET userid =...
  12. Replies
    11
    Views
    1,258

    Still not working, now it deletes everything...

    Still not working, now it deletes everything replacing each with the last value...any ideas?

    EDIT: original code to save to database works great, just need the update option
    ...
  13. Replies
    11
    Views
    1,258

    Update mysql php code not working

    Any ideas why the code below is not updating?


    $fieldstoinsert=array('purchaser', 'orderno', 'contact', 'shipto', 'street', 'city', 'state', 'zip', 'orderdate', 'reqshipdate', 'shipviaUPS',...
  14. Resolved! needed to change for($b = 0; $b...

    Resolved!

    needed to change

    for($b = 0; $b <= 9; $b++)
    to

    for($b = 1; $b <= 9; $b++)
  15. I seem to of replaced numrows with 240 and added...

    I seem to of replaced numrows with 240 and added the dots and seems to be working fine except the same problem as earlier with the whole row pushed one TD to the right.


    for($a = 0; $a <= 240;...
  16. OK, fixed that [EDIT:] Thats funny I just saw...

    OK, fixed that [EDIT:] Thats funny I just saw that!! I'll re-step through it Thanks!

    Now it pushes the values one TD to the right leaving a blank TD in the beginning and extending the 9th TD into...
  17. I'm trying to avoid the brackets if at all...

    I'm trying to avoid the brackets if at all possible since certain codes are dependent on no brackets.

    I found a solution but I'm back to the beginning with an old question again.

    I need all...
  18. [RESOLVED] help with script to email values up to 240 fields

    Issue:
    it wont display the values when emailed, I modified the script below but I think I'm doing something wrong.

    the fields consist of:

    1st row: textbox_r1_c1, textbox_r1_c2, textbox_r1_c3,...
  19. Saving and/or updating existing values in database

    ok, I need help on saving to a database or updating if already exits

    example

    $fieldstoinsert=array('purchaser', 'orderno', 'contact', 'shipto', 'street', 'city', 'state', 'zip', 'orderdate',...
  20. Replies
    9
    Views
    1,174

    I wrote out all 240 of them into the array and...

    I wrote out all 240 of them into the array and seems to be working ok, wasn't that hard to write out with Programmers Notepad 2 using the replace function, I was more worried about loading or saving...
  21. Replies
    9
    Views
    1,174

    They all seem to save and retrieve just fine...

    They all seem to save and retrieve just fine except for that last bit. if I were to write each one all the way up to 240 fields, it will work, but its just way too much code, not sure why its not...
  22. Replies
    9
    Views
    1,174

    hmmm...not working, I can echo out each value :D...

    hmmm...not working, I can echo out each value :D


    <?php

    <?php

    for ($i=0; $i<=240; $i++) {
    for ($j=0; $j<=9; $j++) {
    echo "${"textbox_r".$i."_c".$j} ";
  23. Replies
    9
    Views
    1,174

    Perfect, Learned something new! now, I just...

    Perfect, Learned something new!

    now, I just need to figure out how to implement it to save

    1st concern) Currently I have and is still not saving the 1 thru 240 fields, what am I doing wrong?
    ...
  24. Replies
    9
    Views
    1,174

    Keep in mind I need to loop thru all: ...

    Keep in mind I need to loop thru all:


    "textbox_r1 thru 240_c".$i
  25. Replies
    9
    Views
    1,174

    saving fields in database using php

    The code below saves top portion of the order form. What I need is to save 240 other fields, they are named and shown as:

    each row is textbox_r1_c1, textbox_r1_c2, textbox_r1_c3, textbox_r1_c4,...
Results 1 to 25 of 176
Page 1 of 8 1 2 3 4
HTML5 Development Center



Recent Articles