codeprada's Profile User Rating: *****

Reputation: 943 Master
Group:
Mentors
Active Posts:
2,358 (2.04 per day)
Joined:
15-February 11
Profile Views:
33,465
Last Active:
User is offline Mar 31 2014 08:46 AM
Currently:
Offline

Previous Fields

Country:
AG
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
XBox
Your Car:
Toyota
Dream Kudos:
775
Expert In:
PHP
Icon   codeprada has not set their status

Posts I've Made

  1. In Topic: PHP affected_rows doesn't work

    Posted 26 Feb 2014

    Well technically there's a redirect directly after your echo. Remember all PHP code is ran before anything even reaches the client/browser. Therefore PHP would have already executed the redirect thus not displaying the echo statement you have there.

    Try removing the header('location ....') line to confirm that rows are actually being deleted OR pass the number of rows being deleted as a GET request to the page you're redirecting to.

    header('location: index.php?result=' . $delete->affected_rows);
    
    
  2. In Topic: Delegate wrong return type

    Posted 26 Feb 2014

    Where are the other delegates? So far I don't see a delegate that accepts a string and returns a string in ConsoleAPI.cs. If there isn't one then that's your problem right there.
    public delegate string <DelegateName>(string str);
    
  3. In Topic: Text Box Change Event

    Posted 26 Feb 2014

    Create a handler for the KeyPress event and then check which key was pressed within the e.KeyChar (don't quote me on the variable here, all from memory). If the KeyChar is not allowed then change e.Handled to true. This will ensure that the key is not processed.

    You can also set the same handler for all of your 81 text boxes' KeyPress event.
  4. In Topic: Creating an Easy Data Access Layer using Entity Framework

    Posted 21 Feb 2014

    @modi123_1 Could be behind a firewall or the pictures don't exist anymore. I'm getting the same issue.

    @OP Great tutorial. Greatly simplifies the Entity Framework. Keep it up.
  5. In Topic: recursive tree function, how to use returned data

    Posted 21 Dec 2013

    Trees aren't too difficult to generate. My file system was structured in a way that I would grab the PATH and generate the root from there. For instance, /repairs/laptop/screens/index.php would be the PATH and then a simple string split and popping off the last element then a join with '->' into a single string would do the trick.
    From the looks of things your categories are defined in the database. It all depends on the relationship of each category. If a category such as SCREEN REPLACEMENT is linked with just one parent category then it's quite easy to follow the tree upwards. If SCREEN REPLACEMENT has multiple parents then determining which parent to use is going to be another story. A recursive function is a good idea but it's a lot of database calls. Note that this will occur each time a page is loaded since the tree will be regenerated unless you're using caching. I would recommend you using a function at the database level that will generate the tree for you. Basically you get the parent ID of a category then you get the parent ID of the parent and so on until you can't get a parent. Also recommend caching. Check out Smarty Template Engine.

My Information

Member Title:
Changed Man With Different Priorities
Age:
23 years old
Birthday:
February 13, 1991
Gender:
Location:
Antigua
Interests:
Programming,
My girlfriend,
Staying fit,
Football (Soccer),
Gaming,
Cricket
Years Programming:
6
Programming Languages:
Advanced:
PHP,
C,
C++,
Javascript,
Java,
HTML/CSS,
C#

Intermediate:
VB.NET,
SQL

Beginner:
Perl
Python

Contact Information

E-mail:
Private
Website URL:
Website URL  http://codeprada.com
Twitter:
coder_
Xfire:
codeprada

Comments

Page 1 of 1
  1. Photo

    jesicalbaby Icon

    16 Sep 2013 - 14:40
    Hello
    My name is Miss jesical,
    i saw your profile today
    and,i fill more interest to contact you ,
    i will like you to please send me
    an email via (jesicalduncan22@yahoo.com)
    for me to send you my picture
    jesicalduncan22@yahoo.com
  2. Photo

    defiance Icon

    22 Feb 2012 - 14:47
    codeprada when you have time please read your priv mail :)
  3. Photo

    Jstall Icon

    31 Jan 2012 - 06:12
    Congrats on the promotion! Very very well deserved dude.
  4. Photo

    smohd Icon

    31 Jan 2012 - 03:59
    Welcome to the club! Now its my time to welcome you :)
  5. Photo

    smohd Icon

    30 Oct 2011 - 12:52
    Thanks mate, Looks cool... I missed my experts club ;)
    But you seem to be busy these days.
  6. Photo

    RudiVisser Icon

    05 Sep 2011 - 04:32
    Thanks :)
  7. Photo

    RudiVisser Icon

    05 Aug 2011 - 10:11
    Thanking you - Once I've finished off the 2x CMS Tutorials + got time to spend on more daily articles I think it will be even better! Just can't keep updating my signature with every single one :D
  8. Photo

    smohd Icon

    03 Jul 2011 - 09:37
    Thanks
  9. Photo

    smohd Icon

    20 Jun 2011 - 14:43
    I see it now, nice work :)
  10. Photo

    smohd Icon

    20 Jun 2011 - 11:49
    Hi, but everytime I see you online helping, why they remove it from you? Did they mention any reason? or just system error?
  11. Photo

    smohd Icon

    20 Jun 2011 - 11:17
    Hey, what happens to expert badge?
  12. Photo

    codeprada Icon

    16 Jun 2011 - 03:36
    Thanks, so the link's been doing it's job :)
  13. Photo

    Ace26 Icon

    16 Jun 2011 - 01:53
    Hey there, howdy? I like one of your signature links that says hell is real. Are you a believer in Jesus Christ as your Lord and personal saviour?
    If yes then I'd say keep up the good work and stay strong in the faith, my brother in the Lord.
    Nice to meet a fellow christian geek.
  14. Photo

    Vip3rousmango Icon

    13 Apr 2011 - 12:12
    Thanks for the rep! :)
Page 1 of 1