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 Mike Lewis 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. benedictbutlin

    how do i make the page stay in same position

    what would i replace the anchor element with?
  2. benedictbutlin

    how do i make the page stay in same position

    I'm not very knowledgeable with javascript.i'd found this code that allows me to add additional input fields to my form. works great but when i click the link to add fields the page scrolls goes back to the top and doesn't stay in it's same position. how would i modify the code to make the page...
  3. benedictbutlin

    how do i merge two arrays?

    cheers jpadie!
  4. benedictbutlin

    how do i merge two arrays?

    i have 2 arrays 'my_names' and 'my_values' my_names: Array ( [0] => apple [1] => peach [2] => pear [3] => banana ) my_values: Array ( [0] => red [1] => pink [2] => green [3] => yellow ) how would i merge them so values from 'my_name" become the keys for...
  5. benedictbutlin

    new to sql server and have a couple of questions

    I'm not familiar with microsoft sql server, and have a few questions... - i'm guessing MSSQL sits on a windows OS server only, and the application is not cross compatible with other OS's? Is there a linux version? - is it possible to remote access MSSQL from an sql client? for example, an SQL...
  6. benedictbutlin

    get base or full url... for relative urls via php curl

    it's all legit. the sites are on different servers
  7. benedictbutlin

    get base or full url... for relative urls via php curl

    I'm using curl to get links from other site pages absolute URLs are all good, but when i come across relative urls... i'm trying to figure out the best way to convert the relative url into an absolute url if the site were my own server there's different way's to get the base or full url, but...
  8. benedictbutlin

    how to limit a while loop with a mysql query

    hey jpadie, i haven't yet tried your code example, but here's what i'd like to do (but do tell me if i should examine and think about your code first before i ask this question)... is it possible in one query... to get back a result where i can sort by two different columns? which would save...
  9. benedictbutlin

    how to limit a while loop with a mysql query

    i need the full data set for a total sum, and i need the limited data set for looping through to display the top 10 values in a chart... i'm all ears if there are other efficient ways to do this, as well as consider something different that i might need to do later
  10. benedictbutlin

    how to limit a while loop with a mysql query

    just solved it with this... but i'll be back very soon with more questions! $count = 0; while ($count < 4 && $row = mysql_fetch_array($query)) { //stuff $count++; }
  11. benedictbutlin

    how to limit a while loop with a mysql query

    what is the best way to limit the results of a while loop? i know i can do this as a 'for' loop, but reason i'm using a while loop is that i'm looping a mysql query like so... while ($row = mysql_fetch_array($query)) { } what i'd like to do is limit the loop to 10 results, and the reason...
  12. benedictbutlin

    getting a ftp connect error

    thanks jpadie... that sorted it!
  13. benedictbutlin

    getting a ftp connect error

    i'm full of mistakes today... sorry here's the corrected code but still returns the same error $ftp_connect = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); $ftp_loggedIn = ftp_login($ftp_connect, $ftp_user, $ftp_pass); if (true === $ftp_loggedIn) { echo 'Success!'; }...
  14. benedictbutlin

    getting a ftp connect error

    hey jpadie, just 1 error remaining... line 12 is this line... $ftp_connect = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); there were quite a few errors in my code (sorry!)... and i've cleaned it up like so, but still returns the error above... $ftp_connect =...
  15. benedictbutlin

    getting a ftp connect error

    I'm trying to connect to an ftp sever but getting the following error... From what i've googled, it could be a setting that needs to be configured in the php.ini? if this is so, and based on my error can you advise what i'm meant to change, or maybe the code can be made to work without php.ini...

Part and Inventory Search

Back
Top