Username:

Password:
remember me


[Forgot password!]


Dont have a PinoyWebDev account?

Sign Up now!


.CO.NR Free Domain
Member Sign in

 



1 2
Author News
Implementing MVC

By: liodel

Posted: 2008-08-26 12:11:22

We are trying to refactor this to use the MVC approach (but w/o any frameworks). See you soon.
The site is to be redesigned...

By: liodel

Posted: 2008-08-13 08:39:11

Or at least to be refactored... come back soon. Salamat!
Site is now in OOP

By: liodel

Posted: 2008-06-29 22:37:43

I arrange and recode some of the script of this site to be an oop style.
Now it is easier to maintain and update. You can join this site now. But the member page is still to be completed, for I was busy applying for a job. Salamat.
Sorting array w/o sort()

By: liodel

Posted: 2008-06-26 10:48:16

My problem is, how do i sort an array with int values only, without using sort() function.

The given are:
- array which contains int values ex. (7, 8, 3, 1, 5)

Not given:
- the actual values of the array
- the length of the array

I have already written something to know the least value, but putting it all together sorted in a new array
is my problem. This is the code so far:

<?php

$a = array(8, 3, 6, 2, 1); // this is just a sample value for the code to test

$a_len = count($a);
$pointer = 0;

for ($i = 0; $i < $a_len; $i++) {
if (!($a[$pointer] <= $a[$i])) {
$pointer++;
$i = 0;
}
}
$b[] = $a[$pointer];

foreach ($b as $b2) echo $b2;

?>


Mganda sna kung code n mismo popost nyo. Salamat.
Mga tanong?...

By: liodel

Posted: 2008-06-17 02:18:01

Sa ngayn kung me mga tanong kayo,
contact nyo n lng muna ko sa friendster ko,
http://www.friendster.com/lordog.
Bisita uli kayo, salamat.
1 2
  How to..
SiteMap
Register
  Tutorials
Downloads
Links
Forums
News