₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,083 members, 8,420,218 topics. Date: Thursday, 04 June 2026 at 01:51 PM

Toggle theme

WebsiteGuy's Posts

Nairaland ForumWebsiteGuy's ProfileWebsiteGuy's Posts

1 2 3 (of 3 pages)

Tech JobsRe: PHP Projects by WebsiteGuy: 1:10pm On May 02, 2017
Please can you call 07030595653. I have a project for you.

Thanks.
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 11:27pm On Apr 28, 2017
Thanks so much I really appreciate. It has worked.

I had to put session_start() at the top of the two pages.

Thanks
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 10:28pm On Apr 28, 2017
Yes I recieved


"The problem is not from the database" error
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 10:04pm On Apr 28, 2017
Still not working please check the home.php code also

---------------------------


<?php
if (!isset($_SESSION['usernam']))
{
header("location: cpanel/login.html"wink;
}
session_start();
$myusername = $_SESSION["usernam"];
$mypass = $_SESSION["passwd"];

include('includes/header.php');?>
Welcome to admin</title>

<style type="text/css">
#apDiv1 {
position: absolute;
width: 585px;
height: 25px;
z-index: 1;
left: 722px;
top: 181px;
}
</style>
</head>
<body>
<div id = "mainBody">
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 9:35pm On Apr 28, 2017
Please how should the code be? I will appreciate if you can post the exact code for me to use.

I am not a php pro like you sir...
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 9:07pm On Apr 28, 2017
Thanks so much hex40;

I think the problem is from the home.php because it is not bringing up the alert message;

help me point out what is wrong please:

-------------------------------------
<?php
if (!isset($_SESSION['usernam']))
{
header("location: cpanel/login.html"wink;
}
session_start();
$myusername = $_SESSION["usernam"];
$mypass = $_SESSION["passwd"];

include('includes/header.php');?>
Welcome to admin</title>

<style type="text/css">
#apDiv1 {
position: absolute;
width: 585px;
height: 25px;
z-index: 1;
left: 722px;
top: 181px;
}
</style>
</head>
<body>
<div id = "mainBody">
ProgrammingRe: PHP Programmers Please Help With This Code by WebsiteGuy(op): 8:45pm On Apr 28, 2017
Thanks @ hexy40; I have cleaned as advised but still the same error.

Below is the new code

--------------------------------

