Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,162,824 members, 7,851,758 topics. Date: Thursday, 06 June 2024 at 07:26 AM

Adesege's Posts

Nairaland Forum / Adesege's Profile / Adesege's Posts

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (17) (18) (of 19 pages)

Webmasters / Re: Mysql Deprecated Problems by Adesege(m): 2:10am On Aug 11, 2015
micodon:


Actually, deprecated functions will be removed entirely in future releases


Yah! Buh it's yet to be removed. So it can still be used. Just that he will be having cross platform issues
Programming / Re: Eclipse... by Adesege(m): 8:06am On Aug 10, 2015
Programming / Re: Eclipse... by Adesege(m): 7:36am On Aug 10, 2015
This problem is always experienced when the JAVA JDK path variable is not among the environment variable.

To fix this, you need to add the path to your jdk bin directory to your environment variables.

I've solved a problem like this on Nairaland, lemme search through my account to fetch it out.

...... in a jiffy
Webmasters / Re: Mysql Deprecated Problems by Adesege(m): 7:24am On Aug 10, 2015
Waga10, while that may solve your problem, technically it is wrong to do so.

Mysql has been deprecated as of PHP 5.5 does not mean you cant use it on a server. Deprecated doesnt mean it has been removed.

The solution you got will suppress the error but what if you have a problem connecting ro your db, that means you wont be able to get the errors.

A more better approach is to suppress E_DEPRECATED errors using the php error reporting. With that, you will get every other errors expect for E_DEPRECATED errors.

Put this at the very top of your mysql_connect page.

<?php
error_reporting(E_ALL ^E_DEPRECATED);
?>

As a side note, it is advisable you migrate to mysqli or PDO. There is a tool you can use to migrate from mysql to mysqli online. You can check mysql official website.

Let me know if you get it
Webmasters / Re: PHP Codes Assistance by Adesege(m): 12:25pm On Jun 13, 2015
Like i've said earlier, you need to be explicit.

Explain in clear terms what you want, how you want it, what codes you've tried, what programming language you are using etc.

If you can't do that i'm afraid your question may not be solved cos no one knows what you want.

Hamzad4u:
No file will not contain the question but rather the system will synchronize the book content and fetch out some possible question
Webmasters / Re: PHP Codes Assistance by Adesege(m): 5:02am On Jun 13, 2015
You need to be explicist.

What question will be generated?

Does the pdf or txt file contain the questions and you want to read the file and save it in the database?

Your definition of ' read the content of the book and generate a question' will be needed.

Also, what codes have you tried?
Webmasters / Re: Find The Error In This Mysql Statement. by Adesege(m): 7:14pm On Jun 11, 2015
Instead of echo mysql_error(), immediately after the closing bracket of the query, put:

or die(mysql_error());

That should give you more error reporting
Politics / Re: National Assembly Leadership: ‘Your Threats Are Empty’, PDP Tells APC by Adesege(m): 6:19pm On Jun 10, 2015
According to the clerk of the National Assembly, the constitution requires 37 members to form a quorum; two-third of the members of the house.

So Mr. Upnepaa, i see nothing unconstitutional here.

Moreover, reports came out that the president called the APC members-elect to a meeting to delay the inauguration of which he was later advised not to attend the meeting cos of his stance from dabbling into the NASS leadership.

Upnepaa:
Mr barcanista,what can you say about an election that was conducted by 59 out of a 109 member parliament in which it dose'nt reflect the totality of d NASS? smart politics is this good for our democrazy are we truly following the constitution in a so called democractic settings ?

1 Like

Webmasters / Re: How To Upload And Design Your New Domain And Host by Adesege(m): 7:11pm On Jun 08, 2015
Ok.

Your passion is what matters. Even if i give you all books and you are not determined, it'll just be a waste of time.

Moreover, you said you wana learn it cos your friends are earning money with it. Why don't you talk to them?

gidimasters:
I Have No Certification Yet.. Am Still In My First Year In School... All They Teach Us Is Qbasic.... while some of my coursemate are already building sites to make money.... that why i decided to take this step sir..... if you want to help me in some part here is my email. gidimasters@gmail.com
Webmasters / Re: How To Upload And Design Your New Domain And Host by Adesege(m): 11:37pm On Jun 07, 2015
It'll be outta course to know the kinda content he wants to upload.

But i'll like to ask @gidimasters, how did you become a webmaster if you do not know how to upload a web page to your host? What certification did you get? Where and when?

Because your question is part of what you must have been taught.

My question may sound ridiculous, sorry for that.
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 12:00pm On Jun 06, 2015
Please post what worked and went wrong for future reference
uvalued:
Thanks guys i did as you recommended and voila its running great.


thank you all for your quick and wise response.

Its most appreciated.

2 Likes

Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 11:25am On Jun 06, 2015
That's true but from the php code over there, you'll agree me that there is no header to force php to render it in json. That's the php json header.

So it's advisable he leaves it as it is.

JackOfAllTrades:

