Xanadu's Posts
Nairaland Forum › Xanadu's Profile › Xanadu's Posts
@nduaj, I like your site. The simplistic layout, in my opinion, is refreshing, the colours I think are not harsh to the eyes. You might want to increase the refresh rate of the slideshow on the home page - the slides are changing a bit too fast, I think - perhaps that's what @cactus meant by 'making my eyes jump all around the page'. If you increase the refresh rate, that should sort it out. Also, the image on the contact us page is not as sharp as perhaps it could be. Otherwise - well done. |
You're welcome, @g99ma. That's what this forum is all about. I'm glad I was able to assist. |
Hi, @g99ma. You did say you would look at alternatives. I'll present you with one way I think perhaps you can achieve the results you want - in a rather simple way. if it suits your purpose you will need to merge it into your main code. Check that it works first, though. This method assumes a few things: 1. A table of weeks mapping to their various start dates and end dates. E.g. Create a table called weeks, with the following fields: start, end, week_num, where week_num is the week number. An example of 2 such rows is attached below. This means you will need create about 52 rows for the weeks in the year (shouldn't take time - you already pasted 6 rows above) - just a one-off. I assume you have a way to accept inputs for start date and end date, for your query. So let's say you collect the values like this: $startdate=$_POST['startdate'];and $enddate=$_POST['startdate'];So at the point where you are doing the check for each week, say the week is in a variable called $weeknum, I would first get an array of the week and its range: $getDate=mysql_query("select * from weeks where week_num='$weeknum'"Then for that week, the query below should do what we want: while ($row=mysql_fetch_array($getDate)) {The above should do one thing - it should return a specific message - in this case 'within range' - if the selected date ranges fall within the week specified. Of course you change the echoed result to what you want. The downside of this approach is that every year, you will need update the year part of the entry in the weeks table. I tested the above with the six weeks you put above, and it works. if you have any queries, please let me know.
|
Just to add a couple of lines to Smart K's post above: I find that, in my experience with php, the biggest advantage of classes to me has been Reusability. Using classes, you can use the same code for several programms or projects. You can achieve the same, of course, using functions - but in many cases even functions need to be 'customised' when being reused in different projects. Classes eliminate this. So, to add to the advantages of classes: v. Reusability/portability |
Nice thread, Smart K. I am definitely interested, will be glad to share PHP codes where I can. Looks like the begining of something great here - some kind of code repository that will help developers here on Nairaland and hopefully help move the country forward technologically. |
And if you want to consider open source options, the Apache Group has a very interesting project called Ofbiz - an open source and enterprise-class ERP solution. Great software, and something you could look into. Check it out here: http://ofbiz.apache.org/ |
@xanaduNo. Please speak English - perhaps then, I might. |
Please consult people. there are good hackers as well as we have bad hackers.Yes there certainly are, dear evergie - but note the title you have chosen for this thread: Nigerian Naughty BoysSo judging from such a title, which one are you? And if you say you are an ethical hacker, or a penetration tester, why not form an 'Association of Penetration Testers'? Which is more noble and honourable? I will not be drawn into a prolonged rally of retorts - in my earlier post, I acknowledged your right to your opinion. I have the same right as well, and have exercised it. 'Nuff said. |
Do we have Nigerian hackers? if yes, what of if we form a club of Nigerian hacker just like the indians. hi evergie, in on your side i'va already created a website to that effect, but i ddnt make it looks so bad, i'm seriosly into the stuff. call me 08032077148 or mail goatnextdoor@yahoo.com we'd discuss better@evergie, without mincing words, and acknowledging that you are fully entitled to your choice of career and opinion, I really think you should be ashamed of yourself for starting such a thread here (or anywhere else, for that matter). How could you? So many Nigerians are trying desperately to repair the thrashed credibility of Nigeria (and Nigerians) the world over, and you think the best thing to do is set up a 'hackers' club?? How dare you?? What has gotten hold of your mind? Is that all the ambition you have - to destroy? And @stepestus - if you think your cause is 'worthy' why not post the url to your so-called 'website to that effect'? You think it is a classy thing to be known as a 'naughty boy'?? You guys better stop right there in your tracks, think of some better and more productive way to use your talents (such as you may have), and grow up. I suggest starting with improving your command of the written form of the English language. The thing is, I really do not understand why this thread is still here. I have seen and read about less inciting and unambitious posts being deleted here on Nairaland. |
No wonder over 70% of dynamic websites in the world run on PHP, never mind people attacking all the time.@Afam, right on! Never mind the people who think PHP is 'lightweight' - the truth is, they do not really know the full powers of PHP. People tend to overlook the fact that it has evolved, over time, into arguably the world's most popular tool for creating dynamic websites. |
Interesting. As part of your criteria you say: Server Security Checks (written authorizations required) advanced security analysis - port scans, trojan sweeps, vulnerability profiles, firewall setups, network sniffers, software & application faults, e-mail vulnerabilities, database & human interface weaknesses.Really?? |
Nobody seem to have answered the question about how you get details of who paid you, or am i missing somethingmakes me wonder too, @apmis. Ok, lets make the question more direct - @avsnet, referring to your post above, you seem to know a bit about how Flash Me Cash works - can you help with answers to some of these questions: * If someone sends money via Fmc to say, the UK for instance - how can the money be collected? * Do I have to go over to Nigeria to cash it at a Firstinland bank branch, or do they have affiliate banks in these other countries where payments can be collected Thanks - your answers will be much appreciated. |
Sounds like an interesting project You can create the flash taste in your software with a combination of actionscript, haXe, neoswiff, mxml, etc.Prodgalson - Giving this sort of project a go using Flex would be something to chew on, wouldnt it, ? |
I see that Flash me cash can be used to send money to and from a few countries like Nigeria, UK, South Africa, etc.Can anyone help with my question above, please? |
?? |
Right, thanks for posting the error. Go back to your select statement, and change: $data = "SELECT * FROM address WHERE name ='$parish'" or die(mysql_error());to: $data = mysql_query("SELECT * FROM address WHERE name ='$parish'"That should fix it - goodluck! |
I see that Flash me cash can be used to send money to and from a few countries like Nigeria, UK, South Africa, etc. Can anyone tell me pls - if someone sends money via Fmc to say, the UK for instance - how can the money be collected?? Do I have to go over to Nigeria to cash it at a Firstinland bank branch, or do they have affiliate banks in these other countries where payments can be collected? Unfortunately, there doesn't seem to be a lot of information regarding the service on the FIB website. Any one knows how it works? |
no worries - can u paste the actual error thrown up on your screen? Also, did u change the select statement from the one in your earlier post? |
$data = "SELECT * FROM address WHERE name ='$parish'"The issue here is: You MUST declare your variables. $parish has no value, because you have not declared it as a variable containing the user's selection - so your query simply is saying 'where $parish =NOTHING'. Put this code above your select statement: $parish=$_POST['parish']; That should work now, because you have basically said: '$parish now contains whatever the user selected'. Hope it works out for you. Nb: Nothing wrong with your select statement - the apostrophes are in order. Just declare the $parish variable as above. |
very interesting and, I must say, timely concept. Thanks, siskay, for throwing light on this. As usual one needs to find out as much as possible about this, before committing to it. I found this on the web, and thought I'd share it: http://answers.google.com/answers/threadview?id=336342 |
Or http://www.01ftp.com However: Even if it has to be online, no problem so far its secure.Being secure is another thing altogether. No guarantees. |
Lord we are all made in your image, let Seun the owner of Nairaland and others come to the realisation that you are God, reveal your self to him in ways he will never expect, let the birds speak to him about you, let the rains and sunlight reveal your presence. May the winds carry him to places only you dwell, let nature be your preacher to him and let him know he is god cause he was made in your image, not because of his thoughts and abilities. Amen.Amen. |
@my2cents - thanks a lot for that. Have got my weekend reading material all sorted! |
Again, a lot of us seem to run off on the wrong tangent. Thank you Afam for this: With N4k I can design www.talkofnaija.com (under 24 hrs) because I have a copy of joomla on my machine.I think we should all read the above carefully. Does it not make sense? Why must we put down someone who decides to charge what he likes? Are we not in a free economy in Nigeria? Unfortunately, so many of us still suffer from Nigeria's biggest illness - SHD Syndrome (Shoot Him Down Syndrome). Thanks again Afam for your timely post. |
Never thought the day would come when I would have to say this, but then you have to recognise vision when you see it. And finally I see it in Seun's new plans for Nairaland. Seun, this is a great vision - I wish you all the best. May your sight (pardon the pun!) never grow dim! ![]() |
Forums are one of the most effective ways of sharing information, learning and airing opinions on the web today - and rightly so too. I'm sure not a few of us have learned a lot from forums all over the web, Nairaland inclusive. One of the attractions of the Internet is the freedom to air our opinions. The question, as always with things liberty-related, is: how far can we go in the exercise of our right to air our opinion? Sometimes we get some very interesting and thought-provoking questions and answers on Forums. I find some entries in this thread particularly interesting. Take a look the following quote carefully: check it out:Right. Simple (and I daresay, humble) request for 'objective' (doesn't the word 'constructive' come to mind?) criticism of a website's design. Then this reply comes: 1) There is a horizontal scroll in both IE and FF - consider reducing the width of your container table/divOk. Now, compare the reply above to this one: I almost had a heart attack. This is absolutely horrible. flashing menu, poor user interface, horrible color scheme, borders, different heights for title bars include some padding, menu inconsistencySomething to think about, eh? |
whats our business with Norway -omo Naija la wa o. @simply_me, but you say your location is Cambodia![]() |
Send me an email, my friend. Your email address is hidden. |
can someone please give me a simple php script to upload and display images using:@determined, if you haven't sorted it out yet, pm me and I'll send you an upload script - free of charge. You do not have to pay anyone for this. |
Re: Designing A Website: For BeginnersI know where you are coming from, webguru. I have been there. Sometimes you just wonder if it is worth it all. i was really enjoying the tutorials by ncpatThank you very much, hollandis. You are a true Nigerian. By the way, I recommend you go through the first two pages of this thread to gather a bit more information. Might help you. - "what is that his name" |
Great design, my2cents. Love the colour scheme, the effect on the eyes, the general simplicity and consequent ease of use. Quite frankly, I wish most Nigerian designers would take a cue from this - as you say, there is really no need to load up a site with all the effects in the world. Unfortunately, for a lot of Nigerian web designers the intepretation of website design = online filmshow! As far as I am concerned, even the banner does not require any modification (unless you have already done that between this post and the last one). So - keep it up: i think it's a great design. |
or die(mysql_error());
@simply_me, but you say your location is Cambodia