Re: Linked List Insertion Sort Programming Software Development by Samadhi69 … = sortList(rest); int val = getFirst(L); rest = insertInto(val, rest); return rest; } List insertInto (int v, List L){ if (isEmpty(L)) return… (getFirst(L)<v) { x = v; v = getFirst(L); L = insertInto(x, temp); } result = makeList(v, L); return result; }[/code] Linked List Insertion Sort Programming Software Development by Samadhi69 … (val<=getFirst(rest)) rest = makeList(val, rest); else rest = insertInto(val, rest); } int getFirst (List L) { return L->data… result; }[/code] So the only thing I'm missing is insertInto. The main thing I'm not sure of is how… class not found but it is included correctly Programming Web Development by baig772 … there are no records return $check; } return false; }//else } function insertInto($query) { //echo $Querry_Sql; if((@$result = mysql_query ($query))==FALSE) { if (DEBUG… Re: Using statement for connection and try catch implementation Programming Software Development by arsheena.alam … do i have to close the connection in InsertInto() if the function catches and error. [CODE…connection; } catch() { } } protected static string InsertInto() { SqlConnection connect; try { using (connect = connecttodabase… Re: Linked List Insertion Sort Programming Software Development by WaltP [QUOTE=Samadhi69;550523]The main thing I'm not sure of is how to step through the list like I would with java.[/quote] Stepping through the list is done by calling [ICODE]getFirst()[/ICODE] which, I assume, returns the first node in the list. Then passing that node into [ICODE]getRest()[/ICODE] returns the next node. Keep calling [ICODE]getRest… Re: Linked List Insertion Sort Programming Software Development by WaltP You sure do like recursion, don't you? Can't you just use a standard loop? Re: Linked List Insertion Sort Programming Software Development by Samadhi69 The professor made us use the particular getFirst method that I specified above which returns an integer (the data value of the first node) not the node. I used recursion because it fails fast which optimizes it and recursion is easy to code (if obscene sometimes in big O.....but it's already O(n^2) from insertion sort so...). I'm very interested… Re: Linked List Insertion Sort Programming Software Development by WaltP [code] Get start NODE While NODE exists do something NODE = NODE->next end-loop [/CODE] It's quite simple. Re: class not found but it is included correctly Programming Web Development by BloccPrince Try this // The name of the php file that contains the connection include 'DB.php'; $dbfun = new DBConnection("username", "localhost", "password", "database name"); $dbfun->ConnectToDb(); Re: class not found but it is included correctly Programming Web Development by baig772 the probelm was because of short tags i changed `<?` to `<?php` in db.php and it was working