JQuery always perform intelligent guess in ajax response once the server set it to application/json it will return a JavaScript object other wise it will return a string of the response, so data type can be optional
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 11:20am On Jun 06, 2015
Gotcha! I'll advice you use the php code i gave you instead of yours cos from the var_dump of your php code, you'll agree with me that your json decoded array is three steps deep. Though, that doesn't pose a problem, but it's advisable.

The problem why it's not showing in your input form is cos of your selector.

Try something like

$('input[id="no"]').val(...);

or

$('#no').val(...);

You can check the jQuery documentation for list of selectors. There are a bunch of them.

Peace!
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 11:14am On Jun 06, 2015
Datatype is needed.

JackOfAllTrades:
@op i just tested your code it appears if you remove the dataType and ContentType options it runs fine
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 2:37am On Jun 06, 2015
+1 there.

Netbeans developers are what i call the Adobe Inc in the making. Why i said that is cos of their well structured interface, easy accessiblity and how intuitive the IDE is. Though in every aspect, their PHP Editor is next to nothing beside a Dreamweaver CC but i think their Java IDE will or maybe should be superior to Eclipse IDE.

Craigston:
Netbeans allows you to point to your jdk during installation: it'll save you some stress there. I like the two IDEs.
PS: has anyone tried Visual Studio? I'm thinking of that.
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 1:56am On Jun 06, 2015
IMHO, you've taken it too far. In your php, edit the sql statement. Instead of selecting all the columns in the table, be specific. I.e SELECT no, name FROM your_table blah blah.

The while loop will not be neccessary if the column type for no is unique. But in this case, i'll assume it's not unique.

While you are fetching, replace the statement inside the while loop with

$data[]=array_map('utf8_encode', $row);

Close the while loop. Replace your json_encode echo statement with

echo json_encode($data);

Having done this, save the page and visit the page on your browser, start typing something into the input form. Check your console, and you should see something like

{{ ...some data }}

Don't worry if you don't see that. I just realized there are alot of bug in your code. But i'll address that at the end of this.

Assume you saw the {{ ...some data }}, this implies that the json is nested. This is so because of the $data[]=...

In your Jquery, starting from the each control structure, delete everything till the last closing braces.

To access your values, you'll type

$('input#no"wink.val(data[0].no);

$('input#name"wink.val(data[0].name);

So this is everything in one.

$(document).ready(function () {
$('#no').keyup(function () { //keyup event responds
var loc = $('#no').val();
var dat='loc='+loc;
$.ajax({
dataType: "JSON",
url: "/php/barry.php",
data: dat,
async: false,
global:false,
type: "POST",
success: function (data) {
$("input#no"wink.val(data[0].no);
$("input#name"wink.val(data[0].name);
//this is end of success
},
error: function(xhr,ajaxOptions, thrownError){
alert(xhr.status+" "+thrownError);
}
});
});
});

PHP

<?php
include_once('/db.php');
if(isset($_POST['loc'])){
$fille = $_POST['loc'];
//echo "this is $fille";
//exit;
//$fille = '0000';
$sql = "SELECT no,name FROM barry where no='$fille'";
$res = mysql_query($sql);
while( $row = mysql_fetch_array($res) ){
$data[]=array_map('utf8_encode', $row);
}
//print_r($data);
echo json_encode($data);
}
?>

Endeavour to validate user input please.

Let me know if it helps
uvalued:

.
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 8:13pm On Jun 05, 2015
The two IDE's are different.

From my knowledge, Netbean comes bundled with Swing while Eclipse by default uses SWT. So it depends on what you want and need. Though, you can install SWT as a pluging into Netbean and Swing into Eclipse. I've not tried Netbeans anyway
chiemmaxy2:

Its netbean a good alternative what do u think hope I wouldn't encouter problems
Programming / Re: How To Get Data From A Website And Make Use Of It In Your Website by Adesege(m): 8:10pm On Jun 05, 2015
A lil' bit of googling might help.
Ncej:
Thanks for your response. Do you know any tutorial that can help?
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 8:09pm On Jun 05, 2015
Paste and not screenshot.

uvalued:


Ok do you mean the php or jquery? well if i understand your statement, here it is again
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 7:05pm On Jun 05, 2015
Don't mention. It's my pleasure.
chiemmaxy2:
Thanks for ur help am grateful
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 7:03pm On Jun 05, 2015
You should know that Java is consistent. You cant use older versions with newer versions. Hope it works now?

chiemmaxy2:


Yea do u know what I think I think dat dat ma jre its incomplete because I check d jre of 6 I caan see a lot of stuffs but in my jr8 only client
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 6:25pm On Jun 05, 2015
That's where you got the error.

In your 'path' variable in your Environment Variables, change the bin path to JRE1.8.0_45 to the one in your system.

For error proof, navigate to jre8.0_45/bin. Remember, you must be in the bin folder of the jre8.0_45 folder.

Now go to the top, usually the address bar of your file explorer, you will see the absolute path to the bin folder. Copy it and go to your environment variables, replace the former (jre1.8.0_45) with the one you copy. Not just the version but the full path.

Hope it helps.

chiemmaxy2:

3
Jdk1.8.0_ 45
Jre6.0_01
Jre8.0_45
Programming / Re: Help! Cannot Get Json Array Into Input Field - Jquery by Adesege(m): 6:17pm On Jun 05, 2015
Please paste the code from
success: function(){ ... }
This will enable me to understand how you came about data.result['no'].
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 6:10pm On Jun 05, 2015
If you are on 64 bit. Follow the above step but if you didn't find the Java folder there. Go to Program Files (x86) in your C drive and look for Java folder. If it's there, open it and tell me the name of the folder(s) there.
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 6:07pm On Jun 05, 2015
If that be the case, open file explorer, navigate to Program Files in your C drive. Look for Java folder.

Tell me the name of the folder(s) there. Is it one or more?

chiemmaxy2:

Yep I am on window7 and 32 bit
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 5:59pm On Jun 05, 2015
Are you on windows 7 and 32 bit?

chiemmaxy2:
Like this no java virtual machine found after seaching c:/proramfiles/jre/bin/javaw.exe
The slash it d oda way round as u advised . Am just using phone
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 5:58pm On Jun 05, 2015
That means your jre path is not valid.

JRE contains the java virtual machine. Did you append a semi colon before the jre path?

chiemmaxy2:


Yep I did as u advised now it develop anoda problem that no java virtual machine in my path

I have edited and edited and keep editing even change location of java but eclipse still tell me dy same thing dat no virtual machine found
What do u think its d problem
Thanks
Programming / Re: How To Get Data From A Website And Make Use Of It In Your Website by Adesege(m): 5:07pm On Jun 05, 2015
Yes, you can use cURL. But consider a RestFul API.
A restFul API is the best method to accomplish what you looking for.
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 11:39am On Jun 05, 2015
Oops! I wasn't with my system when i posted my initial reply. Just realized clicking on Manage will take you to some advanced system setup.

I hope you understand this better.

Right click on the 'Computer' icon either from your desktop or from start menu. Click on properties. From the corresponding popup click on 'Advanced System Settings' and allow access as an administrator. Usually, the 'Advanced' tab will be on display by default. If not click on 'Advanced'. Scroll to the last button and click on 'Environment Variables'. From the corresponding dialog, the section is devided into two; 'User Variables for {system_name}' and 'System Variables'. Where {system_name} is the name of your PC or maybe user. We are only concerned with System variables.

Look for the 'path' variable. Double click on it. From the corresponding dialog, you will see two form inputs; variable name and variable value.

Note that we are to append to the variable value. That's, move your cursor to the last part of the text. Type a semi colon ';' then followed by the path to your jdk bin folder. Usually C:\Program Files\Java\jdk1.8.0_45\bin. In my case 1.8.0_45 is the version number. It may differ in your case though i use Java 8 also.

Like i earlier stated, Java 8 comes bundled with JRE. We need to also provide the path in our system variable before Eclipse can function.

After you must have appended the jdk bin path to our system variable, we must follow it by another semi colon ';' then the path to our JRE bin folder. Usually C:\Program Files\Java\jre1.8.0_45\bin. In my case 1.8.0_45 is the version number. It may differ in your case though i use Java 8 also.

Click on OK, then restart your Eclipse IDE. It's not neccessary to restart your system but you may wish to.

Basically, what you'll append will look like

;C:\Program Files\Java\jdk1.8.0_45\bin;C:\Program Files\Java\jre1.8.0_45\bin

Please take note of the semi colon before the initial path.

Let me know if you have any problem with it.
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 11:07am On Jun 05, 2015
Hey sup, been busy. Will reply you as soon as possible.
chiemmaxy2:

Explain well because his own failed . How do I do it
Programming / Re: Programmers help me With This Problem Pls !!!!!!!!!!! by Adesege(m): 11:30pm On Jun 03, 2015
Usually it's because your Eclipse IDE cannot find JAVAHOME environment variable in your environment variables if you did what Craigston suggested and the problem persist.

Right click on 'Computer' after clicking on the ' Start menu icon'. Click on Manage. Click on Environment Variables from the corresponding popup. Edit the environment variable and append a semi colon ';' without the quotes followed by the path to the jdk8 and jre8 folder. Note that as of Java8, jre comes bundled with java, so need to download it except for older versions.

That's it and it should work perfectly.

1 Like

Education / Re: The Federal University Of Technology Akure(futa) 2015/2016 Admission Session by Adesege(m): 8:37am On May 24, 2015
Sup bro. Pls i also need the past questions.
Subj: Math, Eng, Physics, Chemistry, Current Affairs.
Mail: fadojutimitemitayo[at]gmail[dot]com.
Thanks
drfunso1:

Sent; I'm sorry for d delay

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (17) (18) (of 19 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 53
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.