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 dencom 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: *

  1. JSProgramIA

    PHP Math , Percentages

    Yeah I know, this is simple High School stuff, but I must have skipped that day. $unit_cost = "45.00"; $selling_price = "52.45"; $the_markup = ???; // Need percentage of markup here Embarrassingly thankful for any help.
  2. JSProgramIA

    mySQL Timestamp to PHP problems

    The Problem: I am retrieving a timestamp field from a mySQL database running on Apache. I am trying to take this timestamp, and within PHP convert it to something actally readable. The record is being returned as follows: mysql> select last_updated from hours where project_id =2...
  3. JSProgramIA

    Is there a better way to do this?

    by better I guess more efficient, less code maybe? . . . $emails_row = mysql_fetch_array($emails_result); $message = $emails_row['emails_text']; // Replace values $message = str_replace("::company name::", stripslashes($emails_row['company_name']), $message); $message =...
  4. JSProgramIA

    Return Array from Function? How?

    This simple example does not work: function getProjectInfo($projectId){ global $row; // Retrieve info for supplied project ID // Returns $row $page_sql = "SELECT * from myTable"; $result = mysql_query($page_sql); $row = mysql_fetch_array($result); return $row; }...
  5. JSProgramIA

    Update Multiple Records , 1 Form

    I suppose a picture is worth a 1000 words: I know I have to user arrays somehow on each row, most likely by adding the project_id ( the primary key ) somewhere in the array. Could someone post a simple example on how to approach my problem? I am getting lost in this for each stuff. Thanks.
  6. JSProgramIA

    Help with my Drag Drop ( did it hit target? )

    Ok, I am working on a bit of code to drag and drop a layer. I used the drag / drop library from http://www.walterzorn.com and it works great. But I need a "SNAP BACK" feature. So I wrote it and incorporated it and it works fine. Now I need to detect whether my dragLayer hit the dropLayer...
  7. JSProgramIA

    Which COLUMN qualified my Query?

    I am trying to figure out which column the query was qualified on. For instance: SELECT * FROM products WHERE product_id LIKE '%somethingHere%' OR product_description LIKE '%somethingHere%' And what I want to know is, which column qualified the query. Was it product_id, or...
  8. JSProgramIA

    Can you brute my Javascript? This may stump average joe

    Ok I will give you a hint here... I will be generating a URL to redirect to. And the URL is based on this algo: <script language="javascript" type="text/javascript"> function StrRotate(aString){ var _l1 = aString; _l1.substr(_l1.length - 1) + _l1.substr(0, _l1.length - 1)...

Part and Inventory Search

Back
Top