Morning guys,
I finally got it working it seems my PHP installation was faulty as the control panel wasn't loading well and stopping the services brought a 'Error[-1]'. I did a fresh installation after uninstalling and replaced the new ht docs with the older one. Now its working and the scripts seem to be running well.
Thanks for taking the time to help. 


On Mon, Jul 29, 2013 at 9:18 AM, mutinda benjamin <mutindaben87@gmail.com> wrote:
What is your table structure? run DESC Customers; and paste results here. 

Running apache? What are the logs saying?

Benjamin Mutinda
Tech Savvy,
Cell: 0729- 639 136



On Fri, Jul 26, 2013.at 3:13 PM, <skunkworks-request@lists.my.co.ke> wrote:
Send skunkworks mailing list submissions to
        skunkworks@lists.my.co.ke

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
or, via email, send a message with subject or body 'help' to
        skunkworks-request@lists.my.co.ke

You can reach the person managing the list at
        skunkworks-owner@lists.my.co.ke

When replying, please edit your Subject line so it is more specific
than "Re: Contents of skunkworks digest..."


Today's Topics:

   1. Re: Practice PHP code thats not working (with no error    codes)
      (Andrew Nduati)
   2. Re: New traffic light at uhuru haile selassie rdabt
      (Michael Bullut)
   3. Re: skunkworks Digest, Vol 41, Issue 258 (Josephine K. Irungu)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Jul 2013 13:09:47 +0100
From: Andrew Nduati <nduatiandrew@gmail.com>
To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
Subject: Re: [Skunkworks] Practice PHP code thats not working (with no
        error   codes)
Message-ID:
        <CAPnj2rBuSRDfOHpoaaFnM0Y6q_cv2RoU+RakMCM2bN8C4PY6Ng@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"


Thanks for the response. The problem is still the same. I've just tried
getting rid of the second echo but all I get is a blank screen.
And I've confirmed that the DB has records.


On Fri, Jul 26, 2013 at 1:00 PM, Eugene Maritim <kiprotich.maritim@gmail.com
> wrote:

> Hey!
>
> Find edited code below:
>     1. Swapped the order params of mysql_select
>     2. Changed mysql_select.db to mysql_select_db
>
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php
>
>
> //SQL Part
> $host="localhost";
> $username="root";
> $password="";
>
>
>
> $conn= mysql_connect($host,$username,$password) or exit("Connection
> Error".mysql_error());
>
> mysql_select_db('sample') or exit("Database not found");
>
>
> //Data from the query is stored in $result
> $result = mysql_query("SELECT * FROM profiles", $conn);
>
>
> while($row = mysql_fetch_array($result))
>   {
>   echo $row['CustomerName'] . " " . $row['ContactName'];
>   echo "<br>";
>   }
>   mysql_close($conn);
>   ?>
> </body>
> </html>
>
>
>
> On Fri, Jul 26, 2013 at 2:46 PM, Andrew Nduati <nduatiandrew@gmail.com>wrote:
>
>> Good Afternoon Skunks,
>>         Below is my PHP code that is meant to run an SQL Select query
>> however it doesn't seem to be working. All I'm getting when I open it in
>> the browser (*"; } mysql_close($con); ?> "*)
>> Please assist.
>> Kind regards.
>>
>>
>>
>> <html>
>> <head>
>> <title>PHP Test</title>
>> </head>
>> <body>
>> <?php
>>
>>
>> //SQL Part
>> $host="localhost";
>> $username="root";
>> $password="*****";
>>
>>
>> $conn= mysql_connect($host,$username,$password) or exit("Connection
>> Error".mysql_error());
>>
>> mysql_select.db('sample') or exit("Database not found");
>>
>> //Data from the query is stored in $result
>> $result = mysql_query($conn,"SELECT * FROM Customers");
>>
>> while($row = mysql_fetch_array($result))
>>   {
>>   echo $row['CustomerName'] . " " . $row['ContactName'];
>>   echo "<br>";
>>   }
>>   mysql_close($conn);
>>   ?>
>> </body>
>> </html>
>>
>> _______________________________________________
>> skunkworks mailing list
>> skunkworks@lists.my.co.ke
>> ------------
>> List info, subscribe/unsubscribe
>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>> ------------
>>
>> Skunkworks Rules
>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>> ------------
>> Other services @ http://my.co.ke
>>
>
>
> _______________________________________________
> skunkworks mailing list
> skunkworks@lists.my.co.ke
> ------------
> List info, subscribe/unsubscribe
> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> ------------
>
> Skunkworks Rules
> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> ------------
> Other services @ http://my.co.ke
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://orion.my.co.ke/pipermail/skunkworks/attachments/20130726/4820da82/attachment-0001.htm>

------------------------------

Message: 2
Date: Fri, 26 Jul 2013 15:10:18 +0300
From: Michael Bullut <main@kipsang.com>
To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
Subject: Re: [Skunkworks] New traffic light at uhuru haile selassie
        rdabt
Message-ID:
        <CAGy+NY19vcH0-GR9NStwQMV6e3s=D70Gag0OPw_jem_qBYwYwQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I prefer we do away with roundabouts & traffic police as the former is the
cause of most jams while the latter only come out on the roads when they're
broke by preying on motorists.


On 26 July 2013 15:03, Kivuva <Kivuva@transworldafrica.com> wrote:

> Such wastage of resources, human resources while thugs are harassing us
> all over.
>
> ______________________
> Mwendwa Kivuva
> twitter.com/lordmwesh
> google ID | Skype ID: lordmwesh
>
>
> On 26 July 2013 15:01, Martin Akolo Chiteri <martin.chiteri@gmail.com>wrote:
>
>> If you ask me, the three items bellow are mutually exclusive:
>>
>> 1) Traffic lights,
>> 2) Traffic police,
>> 3) Roundabouts.
>>
>> Traffic cameras can monitor and report suspicious activity on the road
>> quite well.
>>
>> Martin.
>> On Jul 26, 2013 2:48 PM, "Dennis Kioko" <dmbuvi@gmail.com> wrote:
>>
>>> In Rwanda there are police officers at traffic lights. Looking if you
>>> are breaking traffic rules.
>>>
>>> On Friday, 26 July 2013, Brian Ngure wrote:
>>>
>>>> Because they have to "look" busy even they know diddly squat.
>>>>  On Jul 26, 2013 2:25 PM, "Peter Muchemi" <pmuchemi@gmail.com> wrote:
>>>>
>>>>> Hi.
>>>>>
>>>>> Anyone who knows the company that has upgraded the traffic lights?
>>>>>
>>>>> Any the reason traf police get an overide button!