<?php
if (isset($_POST['submit'])){

include("database.php"wink;

$myusername=$_POST["username"];
$mypass=$_POST["pass"];


$pincodequery = "Select * from login where username='$myusername' AND pass='$mypass'";
$pinquery = mysql_query($pincodequery);
$run = mysql_num_rows($pinquery);

if ($run > 0 )
{
header("Location: Home.php"wink;
}



else
{
echo"<script>alert('Incorrect Username or Password')</script>";
echo"<script>window.open('cpanel/login.html', '_self')</script>";
}

}
?>
ProgrammingPHP Programmers Please Help With This Code by WebsiteGuy(op): 8:16pm On Apr 28, 2017
Please what is wrong with this code?

-----------------------
<?php
if (isset($_POST['submit'])){

include("database.php"wink;

$myusername = $_POST["username"];
$mypass = $_POST["pass"];

$pincodequery = "Select * from login where username ='$myusername' AND pass ='$mypass'";
$pinquery = mysql_query($pincodequery);
$run = mysql_num_rows($pinquery);

if ($run > 0 )
{
header("Location: Home.php"wink;
}

else
{
echo"<script>alert('Incorrect Username or Password')</script>";
echo"<script>window.open('cpanel/login.html', '_self')</script>";
}
}
?>
---------------------------------------------

It is the action script on login submit button. After inputing correct username and password it goes to "cpanel/login.html" instead of "Home.php"

What could be wrong with the code?
CelebritiesWhy Do You Like EFE? by WebsiteGuy(op): 5:49pm On Apr 08, 2017
As a psychologist, this is a question I have wanted to ask for a while now. And I think we can all learn from it. What endeared you to EFE of BBnaija?

I like him because many people like him.

Psychology behind this is that we tend to like someone that many people also like. Watching him among the housemates; he is just as normal as everyone else. If his humility is what endeared people to him, I think there are other humble housemates as well.

What is your own reason for liking or loving him? Please don't say you just like him, explain why?
Technology MarketRe: Used National Ac For Sale Slipt Unit 1hp,2hp, 6 Left by WebsiteGuy: 1:14pm On Oct 13, 2013
If the split unit is clean and cools well, then if you will like to swap with brand new chigo window unit + some money. Let me know.
WebmastersRe: A Ban On 10-49K Website Design by WebsiteGuy: 12:16am On Oct 13, 2013
Need a [url="http://nihtem.com"]Website design company in Nigeria[/url] call 07030595653
WebmastersRe: Do You Want To Effortlessly Become A Website Designer/developer? by WebsiteGuy: 11:28pm On Oct 12, 2013
Need a Website design company in Nigeria call 07030595653
WebmastersRe: Can You Survive In Nigeria Doing Web Design Alone by WebsiteGuy: 11:22pm On Oct 12, 2013
WebmastersRe: Cost of Web Design Training in Lagos by WebsiteGuy: 11:16pm On Oct 12, 2013
Need a Web design company in Lagos Nigeria call 07030595653
WebmastersRe: Free Web Design For 3 Nairaland Members. by WebsiteGuy: 11:15pm On Oct 12, 2013
Need a Web design company in Lagos Nigeria call 07030595653
Web MarketRe: webshop, ecommerce, onlineshop, web design in lagos, abuja, kaduna, Jigawa, by WebsiteGuy: 11:14pm On Oct 12, 2013
Need a Web design company in Lagos Nigeria call 07030595653
Art, Graphics & VideoRe: Free Ad Promo For Web Designers On Nairaland: Round 2 by WebsiteGuy: 11:13pm On Oct 12, 2013
Need a Web design company in Nigeria call 07030595653
WebmastersRe: Learn Web Design LIVE On Nairaland!!! by WebsiteGuy: 11:12pm On Oct 12, 2013
Need a Web design company in Nigeria call 07030595653
WebmastersRe: I Need A Clone Of This Website In Wordpress Fast by WebsiteGuy: 11:11pm On Oct 12, 2013
Need a Web design company in Nigeria call 07030595653
HealthRe: Tips To Curing Ulcers And Living Healthy by WebsiteGuy: 11:03am On Sep 04, 2013
Tnxs my sister
HealthRe: Tips To Curing Ulcers And Living Healthy by WebsiteGuy: 9:13am On Sep 04, 2013
Pls can a pregnant woman of 8 mnths use dat unripe plantain remedy?
WebmastersRe: A Client Offered Him 1 Million For Three Websites. Should He Take It? by WebsiteGuy: 9:48pm On Aug 01, 2013
This type of laugh that forces tears out of my eyes - it has been long since I laughed this way. Slyr0x wan kill person with laugh.

Hey, I forgot somebody also offered me N50 million for 3 websites, should I also take it or leave it?

Greenmouse, you need to re-strategize, this only works in a community full of Mumus.
HealthRe: Cholera Outbreak Kills 5 In Ogun by WebsiteGuy: 10:41am On Jul 25, 2013
Something need to be done So dat it will not spread to other community
WebmastersChoosing And Registering A Domain Name by WebsiteGuy(op): 3:02pm On Jun 19, 2013
A domain name is the name for your web site e. g. www.mynaijahost.com

Most web hosting providers include domain registration.

Domain names must be registered. When domain names are registered, a DNS server is linked to it. Information about the web site, including the IP address, is stored on a DNS server.

DNS stands for Domain Name System. A DNS server is responsible for informing all other computers on the Internet about the domain name and the web site address.
Registering a Domain Name

Domains can be registered from domain name registration companies.

Just like MyNaijaHost, a web hosting firm provides interfaces to search for available domain names, and they offer a variety of domain name extensions that can be registered at the same time.
Choosing a Domain Name

Choosing a domain name is a major step for any individual or organization.

New domain name extensions and creative thinking still offer thousands of excellent domain names!

When choosing a name, it is important to consider the purpose of a domain name, which is to provide an easy way to reach your web site.

The best domains have the following characteristics:

Short – People don’t like to type! A short domain name is easier to type, read, and remember.

Meaningful – A short domain is nothing without meaning, 34i4nh.com is not easy to enter or to remember. Select a domain that relates to your site in a way that people will understand.

Clear – Clarity is important when selecting a domain name. Avoid a name that is difficult to spell or pronounce.

Exposure – Names that are short and easy to remember are an asset. In addition to visitors, also consider search engines. Search engines index your site and rank it for relevance against terms people search for. In order to maximize your sites exposure, consider including a relevant search term in your domain. Of course, only consider this if it still maintains a short, clear and meaningful domain name.
Sub Domains

Most people are unaware that they use sub domains daily. The famous “www” of the World Wide Web is an example of a sub domain. Sub domains can be created on a DNS server, and they don’t need to be registered with a domain name registrar, of course, the original domain name needs to be registered before a sub domain could be created.

Examples of sub domains used on the internet are http://store.apple.com and http://support.microsoft.com.

Sub domains can be requested from your web hosting provider.
False Domain Names – Directory Listings

Some providers will offer you a name under their own name, like: www.theircompany.com/yourcompany/

This is not a real domain name, it is a directory – and you should try to avoid it.

Directory domains are not desirable, especially for companies.

Typically, directory domains are used for personal web sites and free web sites provided by an ISP, you may have seen www.theircompany.com/~username as an address.


Expired Domains

Another source for domain registrations is expired domains.

When you register a domain, think of it as a rental, assuming there are no legal or trademark issues with the domain name, you are free to use it as long as you continue to pay the yearly fee (you can now register in advance as many as 10 years). Some people register domains as speculators, hoping that they can later sell them, while others may have planned to use a domain and never had the time. The result is that domains that were previously registered, become available again.


Use Your Domain Name

After you have chosen and registered your own domain name, make sure you use it on all your web pages, and on all your correspondence, like e-mail and traditional mail.

It is important to let other people be aware of your domain name, and to inform your partners and customers about your web site.


MyNaijaHost is a fast growing hosting firm in Nigeria with servers in Canada and USA. We register and host domain names for very cheap prices.

Go to www.mynaijahost.com or call 07030595653
WebmastersRe: . by WebsiteGuy: 2:14pm On Jun 19, 2013
We can help you. Let us try the possible ways we know with our expertise to help you recover your domain. Just call 07030595653. You should consider transferring the domain to us and hosting it with us.

Our servers are based in Canada and USA.

We are Mynaijahost.com

www.mynaijahost.com
Thanks.
WebmastersRe: I Need A Website Asap. Contact Me by WebsiteGuy: 9:18pm On Jun 14, 2013
Call me on 07030575653, visit my website www.nihtem.com
WebmastersRe: Get Your Domain Name Registration, Web Hosting Account Set Up, For Just 3K by WebsiteGuy: 8:40pm On Jun 14, 2013
You may want to check www.mynaijahost.com for your hosting and domain needs. Cheap and reliable.

1 2 3 (of 3 pages)