Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,162,783 members, 7,851,654 topics. Date: Thursday, 06 June 2024 at 03:39 AM

Adesege's Posts

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

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

Webmasters / Re: Let's Learn PHP by Adesege(m): 5:59pm On Nov 09, 2015
While this is a good initiative, though I know you will not finish what you started, I think you need to learn web security to secure your site.

Sometime last year, I pen tested tulzmaster and I noticed some vulnerabilities.

If I had any bad intentions, I would have gone further.

Also, if you want to teach, you teach. It's funny to ask for likes and shares before you teach.

I know those who must have read your post will be like, "who cares anyway". So, please change your attitude.

If people think you are doing a great job, they will willingly like and share.

See you at the top.

Best regards,
Adesege

1 Like

Webmasters / Re: Post your PHP Problems Here by Adesege(m): 3:40pm On Nov 08, 2015
ProElite:


Okies. I will love to join the brains here to improve.
To start with my Wamp Server is mot coming up.
Error msg is that it cant run cos one dll file is missing.
Please help me. Also I will be grateful if U can help with my Window 8 Mně pro mě activation. »̶·Ŧђɑ̤̥̈̊п̥̥̲̣̣̣kƨ̣̣̣̇̇̇̇«̶

Hello, it appears the MSXML dll on your system is not up to date. Forgive me if the file is not MSXML. You can get the name of the file when the error comes up.

Search google with the name as the query but suffix it with download. Download the file and install. Your wampserver should work.

Alternatively, you can download it from Wampserver site.

Hope it helps
Webmasters / Re: Post your PHP Problems Here by Adesege(m): 3:37pm On Nov 08, 2015
rflexii:


Hello, though I've never tried gtpay for once. If you can direct me to their doc, I may actually help rectify the problem you are facing.

I've integrated a payment platform before but not gtpay.

Regards
Business / Re: Website Needed by Adesege(m): 2:55pm On Nov 08, 2015
adollyboy:
I need a website for news reporting.Can anybody in the house tell me what it cost to own a website.?I would like to know all the technicalities involved. I will appreciate your comment,suggestions and advise

There are plug and play platforms you can use to get started immediately. WordPress is a popular content management system which allows installation of themes and plugins to customize the UX of your website. It is also intuitive.

Joomla is another one. While I've tried to understand WordPress several times, I've never got to understand how joomla operate. Joomla is powerful and it can be used to build virtually anything. Most education websites in Nigeria use Joomla for the management of their web presence.

Some online print media uses Wordpress. Vanguard, Punch are the ones I can mention.

If you are thinking of getting started quickly, I will recommend WordPress.

How to get started:

All websites have a web host and domain name. Just as I always explain to my students, a webhost is like a piece of land while a domain name is like a house number. Structures on the land are the web pages. A house number points to a particular land/house. So also is a domain name, it points to your website on the internet. While the piece of land houses the structures, so also does a webhost houses web pages.

There are handful of domain name registrar on the net and web hosting service provider. If you have one you use, you can proceed to registering your domain name with them and buying a host space. If not, let me know so I can recommend the one I use.

There are some things to consider when buying a host space; bandwidth, disk space, server uptime, customer support, money back guarantee, intuitiveness, are among them. Do not consider a web host of N5,000 with 100gb bandwidth and 10gb disk space to be cheap. That's very expensive. You can get unlimited bandwidth and 100gb disk space at the same price. All for a year.

Register your domain and link your domain name to your web host. Some platforms does this automatically, while some takes 30 minutes for the DNS to propagate when done manually.

Download the latest WordPress version from www.wordpress.org if your web host does not have the latest version of WordPress on their server.

There are two ways of doing this, which I will take the pains to explain.

You can install WordPress directly from your web host using the script installer.

Login to your cpanel via www.yourdomain.com/cpanel, look for the script installer tab and click on Wordpress. The next processes are concise.

Or

You can alternatively upload a version of WordPress you have on your computer through file manager or ftp. This is important if you've worked on it locally. I will recommend file manager. If you want to use ftp, connecting your Adobe Dreamweaver to your web host will be the best option.

I will explain how to use file manager.

Zip your WordPress file, this is easier to upload than uploading one file at a time.

Click on file manager from your cpanel, you will be taken[img][/img] sad to your site root directory; public_html, htdocs, or www depending on your web host.

By default, you should have some files in your root directory if you bought a new web host. Delete these files as they are not important. Also, it can cause a clash when you have index.html and index.php in the same directory.

Click on upload, a new tab will be opened. Click on the browse button and select the zipped WordPress file. Your upload should start immediately. Depending on your network speed, it should take a moment to upload.

After the file has been uploaded, go back to your root directory and refresh the page. You should see the uploaded WordPress file there. Click on it and click on Uncompress link at the menu tab. The uncompress will take few seconds to finish.

Once that's done, you can access your website and WordPress will take you through the installation process.

There are still more to it, but wherever you get stuck, let me know and I will start from there.

Getting a good theme and customizing it to fit your brand is the next thing.

I'm a not CMS developer, I will advice you get the service of a good WordPress developer to help you.

I build programs from scratch. Though I've tried making WordPress a part of me, but it doesn't seem so.

Let me know if this is helpful.

Regards,
Adesege.
Business / Re: Website Needed by Adesege(m): 2:35pm On Nov 08, 2015
My opinion though,

OP requested for the technicalities involved to own and operate a fully functional website and not those that can build for him.

I think it will be better we change our attitude on this forum for the betterment of all.

Why not offer your service first and if you think there is a need to go extra mile, you can now bargain.
Programming / Re: Array Conversion In PHP by Adesege(m): 4:14pm On Oct 31, 2015
Dlastofmykind:


Ok. Thanks

Does that help??

If not, you can rewrite the code to show where you are having problem and paste here.

I cant work on abstract
Programming / Re: Array Conversion In PHP by Adesege(m): 12:36pm On Oct 31, 2015
What code have you tried?

Can you post the code that generated the first code so I can have a look??

What programming language are you using also?
Business / Re: New Beverage Company Emerges - Giant Beverages Limited. by Adesege(m): 5:35pm On Oct 19, 2015
Kindly provide your corporate email address, office address and phone number.

Are there any product your company has manufactured that is in the market??

Expecting your response

2 Likes

Programming / Re: Please Help If You Are A Developer. by Adesege(m): 12:13pm On Oct 07, 2015
What you wanted was a plain html template but according to you, I guess you ended up buying a CMS template.

Can you paste the directory structure of the template so I can have a look at??
Religion / Re: Which One Of The Two Is Taking Control Of Your Life ? (pics) by Adesege(m): 11:53pm On Oct 04, 2015
freecocoa:
I agree I was rude and that was on purpose but I did speak the truth.

Was in my trolling mode earlier.grin

Trolling mode indeed.

Nice moniker you've got *winks*
Religion / Re: Which One Of The Two Is Taking Control Of Your Life ? (pics) by Adesege(m): 7:32pm On Oct 04, 2015
freecocoa:
My phone ofcourse.
I find its very useful, compared to the nonsense book of trash called bible.
At least you shouldnt be rude to other religion's holy book.
God bless
Politics / Re: Jonathan Breaks Silence - El-Rufai Lied On Independence Expenditure by Adesege(m): 7:05pm On Oct 04, 2015
FreeGlobe:
APC is synonymous with lies. The midget el rufai too his lies to the kaduna state government house. That state has gone to the dogs

With propaganda, they won presidency. We dont expect them to change all of a sudden though.

FreeGlobe:
APC is synonymous with lies. The midget el rufai too his lies to the kaduna state government house. That state has gone to the dogs

With propaganda, they won presidency. We dont expect them to change all of a sudden though.

FreeGlobe:
APC is synonymous with lies. The midget el rufai too his lies to the kaduna state government house. That state has gone to the dogs

With propaganda, they won presidency. We dont expect them to change all of a sudden though.
Politics / Re: Sadiq The Real Identity Of The Man Who Predicted Abuja Bombing Revealed- Pics by Adesege(m): 5:54pm On Oct 04, 2015
From an Information Technology Personnel perspective,

Getting the persons details via true caller app is not sufficient alone. I can register my sim with another name or open a social media account in another name aside my real name.

Getting the true identity of an internet user is not efficient as a user can have multiple identity.

But...

The Nigeria force, be it army, police, navy or whoever is responsible to do so, can write Twitter and/or any other social media site ChimaOkoro is/was found to be a member.

The NG force can request for the user's activity, ip address and probably his/her posts.

A profiling on the ip addresses obtained can lead the respective force(s) somewhere.

Also, the phone number that is been spread around on social media has multiple identity.

While true caller gave the owner's name as Sodiq Hono, someone added it on 2go,, and it gave another name. That confirms my first assertion that profiling him via an app may not be efficient.

I hope this gets to the respective quarters and be looked into.

God bless the Federal Republic of Nigeria

1 Like

Webmasters / Re: Post your PHP Problems Here by Adesege(m): 6:37pm On Oct 03, 2015
satmaniac:
Welcome back bro,

[size=39pt]Modified[/size]

Hello, below is a brief rewrite i wrote on the code you posted. I believe it should work.

I do not guarantee any security whatsoever for this code, use it at your risk.

I've also provided some comments in between.

Your response will ascertain if the code actually works for you.

In between, i assumed you were trying to repopulate your form after the submit button has been clicked. While this is a good idea, the way you went about it wasnt good. I've provided a function which you can use to do that.

Just call set_value($fieldname); where $fieldname is the name you assigned to the input, select, checkbox, or radio element.


<?php
include 'connect.php';
if (isset($_POST['registerBtn']) && $_POST['registerBtn']=='Register'){
//It is adviced you sanitize whatever data you will be receiving from user.
$firstname = $_POST['firstname'];
$name = $_POST['name'];
$email = $_POST['email'];
$password = $_POST['password'];
$confirmpassword = $_POST['confirmpassword'];
$username = $_POST['username'];
$sex = $_POST['sex'];

}

if ($password!=$confirmpassword){
echo 'password do not match';
exit;
}
if (empty($firstname) || empty($name)){
echo 'The name field is required';
exit;
}
if (empty($username)){
echo 'The username field is required';
exit;
}
$query= mysql_query("SELECT username FROM user WHERE username ='$username'"wink;

if (mysql_num_rows($query_run)>=1){

die("The username already exist!"wink;

}else{
$insert = mysql_query("INSERT INTO user SET firstname='$firstname', name='$name', email='$email', password='$password', username='$username', sex='$sex'"wink;
/*
** Storing confirm password is not necessary.

** It should only be used at runtime to verifiy if it matches password field

** Also, a rewrite has been made in the insert query. I used the set clause.
*/
if ($insert){
echo 'You have been successfully registered.';

}else{

echo 'You could not be registered at this time, try again';

}

}



?>

<?php
function set_value($name){
if(!empty($name) && isset($name) && isset($_POST)){
return $_POST[$name];
}
return;
}
?>
<h1>REGISTRATION FORM </h1>

<form action = "register.php" method = "POST">

First Name:<br /><br /><input type = "text" name = "firstname" value = "<?php echo set_value('firstname'); ?>"/><br /><br />
Name:<br /><br /><input type = "text" name = "name" value = "<?php echo set_value('name'); ?>"/><br /><br />
Email:<br /><br /><input type = "text" name = "email" value = "<?php echo set_value('email'); ?>"/><br /><br />
Password:<br /><br /><input type = "password" name = "password" /><br /><br />
Confirm Password:<br /><br /><input type = "password" name = "confirmpassword" /><br /><br />
Username:<br /><br /><input type = "text" name = "username" value = "<?php echo set_value('username'); ?>"/><br /><br />
Sex:<br /><br /><input type = "text" name = "sex" value = "<?php echo set_value('sex'); ?>" /> <br /><br />
<input type = "submit" value = "Register" name="registerBtn"/>


</form>
Webmasters / Re: Post your PHP Problems Here by Adesege(m): 6:05pm On Oct 03, 2015
satmaniac:



If I must be sincere,

1. I've not been away in the real sense.
2. Since our last discussion, I can categorically tell you that I haven't browsed with my system. Not that I don't have subscription but...
3. I've been busy.
4. No power supply in my area and whenever I put on my generator, I...
5. Use it to work on my clients' work.

The other day I asked you to give me some time to work on the code you posted, I actually did a rewrite of it but I didn't save it. When I was supposed to post it, I realized I've been banned on Nairaland. What the offence was, I really cant fathom.

And since then, I've been busy.

But don't worry, as soon as I post this, I will work on it for the last time.

Happy coding
Webmasters / Re: Post your PHP Problems Here by Adesege(m): 2:16pm On Oct 01, 2015
While you may be correct, I've been busy to rewrite the code after I did before I got blocked, so I just edited what he needs and repost from his post.

So I didn't study it deep down. Just corrected the errors he was facing.

Thanks for pointing it out anyway. It will definitely help anyone experiencing such.

Adesege.

afotrick:






Hello ur script is alittle buggy cause of ur use of single and double quotes. Try this instead

$query = "INSERT INTO user VALUES('', '$firstname', '$name', '$email', '$password', '$confirmpassword', '$username',' $sex')";

The mistake u made is pputting . which means concatenation in php between the sql query will only cause problem if u dont break it will double quote like u statted with. If u started with single quote then wen u concatenate. U end each string with single also.
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 11:15am On Sep 24, 2015
This may be what you are looking for.

<table width='100%' height='100%'>
<tr>
<td>S/N</td>
<td>Date</td>
<td>Summary</td>
<td>Actions</td>
</tr>
<?php

//connect to mysql db
//It is recommended you don't use mysql functions again in new projects as it is deprecated and will be removed from future version

$sql=mysql_query('SELECT * FROM user_activity ua LEFT JOIN users us ON ua.user_id=us.id WHERE ua.user_id="".$userIDfromSession."" ORDER BY ua.date DESC') or die(mysql_error());

$num_rows=mysql_num_rows($sql);
if($num_rows>=1){
$i=1;
while($fetch=mysql_fetch_assoc($sql)){
$id=$fetch['id'];
$date=$fetch['date'];
$summary=$fetch['summary'];
echo '
<tr>
<td>'.$i.'</td>
<td>'.$date.'</td>
<td>'.$summary.'</td>
<td><a href="edit.php?id='.$id.'">Edit</a></td>
</tr>
';

$i++;
}//end while
}else{
echo '<tr>
<td>No result in database</td>
</tr>';
}

?>

</table>

I do not guarantee security for this code. Use at your risk
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 7:58am On Sep 24, 2015
analogiphone:


My oga please still waiting to hear from you

I have worked on it but was banned while replying your message.

Will share the editted code with you once I change to pc mode as I'm on my phone now.

Barka de salah
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 9:52pm On Sep 22, 2015
[size=35pt]<msg>..:::: Modified ...::::</msg>[/size]


This may be what you are looking for.

<table width='100%' height='100%'>
<tr>
<td>S/N</td>
<td>Date</td>
<td>Summary</td>
<td>Actions</td>
</tr>
<?php

//connect to mysql db
//It is recommended you don't use mysql functions again in new projects as it is deprecated and will be removed from future version

$sql=mysql_query('SELECT * FROM user_activity ua LEFT JOIN users us ON ua.user_id=us.id WHERE ua.user_id="".$userIDfromSession."" ORDER BY ua.date DESC') or die(mysql_error());

$num_rows=mysql_num_rows($sql);
if($num_rows>=1){
$i=1;
while($fetch=mysql_fetch_assoc($sql)){
$id=$fetch['id'];
$date=$fetch['date'];
$summary=$fetch['summary'];
echo '
<tr>
<td>'.$i.'</td>
<td>'.$date.'</td>
<td>'.$summary.'</td>
<td><a href="edit.php?id='.$id.'">Edit</a></td>
</tr>
';

$i++;
}//end while
}else{
echo '<tr>
<td>No result in database</td>
</tr>';
}

?>

</table>

I do not guarantee security for this code. Use at your risk
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 8:04pm On Sep 22, 2015
What you want is to spool out all the records in a table, say user_activity, holding a user's activity on your website.

Having columns:

ID - table ID for user_activity
user_id - for the user who initiated the activity.
date (datetime type) - when the activity was made.
title - subject for the activity.

But is there any code you have tried so I can improve on it?
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 7:59pm On Sep 22, 2015
analogiphone:


Thanks bros, this is the code displaying the datas from my database.



Have tried losts of code to put the record inside a table.

What code is this for? For verifying I a user is logged in? Or for logging a user in?

Nevertheless, what's the name of the table holding the date, time, and activity column? And what code have you tried in that respect?
Webmasters / Re: How To Upload An Image Into Mysql Database by Adesege(m): 7:51pm On Sep 22, 2015
Old threw but my contribution maybe useful to other people who want to solve a problem like this.

It's not advisable to store an image as a blob type in a db, performance wise.

To go about the question OP asked, the following steps should guide you right:

1. You need to know that images will not be saved in a db, so you will need a storage to store your files. That means l, you will need to upload the image on your sever.

2. Once the image has been uploaded, you will need to store the image location or url in the database against the user who uploaded. You can have a table for the uploaded images with ID (auto increment and primary key), user_id, img_url. The user_id will be joined on the user table to get other information relating to the user. This is called a relational database. You can read up more of this on WIKI.

Basically, from the layman understanding, those are the two things that needs to be done but programmatically, you will still write thousands lines of codes.

I hope this helps someone.

@ yawatide, how u dey? Good to see ladies-in-programming
Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 7:33pm On Sep 22, 2015
analogiphone:
Php

I know it's php but what php code have you tried?

No one will spoon feed you like I said if you haven't tried any code.
Webmasters / Re: Post your PHP Problems Here by Adesege(m): 7:29pm On Sep 22, 2015
satmaniac:
if( mysql_num_rows( $query_run)==0 ) {
$mysql = " INSERT INTO ‘users' VALUES( 'name', 'email', 'password', 'username' ) ";
$mysql_run = mysql_query($mysql);


if(mysql_run){
echo ' you don register';
}



}else{
echo 'The username already exist';
}

The interpretation of your code is:

If username does not exists, then do the following code.

What you ought to test for should be

if( mysql_num_rows( $query_run)>=1 ) {
$mysql = " INSERT INTO ‘users' VALUES( 'name', 'email', 'password', 'username' ) ";
$mysql_run = mysql_query($mysql);


if(mysql_run){
echo ' you don register';
}



}else{
echo 'The username already';
}

You will notice there is 1 there instead of 0


Let me know if you have any issue concerning this.

1 Like

Webmasters / Re: Urgent Help To Display Data In Php by Adesege(m): 5:16pm On Sep 22, 2015
Before we can help solve your problem, your reply to the below questions will point us to the right direction.

1. What code have you tried?
2. Can you dump your sql table here for all to see.

You should know that no one will spoon feed you with codes. Tell us where you missed it and we will correct it.

What's your level in PHP also
Science/Technology / Re: My Laptop Is Killing Me... Help by Adesege(m): 11:25am On Sep 21, 2015
gorgeousnogo:
Hi guru's in the house.. I need your help
Thanks

It may not be a virus problem.

1. What version of Mozilla are you using? Have you tried updating your browser?

2. Did you make any recent changes to your system settings?

3. Go to uninstall programs, check softwares that weren't installed by you. Uninstall them, then reload tour system.

Reply to these questions may point me to the right direction.

Also, tell us your system specifications. The RAM, OS and system architecture.
Computers / Re: Please Help by Adesege(m): 4:52pm On Sep 20, 2015
You have an adware on your system which is interfering with your system.

To fx this, you will need to scan your system with a good adware scanner or antivirus. I will recommend 360 Total Security. But note, don't use it while browsing the net because 360 is powerful and it will quarantine any system files that is virus infected. You may not understand until you experience it. On different occasions, it eats up my logon.exe. But don't be afraid, it will only do that if your system files are corrupt.

360TS will also boost your system load time and speed up your system. You can google search for a link to download it. Be sure to download the latest version.

Adware may also come from downloaded software that has it built in. To remove that, go to uninstall programs, and check for softwares that were not installed by you. Uninstall them and restart your system.

These two methods should solve your problem.

Let me know the outcome


Olasco93:
Good Day Everyone!
Please i have a problem browsing with my Laptop. I don't know if my explanation is correct though, but i believe someone here can understand what am trying to say.
The problem is anytime i click on an Icon to open a thread or something, Mozilla will automatically open it in a new tab by itself for which i did not click "Open Link in New Tap or Window"
Secondly,
When am browsing, Adverts will just pop-up from nowhere blocking my opened window.
Your advice on how to go about it is welcome.
thank you!!!

1 Like

Properties / Re: Own A Full Plot Of Land With N1,000 For 21months. Outright Payment N400,000 by Adesege(m): 11:03am On Sep 19, 2015
Pls, is there any applicable terms and conditions?
Programming / Re: Help With Codeigniter And Git by Adesege(m): 8:24am On Sep 17, 2015
malawi101:



Sir does it mean the front end guys don't need d Form Helper?

No dey dont need to have an understanding of how codeigniter works.

Once they've designed the interface, the BE developers will be the one to put all that.

Take for instance a blog list page. The FE developers will create an interface for the blog list. After which the BE developers will edit it and put a loop where necessary.

There are lot of stuffs you can add to codeigniter to make it intuitive to use.

HMVC is one of them. It allows you to create independent modules of a MVC. That is, you can have a login module and make it usuable in other applications you will build. The module will have its own model,view, and controller.

Also, you can add theming to your application just like wordpress. Codeigniter allows that.

Another great one is a templating system. Smarty is a great one. and talking of caching web pages, it allows that.

While smarty may not be of essence to you, just think of having all your views in one folder. That is theming.

Also think of having independent modules for your MVC.

God bless

2 Likes

Programming / Re: Help With Codeigniter And Git by Adesege(m): 10:09pm On Sep 16, 2015
It is called Model View Controller design pattern.

The FE developers can work on the site without Codeigniter. It is not necessary and it is unimportant.

What FE Developers does is to work with client side scripting and markup languages. They don't need to have an understanding of how the application will work.

After they must have finished developing the interface, the BE Developers integrate and modify it to work with the Controller.

It is unnecessary for FE to have any technical knowledge. Theirs is to build the interface. Yours is to integrate it into the system.

2 Likes

Education / Buy WAEC Result Checker Card For N650 On PSN by Adesege(m): 9:12am On Sep 04, 2015
We just launched our upgraded platform yesterday, September 3rd, 2015.

We sell E-facility cards online using our secured platform.

If you are yet to check your WAEC result, you can buy the scratch card using our platform for N650.

Four easy steps to do that.

R - Register / Login
S- Select the card to purchase.
V - View your transaction info.
P - Pay using our secured payment processing system.


You get your scratch card right on the screen and in your mail

www.psnumbers.com

Enquiries: Info@psnumbers.com

PSN - Making a difference in Nigeria

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (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. 95
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.