>>>>>
>>>>> _______________________________________________
>>>>> skunkworks mailing list
>>>>> skunkworks@lists.my.co.ke
>>>>> ------------
>>>>> List info, subscribe/unsubscribe
>>>>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>>>>> ------------
>>>>>
>>>>> Skunkworks Rules
>>>>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>>>>> ------------
>>>>> Other services @ http://my.co.ke
>>>>>
>>>>
>>>
>>> --
>>> with Regards:
>>>
>>> blog.denniskioko.com <http://www.denniskioko.com/>

>>>
>>>
>>>
>>> _______________________________________________
>>> skunkworks mailing list
>>> skunkworks@lists.my.co.ke
>>> ------------
>>> List info, subscribe/unsubscribe
>>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>>> ------------
>>>
>>> Skunkworks Rules
>>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>>> ------------
>>> Other services @ http://my.co.ke
>>>
>>
>> _______________________________________________
>> skunkworks mailing list
>> skunkworks@lists.my.co.ke
>> ------------
>> List info, subscribe/unsubscribe
>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>> ------------
>>
>> Skunkworks Rules
>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>> ------------
>> Other services @ http://my.co.ke
>>
>
>
> _______________________________________________
> skunkworks mailing list
> skunkworks@lists.my.co.ke
> ------------
> List info, subscribe/unsubscribe
> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> ------------
>
> Skunkworks Rules
> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> ------------
> Other services @ http://my.co.ke
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://orion.my.co.ke/pipermail/skunkworks/attachments/20130726/5ce484c7/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 26 Jul 2013 15:14:24 +0300
From: "Josephine K. Irungu" <jkirungu@gmail.com>
To: skunkworks@lists.my.co.ke
Subject: Re: [Skunkworks] skunkworks Digest, Vol 41, Issue 258
Message-ID:
        <CAAABz4Dwr_0jfmCd9zQ7Rgj8At03zLG=3haEmGKAL_wqocT1sw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

@ Justin,

Try out Rapid Camp Sagana.


On Fri, Jul 26, 2013 at 2:46 PM, <skunkworks-request@lists.my.co.ke> wrote:

