I am new to PHP and working with a previous programmer's code. I am working with the following foreach loop (please note $x):
<?
foreach($tasks as $item) {
$x=$x++;
$title = stripslashes(ucfirst($item['subject']));
// If this task was completed
if (isset($item['date_complete'])) {...
Thanks very much. I must admit my network guy said he couldn't find the console commands so I just came to you all. I should have looked myself first. I appreciate the link thank you very much...
-trix
"Wiggle your big toe.
I know this is a Cisco forum but I don't know where else to turn. We have a Netgear FSM7328s switch and cannot find a list of the console commands anywhere including the manual and website. Can anyone suggest where I might find them if not from the manufacturer? Are console commands the same for...
I have an array that I place into a session variable and pass to my new page. Now on my new page, I want to access the elements of that array. When I use
myclubs = session("myclubs")
the information is passed, however it is one long string. How can I turn my session variable back into an...
You know guys I feel so stupid. The error was not here in this code, but on my actual web page where I drew in the array. I was using ubound(clubs) which was 5, the 5 elements right? I was supposed to have ubound(clubs,2), which accessed my 84 records. I apologize for the wasted post. My error...
I have an array I create from data from my SQL database. I've already checked the procedures within SQL and they work. In fact, when I debug my recordcount is correct - 84. However, when I run my page that displays the array I only receive 5 records. I can get the first five, last five, I even...
Oh okay you know that's what I figured I just wanted to double check. I'm working on my dll now. Can't wait to see it in action! I'll let you know how it goes...
-trix
"Wiggle your big toe.
Hi again! Got put on other priorities for a few days. Back to my zips now. Hey George the db in:
Call db.Execute(cSQL)
VB is complaining about "db". Not being familiar - did I forget to declare something? What does this represent may I ask? Thanks!
-trix
"Wiggle your big toe.
Thanks! Great idea. I'm still a bit new here. There's a star by my name on a reply to another post and I had no idea what it was! Detail oriented AND unobservant? Is that possible? :)
-trix
"Wiggle your big toe.
It would be I understand. I think my code would overcomplicate it for you. Kind of a different setup. Can you post the table sorting script please? I'm looking online for some kind of simple sort script. There's got to be something simpler than where I was headed. Might help if I could look at...
Okay I can get some code and show you but, we might not be working with the same thing. First tell me where does your data come from? I'm using a SQL Server database and have a dll that calls information from that database for me. Where does your data come from?
-trix
"Wiggle your big toe.
So you have a table with how many columns? And you want the farthest left column to control the sort order alphabetically? If you bring your data into an array, you can use the array elements in the table cells instead of having to refer to the table directly. I bring data for my array into the...
firstarray is just the name of one of his 4 arrays he's loading in and sorting. It is an array of names, and each array has another item of info related. But no it's not a table name. Can you show your asp code where you load your list you want to sort?
-trix
"Wiggle your big toe.
George looking at your code I'm starting to get the feeling you're the person who helped me make it work in SQL in the first place!
-trix
"Wiggle your big toe.
Okay I found some notes here at home. This is the user defined function in SQL I was using:
CREATE Function dbo.CalculateDistance(@Longitude1 Float, @Latitude1 Float, @Longitude2 Float, @Latitude2 Float) Returns Float
AS
Begin
Declare @Deltax Float
Declare @Deltay Float
Declare @DeltaXMeters...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.