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: Elmserv
  • Order by date
  1. Elmserv

    trouble with mysql insert statement

    Thank you, I didn't even know that a list of reserved words existed. Now I have a link. Its quite satisfying when you get to the bottom of this sort of problem. Richard PS it does work
  2. Elmserv

    trouble with mysql insert statement

    So that you can see the whole picture while ($x <= $mast_page) { if ($_SESSION['units'.$x] * $_SESSION['price'.$x] != 0) { $unit = $_SESSION['units'.$x]; $unitprice = $_SESSION['price'.$x]; $desc = $_SESSION['desc'.$x]; $query="INSERT INTO...
  3. Elmserv

    trouble with mysql insert statement

    INSERT INTO `sledgerdet`(cno, invno, row, unit, desc, unitprice)VALUES (3, 25, 1, 10,' dffcffghhjjkkjuhkuu', 10)
  4. Elmserv

    trouble with mysql insert statement

    Yes it is PHP a lot of people in the PHP forum have helped me. I am afraid to say that it doesn't work. If it doesn't work I have a die(mysql_error(mysql)); The error is:- You have an error in your SQL syntax near 'desc, unitprice)VALUES (3, 25, 1, 10,' gggggggggggggg', 10)' I have...
  5. Elmserv

    trouble with mysql insert statement

    I was a foxpro AP for 12 years and you get very confident when writing the select or insert statements you have to be. I can't find any consistancy with mysql 3.23.58 Lets take an example INSERT INTO `sledgerdet`(cno, invno, row, unit, desc, unitprice)VALUES ($mast_cno, $invno, $invrow...
  6. Elmserv

    Password problem

    Thanks for your help. Another couple of years & I might get the hang of it Regards Richard
  7. Elmserv

    Password problem

    Hi I wasn't too far away, was I !! <?php if(session_id() == "") {session_start(); } session_destroy(); $redirecturl = "../index.php"; header("Location: $redirecturl"); ?>
  8. Elmserv

    Password problem

    I have two identical web areas The initial screen asks for username & password (on both) On the development area the computer has started to "remember" the password. This is my accounts & I often work on site then generate the invoice using any computer that has access to the web & a printer...
  9. Elmserv

    passing parameters to a subform

    Now you are trying to baffle me Rich
  10. Elmserv

    passing parameters to a subform

    I have cracked it thanks to you lot. I have used 3 submit buttons and the isset function tells me which one has been pressed. I think "($_POST['submit'])" this bit of code might also tell me which button has been pressed. (I will investigate) I didn't know you could have multiple submit...
  11. Elmserv

    passing parameters to a subform

    unfortunatly I have no knowledge of javascript so I will go to plan b and set up 3 radio buttons with a submit button Thanks for your help Richard
  12. Elmserv

    passing parameters to a subform

    Thanks for replying I have three buttons on the bottom of form New Line Recalculate Create Invoice (and print) I could put a radio button and a submit, but this is getting me annoyed & I want to no how to do it. I see something similar in PHPmyadmin but the code is not available to me Rich
  13. Elmserv

    passing parameters to a subform

    If my button "Add line" is used to call a prog newline.php the $_POST variables are not visible in the newline.php. Rich
  14. Elmserv

    passing parameters to a subform

    I am creating an invoice form in php I have a button on the bottom that can add a new line by calling itself with a parameter invscreen.php?lines=x I have no trouble working out the lines and creating a multi line invoice. As you enter the form the SESSION variables are created but what I...
  15. Elmserv

    I can't see the wood for the trees

    Brilliant Thanks very much, I looked at that for days. It will be a long time before I forget that lesson Richard
  16. Elmserv

    I can't see the wood for the trees

    I am getting this error message Notice: Undefined index: invno in /home/clients/rcldev/html/rlt/invoicecreate.php on line 97 From this chunk of code // get next invoice no $query = "select max(invno) from sledger where cno = $mast_cno"; $mysql = conectmysql(); $res =...
  17. Elmserv

    formating problem

    I have just cracked it, several faults. 1. it was in a loop 2. the variable $cOutput was not being reset after printing a page How difficult is it to do a pdf, I am not to keen on the footer saying the name of the file & the date rich
  18. Elmserv

    formating problem

    would a different tack be helpfull. I was thinking of creating a pdf file then printing it rich
  19. Elmserv

    formating problem

    no
  20. Elmserv

    formating problem

    I am putting this chunk of code at the start of a report $cOutput= '<input type="button" value="Print this page" onClick="window.print()">'; I print $cOutput to the screen afterwards At the mo it repeats itself on every screen, can I have it so it only prints once? Rich

Part and Inventory Search

Back
Top