Jump to content

eversonj90

Members
  • Posts

    8
  • Joined

  • Last visited

Reputation

0 Neutral

About eversonj90

  1. eversonj90

    PHP Array

    Damnit, don't you just hate it when one more Google gives you the answer? PHP: array_slice - Manual
  2. eversonj90

    PHP Array

    I have a PHP array which is populated from a MySQL database, in this case it's a list of countries - the countries ISO numeric identifier and the name. The PHP Array populates fine and it outputs into a select list (using the Zebra Form PHP/JQuery class: Zebra_Form, a jQuery augmented PHP library for creating and validating HTML forms) and this is where the issue starts: The select list populates with the isonum's and countries as expected, however also displays the array numeric identifier at the top (which looks bad and also breaks the ability to type search the options): I did an array_splice($dataArray,0) which hides the 0 but caused a knock on issue - the select field was populated with options but countries ended up with rewritten key values so no longer were $_POST'ing their correct isonum's. Can anyone point me in the direction of a method to hide the 0 and maintain the correct isonum values for each country?
  3. I have two database tables: The first which is a table of postcodes (around 1.7 million records) and has a postcode, longitude and latitude field. The second which is a table of user data, which includes a postcode field - their postcode on registration. I need to be able to determine which users fall within X radius of Y (another users postcode) without ideally running a query to compare distances with all 1.7 million postcodes to shortlist possibles. I was thinking maybe it'd be possible to take Y users postcode and to use their longitude and latitude, doing some math (not my strong point) to determine all possible postcodes - by adjusting the longitude and latitude degrees relative to the distance being searched. Where to start?
  4. Thanks - all resolved!
  5. Contractor - no documentation. Wasn't my call on his involvement -.- STP Operation Mode Options: Classic, Rapid or Multiple?
  6. We had a CCNA do these switches so I can't say I'm over familiar with the setup. I've attached screenshots...
  7. Try this: [noparse]@echo off set max=.ooo set count=. :LOOP echo hi there set count=%count%o if not %count%==%max% goto LOOP set max= set count= echo complete[/noparse] set max=.ooo <-- 3 o's is your repeat.
  8. IP Range: 172.16.31.255 Subnet: 255.255.224.0 DHCP Relay: 172.16.0.1 (Domain Controller with DHCP) Primary Comms Master Switch: 172.16.0.40 Primary Comms Sub Switch: 172.16.0.41 Secondary Comms Master Switch: 172.16.0.50 Secondary Comms Sub Switch: 172.16.0.51 Master and Sub Switches are Stacked, Primary and Secondary Masters linked by Fibre Optic. For some reason it seems to take atleast 30 seconds for clients to be allocated with an IP address on the network. The switches are Cisco SGE-2000 Managed, any ideas as to possible causes of the slowness or settings which could be causing this?
×
×
  • Create New...