> Send skunkworks mailing list submissions to
>         skunkworks@lists.my.co.ke
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> or, via email, send a message with subject or body 'help' to
>         skunkworks-request@lists.my.co.ke
>
> You can reach the person managing the list at
>         skunkworks-owner@lists.my.co.ke
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of skunkworks digest..."
>
>
> Today's Topics:
>
>    1. Team Building (Justin Mosbey)
>    2. Re: Advert : Sandisk 16gb cruzer fit usb memory stick (Ericko)
>    3. New traffic light at uhuru haile selassie rdabt (Peter Muchemi)
>    4. Re: New traffic light at uhuru haile selassie rdabt (Kivuva)
>    5. Re: New traffic light at uhuru haile selassie rdabt (Brian Ngure)
>    6. Practice PHP code thats not working (with no error        codes)
>       (Andrew Nduati)
>    7. Re: New traffic light at uhuru haile selassie rdabt (Dennis Kioko)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 26 Jul 2013 13:35:33 +0300
> From: Justin Mosbey <mosbeyj@gmail.com>
> To: skunkworks@lists.my.co.ke
> Subject: [Skunkworks] Team Building
> Message-ID:
>         <
> CAGiLMqnsstt6ssyABX3hw+2x1akcWycJMMTfZTfL6NJkWhxqcQ@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Skunks,
>
> This is out of the list purpose but anyone knows people who offer team
> building services? For a team of 200
>
> regards,
> MJ
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/91f7c156/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 26 Jul 2013 14:20:45 +0300
> From: Ericko <lyricalericko@gmail.com>
> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
> Subject: Re: [Skunkworks] Advert : Sandisk 16gb cruzer fit usb memory
>         stick
> Message-ID:
>         <
> CAO2jp2KLbvaoLh8TQEPZg-6qMuRvr5Bcd1Ehqdf1j1mFqyhvkw@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> i have 2k cash
>
>
> On Fri, Jul 26, 2013 at 12:47 PM, Eric Muiruri <erikipjay@gmail.com>
> wrote:
>
> > Kindly see photos attached for the same..
> >
> >
> > On Fri, Jul 26, 2013 at 12:20 PM, Eric Muiruri <erikipjay@gmail.com
> >wrote:
> >
> >> *Hi Skunks,
> >>
> >> *
> >> *Please see the below offer for Flash Disks.
> >>
> >> *
> >> *
> >> Item specifics Condition*: New: A brand-new, unused, unopened and
> >> undamaged item in original retail packaging
> >>
> >> *Brand:* SanDisk USB
> >>
> >> *Specification:* USB 2.0 Model: Cruzer Fit
> >>
> >> *MPN:* SDCZ33-016G-B35 Drive Capacity: 16GB
> >>
> >> *Storage Capacity:* 16 GB
> >>
> >> Good for car Stereo due to its very small physical size.
> >>
> >> * *Intersted parties can contact me offlist or call me on* 0712 603
> 271.*
> >>
> >>
> >> *Price *: 2500.00
> >>
> >>
> >> Regards
> >>
> >> Eric Kiruthi

> >>
> >>
> >
> > _______________________________________________
> > skunkworks mailing list
> > skunkworks@lists.my.co.ke
> > ------------
> > List info, subscribe/unsubscribe
> > http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> > ------------
> >
> > Skunkworks Rules
> > http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> > ------------
> > Other services @ http://my.co.ke
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/522a7e58/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 26 Jul 2013 14:25:02 +0300
> From: Peter Muchemi <pmuchemi@gmail.com>
> To: Skunkworks forum <skunkworks@lists.my.co.ke>
> Subject: [Skunkworks] New traffic light at uhuru haile selassie rdabt
> Message-ID:
>         <CAOO0LjAh_uOsQtcDe=
> peyJVSMgMmvvkOPatYfDiXj4rSXg4Luw@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi.
>
> Anyone who knows the company that has upgraded the traffic lights?
>
> Any the reason traf police get an overide button!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/73645ee5/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Fri, 26 Jul 2013 14:43:03 +0300
> From: Kivuva <Kivuva@transworldafrica.com>
> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
> Subject: Re: [Skunkworks] New traffic light at uhuru haile selassie
>         rdabt
> Message-ID:
>         <CAEhPqwppYM1q_pa-89m0Q-Yk=
> FhK2vi+t0ENcUCVi00Gzqx4pg@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Just wondering what traffic police role is in our roads. You go to larger
> more complex cities than Nairobi, and there is no single traffic police in
> the roads. Jump the lights, you get a bill or court order in your post.
>
> Is it time for udto style up and have working legislative framework?
> ______________________
> Mwendwa Kivuva
> twitter.com/lordmwesh
> google ID | Skype ID: lordmwesh
>
>
> On 26 July 2013 14:25, Peter Muchemi <pmuchemi@gmail.com> wrote:
>
> > Hi.
> >
> > Anyone who knows the company that has upgraded the traffic lights?
> >
> > Any the reason traf police get an overide button!

