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 gkittelson 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. neilmurray

    Selecting help

    Thanks, I'll give it a go. Neil.
  2. neilmurray

    Selecting help

    Hi, Supposing I have a database with customer and number of items wanted as 2 columns. If I have 1000 items to sell how would I find out at which customer is my 1000 items sold. i.e. Customer number 1 100 2 500 3 300 4 200 5...
  3. neilmurray

    running a php command a certain time

    Hi, Is there any way that I can my php page run itself at say 12am every morning? This is so I can save the mornings beginning information in my mysql database? Thanks, Neil.
  4. neilmurray

    Changing real to integer

    Hi, How do you change a variable that is a real number say $real=4.76 to an interger. i.e change the variable to 4. Thanks, Neil.
  5. neilmurray

    Return from function

    Trying to return variables from a function to teh main programme. Using return array($var1,$var2,$var3); Where are these variables then stored? I can't find them. Thanks, Neil.
  6. neilmurray

    Array question

    Thanks, made stupid mistake somewhere else. Neil
  7. neilmurray

    Array question

    Hi, I want to read in a variable $comid which will be a number 1-40 and I then want to find the relevant value in and array, i.e. array[$comid] (of array[40] say) how would I do this? Thanks, Neil.
  8. neilmurray

    timestamps, mysql and php

    Thanks, I'll give it a go. Neil.
  9. neilmurray

    timestamps, mysql and php

    Hi, I have a mysql database with a persons login date and time as a field and I have designated it as timestamp. I then want to get this info and plot it on a graph. I call for it from the database and it comes in this format. 200506210000000 which is 2005 june 21st 00:00:00. I have tried loads...
  10. neilmurray

    Newbie question

    Hi, where can I find info on what $this-> does. Tried checking th ePHP manual but no Joy. Thanks, Neil.
  11. neilmurray

    Formatting text

    Hi, I have selected a row from a table where the column names are: id, money, com1, com2, com3, com4, com5, com6 I want to do a loop where I run a function on each one of the com1, com2 etc. values one at a time. Is there any way I can format the text to be say for ($i=1;$i<=20;$i++) {...
  12. neilmurray

    Problem with Arrays

    Thanks, That worked. Neil.
  13. neilmurray

    Problem with Arrays

    Hi I have the following snippet of code from a bigger programme. while ( $row = mysql_fetch_array($result)) { extract($row); $l++; $offerpricecom[$i][$l]=$offerprice; echo $offerpricecom[$i][$l]; // line 1 } for ($l==1;$l<=3;$l++) { $newprice=$offerpricecom[$i][$l]; echo...
  14. neilmurray

    Extracted $row after a query

    Thanks, Neil.
  15. neilmurray

    Extracted $row after a query

    Hi, I am running the following query $query = "select sum(offernumber) from offers where offerprice='120'"; result= mysql_query(query); how do I then extract this result? Thanks, Neil.
  16. neilmurray

    Problem

    I am getting the following error Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/neil/web/adm_diskusi.php on line 14 where line 14 is echo "Pilih Topic : <select class='entri' onChange="window.location = this.options[this.selectedIndex].value">"; thanks Neil.
  17. neilmurray

    Password encryption problem

    That was the problem...Thanks a lot. Neil.
  18. neilmurray

    Password encryption problem

    I am having a problem getting a password to agree with the encrypted one in mysql. here is my code $num = mysql_num_rows($result); if ($num == 1) //login name was found { $sql = "select loginName from Member where loginName='$fusername' and...
  19. neilmurray

    PHP script for login

    Thanks it was a register_globals problem. I am now having a problem getting a password to agree with the encrypted one in mysql. here is my code $num = mysql_num_rows($result); if ($num == 1) //login name was found { $sql = "select loginName from Member...
  20. neilmurray

    PHP script for login

    Hi I am trying to use a php script for a login that I got from a book but it won't work, it stops on the login page and won't submit. here are my codes. include("login_form.inc"); } break; case "new": foreach($HTTP_POST_VARS as $key => $value) { if ($key !=...

Part and Inventory Search

Back
Top