Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dongbamage
  • Order by date
  1. dongbamage

    chained listboxes

    I can't seem to find a working example of a dynamiclly generated php/ javascript listbox so I guess it would be useful to a lot of people, and will post the finished script so that others can use it. ( If u know otherwise please feel free to correct me) I will check my php code if u think that...
  2. dongbamage

    chained listboxes

    ok this is the code i'm using: <? include ('/files/home3/munchexpress/Includes/db_connect.php'); $sql="SELECT CategoryID, Name FROM categories WHERE CategoryParentID = 0 AND Name <>'Top'"; $result=mysql_query($sql) or die ("dead"); $mainselect = array(); while($row=mysql_fetch_assoc($result))...
  3. dongbamage

    chained listboxes

    ok I'm trying this but I get a parse error: unexpected $ on the last line: <? include ('db_connect.php'); $sql="SELECT CategoryID, Name FROM categories WHERE CategoryParentID = 0 AND Name <>'Top'"; $result=mysql_query($sql) or die ("dead"); $mainselect = array()...
  4. dongbamage

    Script works on its own but not in my page

    ok heres the view source version: <HTML> <HEAD> <style type="text/css"> <!-- body,td,th { border-color:#FFFF66; } body { background-image: url(/Images/blankpanelscrews.gif); color: #00CC66; } --> </style></HEAD> <TITLE>mysite.co.uk</TITLE> <BODY style="overflow-x:hidden;" > <P...
  5. dongbamage

    chained listboxes

    echo $option; echo '<option value="'; echo $option['value']; echo '">'; echo $option['text']; echo '</option>';
  6. dongbamage

    chained listboxes

    ok have tried that too, gives me: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /files/home3/munchexpress/hhh.php on line 81 echo $option['value']; I can't see anything wrong with it, still confused :) Cheers Chessbot you...
  7. dongbamage

    Script works on its own but not in my page

    this gives me: this.form.links is null or not an object <? include_once("/files/home3/munchexpress/Includes/db_connect.php"); $arraycount=0; $counter++; $counter2=($counter+1); $counter3=($counter+2); $sql= "select StockID, Photo, StockName from stock"; $result = mysql_query($sql) or die...
  8. dongbamage

    Script works on its own but not in my page

    but it gives me this.form is null or not an object...
  9. dongbamage

    Script works on its own but not in my page

    ok so i am trying this: <? include_once("/files/home3/munchexpress/Includes/db_connect.php"); $arraycount=0; $counter++; $counter2=($counter+1); $counter3=($counter+2); $sql= "select StockID, Photo, StockName from stock"; $result = mysql_query($sql) or die ("dead")...
  10. dongbamage

    Script works on its own but not in my page

    ahah! its actually changing the other links in the page rather than the links i want to change document.links[0].href so how how can I make the above code work with just the links I want to change? I have tried: document.js_ad.links[0].href but that doesn't work...
  11. dongbamage

    chained listboxes

    ok i've whittled it down to this line: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /files/home3/munchexpress/hhh.php on line 79 echo '<option value="' . $option['value'] . '">' . $option['text'] . '</option>';
  12. dongbamage

    Script works on its own but not in my page

    The script works on its own but not in my page
  13. dongbamage

    Script works on its own but not in my page

    Hi peeps, I made a little script that calls photo's from my MySQL db, then passes them from a PHP array to JS. The problem I'm having is although it works if run directly, when i add it to my mainpage, it doesn't work... Anyone got any ideas? Here's my code.. <? include_once $arraycount=0...
  14. dongbamage

    need your ecommerce advice!!!

    www.nochex.com is a uk based Small Electronic Money Issuer and accepts credit card payments, and has APC (automatic payment confirmation so that u can check/decline payments, etc) I am still attempting to set up Paypals API refunds etc, its a pain!
  15. dongbamage

    Warning: fread(): SSL: fatal protocol

    Hi guys I'm trying to use PEAR HTTP:Request, which requires Socket.php, URL.php and some other bits and pieces. The problem I'm having is when I run my code I get the following error: Warning: fread(): SSL: fatal protocol error in /files/home3/munchexpress/Includes/Net/Socket.php on line 262...
  16. dongbamage

    chained listboxes

    Nope! this still gives the same error: <? include ('/files/home3/munchexpress/Includes/db_connect.php'); $sql="SELECT CategoryID, Name FROM categories WHERE CategoryParentID = 0 AND Name <>'Top'"; $result=mysql_query($sql) or die ("dead"); $mainselect = array()...
  17. dongbamage

    chained listboxes

    Hi ok i changed that but now I'm getting: Parse error: parse error, unexpected T_SL, expecting ',' or ';' in /files/home3/munchexpress/Includes/chainedlistboxes.php on line 54 line 54 is: echo <<<END line 55 is function populate(mainsel) What does that strange <<<END command do?
  18. dongbamage

    Unique Order Num in multiple DB columns

    Hey man between you, me and Eric we have figured it out! I couldn't ask for more, thans for all your help guys!
  19. dongbamage

    Unique Order Num in multiple DB columns

    hi eric, can u explain this in a little more depth pls? If you're using an autonumber field you should use LAST_INSERT_ID() after you insert the record, which is specific to your connection and guaranteed to work. I'm not using an autonumber for OrdNum... hmmmmm maybe I could use the...
  20. dongbamage

    Unique Order Num in multiple DB columns

    Yep heres what I ended up using: <? include ('db_connect.php'); $sql="SELECT DISTINCT OrdNum FROM orders ORDER BY OrdNum DESC LIMIT 1"; echo $sql; $result = mysql_query($sql); if ( $result === FALSE ) { print "An Error occured while attempting to save your form"...

Part and Inventory Search

Back
Top