> >
> > _______________________________________________
> > skunkworks mailing list
> > skunkworks@lists.my.co.ke
> > ------------
> > List info, subscribe/unsubscribe
> > http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> > ------------
> >
> > Skunkworks Rules
> > http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> > ------------
> > Other services @ http://my.co.ke
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/4fb82297/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Fri, 26 Jul 2013 14:44:01 +0300
> From: Brian Ngure <brian@pixie.co.ke>
> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
> Subject: Re: [Skunkworks] New traffic light at uhuru haile selassie
>         rdabt
> Message-ID:
>         <CAJbJWJ3qYUJCy+p_dwX5KXv1Z1rRWt-r+5p2+f=
> 2b4C2L3B6bQ@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Because they have to "look" busy even they know diddly squat.
>  On Jul 26, 2013 2:25 PM, "Peter Muchemi" <pmuchemi@gmail.com> wrote:
>
> > Hi.
> >
> > Anyone who knows the company that has upgraded the traffic lights?
> >
> > Any the reason traf police get an overide button!

> >
> > _______________________________________________
> > skunkworks mailing list
> > skunkworks@lists.my.co.ke
> > ------------
> > List info, subscribe/unsubscribe
> > http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> > ------------
> >
> > Skunkworks Rules
> > http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> > ------------
> > Other services @ http://my.co.ke
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/02d93c3d/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Fri, 26 Jul 2013 12:46:27 +0100
> From: Andrew Nduati <nduatiandrew@gmail.com>
> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
> Subject: [Skunkworks] Practice PHP code thats not working (with no
>         error   codes)
> Message-ID:
>         <
> CAPnj2rCxSWFb3905xXRig7S8T38z4ExFWXw64_A1CxrbmG85nw@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"

>
> Good Afternoon Skunks,
>         Below is my PHP code that is meant to run an SQL Select query
> however it doesn't seem to be working. All I'm getting when I open it in
> the browser (*"; } mysql_close($con); ?> "*)
> Please assist.
> Kind regards.
>
>
>
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php
>
>
> //SQL Part
> $host="localhost";
> $username="root";
> $password="*****";
>
>
> $conn= mysql_connect($host,$username,$password) or exit("Connection
> Error".mysql_error());
>
> mysql_select.db('sample') or exit("Database not found");
>
> //Data from the query is stored in $result
> $result = mysql_query($conn,"SELECT * FROM Customers");
>
> while($row = mysql_fetch_array($result))
>   {
>   echo $row['CustomerName'] . " " . $row['ContactName'];
>   echo "<br>";
>   }
>   mysql_close($conn);
>   ?>
> </body>
> </html>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/28b28dcf/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Fri, 26 Jul 2013 14:47:53 +0300
> From: Dennis Kioko <dmbuvi@gmail.com>
> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
> Subject: Re: [Skunkworks] New traffic light at uhuru haile selassie
>         rdabt
> Message-ID:
>         <CADfbAQRpJhxspwWewH8tiJ55sKkeXp-BLPM7m=
> 7JNRCAkwwTJg@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> In Rwanda there are police officers at traffic lights. Looking if you are
> breaking traffic rules.
>
> On Friday, 26 July 2013, Brian Ngure wrote:
>
> > Because they have to "look" busy even they know diddly squat.
> >  On Jul 26, 2013 2:25 PM, "Peter Muchemi" <pmuchemi@gmail.com<javascript:_e({},
> 'cvml', 'pmuchemi@gmail.com');>>
> > wrote:
> >
> >> Hi.
> >>
> >> Anyone who knows the company that has upgraded the traffic lights?
> >>
> >> Any the reason traf police get an overide button!
> >>
> >> _______________________________________________
> >> skunkworks mailing list
> >> skunkworks@lists.my.co.ke <javascript:_e({}, 'cvml',
> >> 'skunkworks@lists.my.co.ke');>

> >> ------------
> >> List info, subscribe/unsubscribe
> >> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> >> ------------
> >>
> >> Skunkworks Rules
> >> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> >> ------------
> >> Other services @ http://my.co.ke
> >>
> >
>
> --
> with Regards:
>
> blog.denniskioko.com <http://www.denniskioko.com/>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/6e9c4d89/attachment.htm
> >
>
> ------------------------------

>
> _______________________________________________
> skunkworks mailing list
> skunkworks@lists.my.co.ke
> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> ------------
> Skunkworks Server donations spreadsheet
>
> http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en

> ------------
> Skunkworks Rules
> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> ------------
> Other services @ http://my.co.ke
>
> End of skunkworks Digest, Vol 41, Issue 258
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.my.co.ke/pipermail/skunkworks/attachments/20130726/f185459b/attachment.htm>

------------------------------


_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en

------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke

End of skunkworks Digest, Vol 41, Issue 260
*******************************************


_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke