Webmasters › Re: CSS Styles And Images Not Showing On Website. Help! by onyengbu: 10:25am On Oct 03, 2015 |
anitchec: A few things can cause this: 1. Check your css <link> tag and make sure ur "href" path is correct. If it's? 2. Make sure the .css file it's pointing to is actually there. Eg. If Your code should look like this: <link rel="stylesheet" href="css/style.css" type="text/css" />
Now go to the css folder and make sure the file named style.css is there.
Note: it's very important that u specify the files extension which is the ".css" In addition to all that, if he did .htaccess url rewrite, he will also need to do much more than all you have told him... |
Politics › Re: Buhari Ask Nigerians To Thank GEJ For This Year's Independence Celebration! by onyengbu: 8:02am On Oct 01, 2015 |
but the janjaweeeds said it was america that scared him.
Idiots... |
Politics › Re: Adeola Of Sahara Reporters And President Buhari Take A Photo by onyengbu: 7:46pm On Sep 30, 2015 |
temitemi1: Sorry I don't do sahara reporters  me too |
Politics › Re: Saraki Supporters: What Will You Gain From Saraki's Acquittal by onyengbu: 2:13pm On Sep 30, 2015 |
now i am not saraki supporter but simply anti Tinubu. If saraki is booyed out, it is not victory for nigeri but rather to tinubu. sarakis exit will only prepare ground for tinubu to fully turn nigeria into lagos state. By thhe way, after aall the fashola website saga, why are you guys not calling for his trial but wants saraki to go to jail for under declaration of assets. Hypocrisy! |
Politics › Re: Adamawa Governor, Bindow, To Appoint Igbo Adviser by onyengbu: 5:09pm On Sep 25, 2015 |
omenka: When are the SE governors going to start returning the favours done their people in the SW and North?? This is indeed good for national integration and unity. Bigot! Anambra Currently has an Hausa Special Adviser to Obiano. That is as I type! The thing is they consider it too normal to care making noise about it. |
Webmasters › Re: Urgent Help To Display Data In Php by onyengbu: 4:15pm On Sep 22, 2015 |
analogiphone: Thanks boss.
Reg_date current stamp.
Connection "localhost" "root" "" ( no password )
I will display the users record but not in the table.
What I want in table is just be able to update the date and current status of what they will be doing. which one is which. Just seprte and identify them properly. One more thing is the date lredy formatted in the formt you posted in your first post. |
Webmasters › Re: Urgent Help To Display Data In Php by onyengbu: 3:18pm On Sep 22, 2015 |
analogiphone: Wey all the gurus now How did you save the 'Current Date' and 'Status' in your database. What is the exact name you gave them and what is the name of your connection to the database? |
Webmasters › Re: Rate This Forum, Best Designed Nigerian Forum. by onyengbu: 9:29pm On Sep 08, 2015 |
Why do you keep repeating that nairaland is an smf website? Are you looking to get corrected or just naive? |
Webmasters › Re: Texarea Truncating Text Issues by onyengbu: 11:58am On Sep 06, 2015 |
cbrass: Thanks bro I used encodeURIComponent() to escape the characters before the ajax call and it's working perfectly now
Once again thank you Thats exactly what I used back when I had that problem but its been a long time and I can hardly locate which project I used it on. You are welcome. |
Webmasters › Re: Texarea Truncating Text Issues by onyengbu: 7:07am On Sep 05, 2015 |
cbrass: Yes bro I have been into that problem before. It is not database table settings. It is being caused by improper escaping . It is quite a strange occurence then but if you check the text being truncated you will discover that the point of trunctiom has a single quote or apostrophe or some hidden characters. The solution is to use javascript escaping methods (google itcos I cant do that now) and escape the js variable on the jquery side of your script before it gets to php. PHP escaping methods wont help because the text gets truncated before it gets to the server.. If JS escaping method didnt help, use a form submissbon library like form.malsup.com. Even if your textarea is in a loop, you are still fine because you bind each form submit to a class which you create from the ids of your loop. Best regards |
Webmasters › Re: Texarea Truncating Text Issues by onyengbu: 5:18pm On Sep 04, 2015 |
cbrass: Please what do you think is wrong here, when I copy a long post from somewhere and paste it into my textarea then submit, it will cut the post into half sometime not even up to half of the post I submitted will be inserted into the db. Have checked and rechecked my codes but don't seem to know what is wrong I aslo noticed it doesn't behave like that on a particular laptop I use, but when i tried other browsers and laptops but it's still behaving like that
Adewasco2k slyrox onyengbu let me guess, the form submission is being done via ajax/ajax jquery call? |
Politics › Re: List Of States That Got Bail-Out Funds To Offset Salary Arrears by onyengbu: 7:45am On Sep 02, 2015 |
some states that are not on the list are still hugely indebted.
Lagos for example. |
Webmasters › Re: How Do I Go About These Codes? by onyengbu: 12:26am On Aug 29, 2015 |
Emusan: Yes I copied everything just as you wrote them, just don't know the reason why it couldn't populate.
Thanks once again.
Can you help me with another alternative?
*modify Let me say this, I'm using this code inside a PHP file where getheader was placed, so where exactly will the SCRIPT fit to be inserted? Could it be after the gethearder or before? Inside the form tag or outside the form tag?
because I placed the SCRIPT inside the form tag. If you copied everything as I wrote, did you also change your script name to match the url in the jquery part of the script? It doesnt matter where you placed the script as long as you added the jquery library as I instructed. |
Webmasters › Re: How Do I Go About These Codes? by onyengbu: 9:58pm On Aug 28, 2015 |
Emusan: Thanks so much for your contribution but I'm having problem with the second select box now because the first select box (for #makes) populated but the second select box (for #models) doesn't populate.
What can I do? Thanks once again. The second select box (models) populating is the main plot behind the code and it is properly populating when you change makes value. If you copied my code verbatim and followed the instructions, it must work. |
Webmasters › Re: How Do I Go About These Codes? by onyengbu: 1:15am On Aug 27, 2015 |
Emusan: Please a need someone to help here; 1. I want to put the whole thing on the same file 2. How can I re-write the jQuery/<script> so that it won't contain the $.post(select-request)? 3. I want onchange event to occur at the second select box.
Please if you want to help, kindly use the above codes as an example.
Thanks! Below is the same code with the jquery part re written. Save in a php file named select.php or update line 27 if you save in another file. You can see the jquery library I added is hosted online so run the file in a internet connected system or change line 19 to link to to your local copy of jquery library if you are offline. Cheers. <?php $makes = array('Acura', 'BMW', 'Lexus', 'Toyota', 'Honda'); if(isset($_POST['submit'])) { echo '<pre>'; print_r($_POST); echo '</pre>'; } ?>
<form action="" method="post"> <select id="makes" name="makes"> <?php foreach($makes as $m){ echo '<option value="'.$m.'">'.$m.'</option>'; } ?> </select> <select id="models" name="models"> </select> <input type="submit" name="submit" value="Submit"> </form>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function() { $( "select#makes" ).change(function () { var make = $( "#makes" ).val(); var string = 'make='+make; $.ajax({ type: "POST", url: "select.php", data: string, cache: false, success: function(data){ $('#models').html(data); } }); }); return false; }); </script>
<?php error_reporting(E_ALL);
$acura = array('Integra', 'TSX', 'MDX'); $bmw = array('1 Series', '3 Series', '5 Series', 'X5'); $lexus = array('ES300', 'GX470', 'GS350', 'LS400H'); $toyota = array('Venza', 'Camry', 'Corolla', 'Echo'); $honda = array('Pilot', 'Accord', 'Civic', 'Ridgeline');
if(isset($_POST['make'])) { $model = strtolower($_POST['make']);
foreach($$model as $mo){ echo '<option value="'.$mo.'">'.$mo.'</option>'; } } ?>
|
Christianity Etc › Re: Anambra Pastor Burns The Ukolo Uga Shrine... (Photo) by onyengbu: 6:17pm On Aug 13, 2015 |
How is this guy different from ISIS that is destroying artifacts in Syria and Iraq. I have seen police arrest one pastor for something like this. I am certain that with the publicity this one is getting, they will soon arrest him too.
P.S: No oracle is capable of bewitching the entire town. Is Andy and Chris Uba and many other prominent people not also from that town? |
Webmasters › Re: A Good (above Average) Website Designer Needed Urgently For A Company Website by onyengbu: 10:41am On Aug 13, 2015 |
That guy is nothing short of a bot. |
Politics › Re: Fashola's N78 M Scandal Trending On Twitter by onyengbu: 9:37am On Aug 08, 2015 |
dammytosh: Don't mind him. I understand what u are saying perfectly.
I know web applications that ended up costing 1Billion Naira ( infrastructure , application , training etc)
That does not mean Fashola did not inflate this particular one but until he responds with a reasonable press release. Even guys at at silicon valley will not charge up to that amount to build any website in the mould of tundefashola.com. You guys can defend just about anything. Please give us a link to that website and make sure you are not talking about another government contract. |
Politics › Re: Photos: Three Gay Men Caught And Beaten To Death In Lagos. by onyengbu: 6:53pm On Aug 07, 2015 |
Liesss. The two pictures are from two unrelated events. The first picture is from gay guys caught and humiliated in IMO state. They were not killed. |
Webmasters › Re: Please What CSS Code Do I Need To Use To Solve This Problem by onyengbu: 1:18pm On Aug 05, 2015 |
cbrass: Have done it. I added z-index: 100 to the solution you gave me. And it worked fine. Thanks bro Good. |
Webmasters › Re: How To Start A Billion Dollar Startup: See How Instagram And Pinterest Started by onyengbu: 11:15am On Aug 05, 2015 |
Warlord3000: You don't have to use upper text to make your point while quoting me.. And the "na joke" part was the Airforce1 quoting so it won't sound like a mock phrase...
And wtf is wrong with you to assume someone doesn't have the brain or balls to do something?
Maybe next time you should read the mind frame of a poster before jumping to conclusion and quoting..
So go find the so called "brain" you are missing. I dont think he attacked you. I think he was even trying to motivate you. My thoughts though. |
Webmasters › Re: Please What CSS Code Do I Need To Use To Solve This Problem by onyengbu: 10:06pm On Aug 04, 2015 |
The div where the form is placed should be made position: relative and the container that holds the search search results should be position absolute.
This answer might be vague until one sees the full HTML of the section on the page.
Nice work you got there. |
Politics › Re: LASTMA Officials Challenge Police Officers For Driving One Way (Photos) by onyengbu: 7:16pm On Aug 04, 2015 |
That is over zealousness on the side of LASTMA. What if by their action they have interfered with an emergency call. One can see a long traffic jam on the other lane and I wonder why any sane man would want a police vehicle on duty to get stuck in such traffic jam. It both unsafe for them and other people in the gridlock with them because armed robbers might see it as an opportunity to strike. The funny thing now is that if it was a politician in a tinted glass vehicle, those LASTMA guys will clear the road for them even when they are one kilometre away. Yes we all hate police in naija but they are still crucial and sometimes they break the little things like traffic laws to do their job effectively. |
Webmasters › Re: Help In Debugging PHP Code by onyengbu: 7:21am On Aug 04, 2015 |
micodon: An advice.....Learn coding using notepad or notepad++. Dreamweaver may not make you a good coder. But those are not even Dreamweaver generated codes. As long as he is not letting Dreamweaver generate codes for him, I don't really see how notepad will make him a better coder. |
Webmasters › Re: Help In Debugging PHP Code by onyengbu: 7:57pm On Aug 03, 2015 |
True, adding the closing brace will solve it but then, your error message will not come out as you desired. If you just add the brace without doing anything else, on db connection failure, you will get error message you intended for incomplete form filling. So, Where you have the message "you have to complete the form" replace with something like " database connection failure", then after your current last brace you can now put your complete form message. Then add the missing brace. |
|
|
|
|
Webmasters › Re: Why Responsive Design Sucks And Reduces The Mobile Friendliness Of Your Site. by onyengbu: 7:54pm On Jul 25, 2015 |
directonpc: I seen a lot of webmasters on Nairaland over hyping responsive web design. I am going to state 3 reasons why responsive design sucks and why you should take the stress of designing mobile versions of your site. 1. Responsive sites load slow on mobile and consumes users data(megabytes). This is very true as responsible sites download same high resolution contents that were designed for pc version of the site it only useless css to cut some put and change width and height for others. Unlike responsive design a lite simple dedicated mobile version won't include contents that are heavy.
2. Less low-end device/browsers support. A responsive site might look good on high-end mobile devices and browsers but it is the opposite on opera mini and stock browser of older devices.
3 . Facebook, YouTube and google are not doing it so you should know that it is crappy. That is all and nobody can counter these points You do not just come to a forum like this one and throw around your opinions which you probably gathered from another source as if you are an authority by saying that nobody can counter you. That's damn arrogant and that will also reflect in the replies you are going to get. Even Einstein wouldn't say that. Your assertion that responsive sites download all high res contents rubishes that piont because you completely forgot or is not aware that there are server side codes to detect mobile devices. That alone makes whatever you posted here meaningless. so I have countered you and I won't even bother for back and forths. |
Webmasters › Re: Where Is This Error Coming From Please by onyengbu: 2:08am On Jul 21, 2015 |
cbrass: Thanks alot bro, I impletmented your example and some stuffs to it and it worked but I have another issue here. The edit link only picks one post-id ( posts and their ids are looped through the db and echoed on the page with the edit link right beside them) I have almost 10 posts Soviet should have 10 ids, I can't understand why the edit link only is picking one id in the loop Glad you did it. I was going to tell you not to get rid of IDs on a loop but I believe you figured it out on your own. |
|