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

    Limiting a Query result to the last 50 records

    I have a query that is getting me ALL the records from two tables. For one application I have I only need the last 30 records. I tried Limit 30 but that only got me the first 30. The table is ever growing so I will never know the number of records in the tables until I run the query. Here's...
  2. elentz

    Need help with an epoch to human date in a query

    I see what you mean. I guess since my result is being passed to BaaGrid and I am setting the column names there it all works out. :) Lucky I guess Thanks
  3. elentz

    Need help with an epoch to human date in a query

    Thanks for the reply. Actually I JUST figured it out and you are right I went to the wrong forum. But haer is what I used and it works as I need it $sql = "Select FROM_UNIXTIME(stime,'%h:%i:%s %D %M %x'),direction,Trunk,Source,destination,CallLength from export where Trunk = 'nexVortex'"...
  4. elentz

    Need help with an epoch to human date in a query

    I have some log entries that have the date / time in epoch time. It is in a MySql db and I have a query to show everything I want. The problem is how do I change the epoch time to human time / date when the query is run? The query I am using is: $sql = "Select...
  5. elentz

    Missing something here

    That did exactly what I needed. thank you very much!
  6. elentz

    Missing something here

    Here's the problem I am trying to deal with. Normally when I use my CRM system to add a new product to my inventory I get the option to make it taxable. This is reflected in the producttaxrel table with the new productid, taxid, and taxpercentage entered. This works fine when I just add...
  7. elentz

    Missing something here

    actually would it be just as easy if producttaxrel table was empty, then an insert used? The producttaxrel table is used to indicate within my system which productid would be taxable using the other two fields. the common fields would be productid in any case Thanks
  8. elentz

    Missing something here

    I am trying to update a table with info from another table and also set two fields with the same info for each field. The first field productid will need to be inserted into the producttaxrel table with the contents of the same field in the products table. Here's my query: Update...
  9. elentz

    Need help with a Update Query variables

    Well, I tried $cf_565="7629"; Where I knew the 7629 had something in its records for the query. No luck , I got nothing in the update query. Any other suggestions? Do I have the queries right considering the other queries I have going on, could they be interfering somehow?
  10. elentz

    Need help with a Update Query variables

    Thanks for the speedy reply! I will write a query to make sure I get that cf_565 info. I'll try a $cf_565 = xxxx to see if that works and I 'll clean up the other things you mentioned. I'll report back Thanks Again
  11. elentz

    Need help with a Update Query variables

    The $id is used elsewhere within the script I am about to upload. So I know it is OK. I tried to use a known good number instead of $cf_565 leaving the $id and I still didn't get the table update I am looking for. So here is my code, I am sure it is very sloppy but until now it appears to...
  12. elentz

    Need help with a Update Query variables

    I have a select and an update query that work perfectly if I manually enter the record numbers for cf_565, and id. The fields get updated as they should. as soon as I try to use the variables $cf_565 and $id it fails. I get no error messages. I would also like to use an IF statement to...
  13. elentz

    Need an Update Query Using several tables

    Thanks That works beautifully!
  14. elentz

    Need an Update Query Using several tables

    thanks! But when I run the query I get: #1054 - Unknown column 'vtiger_quotes.quoteid' in 'on clause'
  15. elentz

    Need an Update Query Using several tables

    I want to change a field using two other fields. I have no problem getting the fields I want in a Select query but for some reason I have a mental block on how to do an update, since the information is in several tables. Here is the select Query that works: SELECT vtiger_quotes.quoteid...
  16. elentz

    Need help in changing file names

    I apologize jpadie! I did not use the code you provided just above until just now. It worked! It even kept the original files, that is a bonus! Thank you !!
  17. elentz

    Need help in changing file names

    Well, going into CP and changing all the files to 0755 and the script to 755 got rid of the error but it didn't cnage the names nor did it throw an error. I just got a blank screen. I have all the files and the account/phone list, and the script in the same directory under my web root. I am...
  18. elentz

    Need help in changing file names

    All I get is "500 - Internal Server Error" Common reasons for this error are: * Incorrect file/directory permissions: Above 755. In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or...
  19. elentz

    Need help in changing file names

    Can't get a command prompt, my server is on a shared Linux system at my website. Using FTP I changed all the file properties to 0666, I kept getting an error saying that I couldn't execute files with permissions above 0755 from my provider. The error handling code produced no errors. Maybe...
  20. elentz

    Need help in changing file names

    Geates, I got something wrong. Don't know what. I am still getting the vbs error Bad file name or number.

Part and Inventory Search

Back
Top