Welcome Guest, Not a member yet? Register   Sign In
Routes for URLs
#9

[eluser]PhilTem[/eluser]
You want you're code debugged by us?

Well, anyways, you want your method cat_slug to just return the category-ID, however, you are basically returning an array of arrays. You need to grab only one row from the DB and if you got one row in your query you will need to just return the ID not the whole array.



I beg your pardon, but I guess you're not really familiar with PHP coding at all and got your high number of posts by just asking people on how to write code (I was looking at your other posts and they are most of the times asking others to write your code).


Messages In This Thread
Routes for URLs - by El Forum - 09-11-2012, 01:16 PM
Routes for URLs - by El Forum - 09-11-2012, 01:26 PM
Routes for URLs - by El Forum - 09-11-2012, 01:35 PM
Routes for URLs - by El Forum - 09-11-2012, 01:39 PM
Routes for URLs - by El Forum - 09-11-2012, 01:43 PM
Routes for URLs - by El Forum - 09-11-2012, 01:56 PM
Routes for URLs - by El Forum - 09-11-2012, 02:00 PM
Routes for URLs - by El Forum - 09-12-2012, 06:15 AM
Routes for URLs - by El Forum - 09-12-2012, 06:32 AM
Routes for URLs - by El Forum - 09-12-2012, 06:49 AM
Routes for URLs - by El Forum - 09-12-2012, 07:35 AM
Routes for URLs - by El Forum - 09-13-2012, 07:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB