Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,915 members, 7,814,085 topics. Date: Wednesday, 01 May 2024 at 06:18 AM

Sayhi2ay's Posts

Nairaland Forum / Sayhi2ay's Profile / Sayhi2ay's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 12 pages)

Programming / Re: Help Needed On Php Mailer by sayhi2ay(m): 5:15pm On Mar 31, 2010
Programming / Re: Which Is The Best Place To Learn Programing by sayhi2ay(m): 8:47pm On Mar 30, 2010
school
Career / Re: About Sap? by sayhi2ay(m): 7:14pm On Mar 30, 2010
of course, i'd love to take my time, i have read till page 8 or so , most info might have been outdated since the topic started in 2008, rather than take in uninformative stuff, just wondering if someone could just post a link where i could download
Career / Re: About Sap? by sayhi2ay(m): 6:02pm On Mar 30, 2010
ah! thanks much denzel2009 , where do i download stuff for practice?
Career / Re: About Sap? by sayhi2ay(m): 5:32pm On Mar 30, 2010
great work/posts guys,

i visited the SAP website, didnt see anything like BASIS, all the terms you all are using are a bit confusing. and with the different modules or levels, more confusing.

which do i really go for as an IT guy who doesn't want to veer the IT path? and where do i download stuff exactly?
Programming / Re: More Problems Im My Mail Script by sayhi2ay(m): 4:53pm On Mar 30, 2010
the from field will assign the sender's name in the code i gave,

if its going to spam, include the sender's address in your contacts' list
Programming / Re: More Problems Im My Mail Script by sayhi2ay(m): 3:15pm On Mar 30, 2010
syntax seem right, it is generating an error ?
Programming / Re: More Problems Im My Mail Script by sayhi2ay(m): 8:24pm On Mar 29, 2010
except you are doing some kind of OOP, just using mail() function would send out emails, no need to assign values to your port and what not / configure your php.ini

mail('email', $subject, $body,
"To: Contact Name <email>\n" .
"From: Sender Name<email>\n" .
"cc: Extra Contact Name <email>\n" .
"X-Mailer: PHP 4.x"wink;
Programming / Re: I Have A Few Questions For C Progamming by sayhi2ay(m): 3:57pm On Mar 29, 2010
so, whats your question ?
Programming / Re: How Do I Code And Configure Smtp To Send Mail In My Script by sayhi2ay(m): 4:55pm On Mar 24, 2010
with that snippet, you dont need to configure anything in your php.ini

usually, the mail functions would have been turned on.

again, if you had used the code , you'd see it works,


you can always use
<?php
phpinfo();
?>

to see all your server configurations
Webmasters / Re: Made In Naija - Our Own Rss News Aggregator by sayhi2ay(m): 7:22pm On Mar 23, 2010
good job!
-can you get feeds from other sites too ?
-include number of comments on the actual post in the byline
- take out the +0000 in the byline, and don't display 'Author' if the string is empty
-can you retain the state of the menu on the sidebar?
-something is wrong with your character settings maybe?
-remove email address from author's field, or have a separate field for that

-* am not sure if i want each link opening in a new tab,  (personal opinion)

except you are getting feeds from different news site, i could just as well go to that particular site, see whats up in their "latest news" titles, and be on my merry way when am done - without having to waste my time coming to your site first and then re directing me.



- dont ask people to sort, show 10 post titles on your right sidebar either by title, latest post or recent articles (and then have maybe 10 more recent articles underneath) - there are many news site out there than waste my time on one having to sort for news or something like that
Webmasters / Re: Pls Help On Connecting Outlook Exp To Yahoo Mail by sayhi2ay(m): 7:06pm On Feb 22, 2010
You'd have to pay to yahoo for a pop account.
Webmasters / Re: Log In Code by sayhi2ay(m): 3:21pm On Jan 27, 2010
@ pc guru: thanks so much, you are right on, couldnt have explained it better.

as Dual Core posted, we forgive those who ask that we document.


noticed i didnt initiate the session :

<?php session_start();

require_once("your_function_folder/functions.php"wink;

function logged_in(){
return isset($_SESSION['id']);

}

function confirm_logged_in(){

if (!logged_in()){

redirect_to("index.php"wink; or redirect to logout.php
}

}


// include session.php on all your files, it probably should be the first thing you call since you are starting a session (if you dont have buffering turned on) or use obstart(); - so you dont get header already sent error.
// call the confirme_logged_in function to check if a user is logged in.
Webmasters / Re: Log In Code by sayhi2ay(m): 3:14pm On Jan 26, 2010
<?php


//remember to check if a session id exists


if (isset($_POST['submit'])) {//form has been submitted
$errors = array();

//perform validations on the form data

$required_fields = array('matric_number', 'password');



foreach($required_fields as $fieldname) {
if (!isset($_POST[$fieldname]) || empty($_POST[$fieldname])){
$errors[] = $fieldname;
}
}





$matric_number = trim(mysql_prep($_POST['matric_number']));
$password= trim(mysql_prep($_POST['password']));
//$hashed_password = sha1($password);



if(empty($errors)) {

//check database to see if matric_number and the hashed password exist there.

$query = "select matric_number, name  ";
$query .= "from table_name_in_your_database ";
$query .= "where matric_number = '{$matric_number}' ";
//$query .= "AND hashed_password = '{$hashed_password}' ";
$query .= "AND password = '{$password}' ";

//$query .= "limit 1';

$result_set = mysql_query($query);
confirm_query($result_set);
if (mysql_num_rows($result_set) == 1) {
//matric_number /password authenticated
//and only 1 match
$found_student = mysql_fetch_array($result_set);



//$_COOKIE['id'] = $found_student['matric_number'];
$_SESSION['id'] = $found_student['matric_number'];
$_SESSION['name'] = $found_student['name'];


redirect_to("studentinfopage.php"wink;
//header ("Location: studentinfopage.php"wink;
//print_r($found_student);
}else{
//matric_number/password combo was not found in the database
echo  "matric_number/Password combination incorrect.";
?> <br/> <?php
echo  "Please make sure your caps lock key is off and try again.";

}


}

else {

if(count($errors) == 1) {

$message = "There was 1 error in the form.";
}else {
$message = "There were " . count($errors) . " errors in the form.";
}
}

}else { //form has not been submitted

if (isset($_GET['logout']) && $_GET['logout'] == 1){

$message = "You are now logged out";
}
$matric_number = "";
$password = "";
}

?>


//my functions:

function mysql_prep($value){
$magic_quotes_active = get_magic_quotes_gpc();
$new_enough_php = function_exists("mysql_real_escape_string"wink; // i.e. php >= v4.3.0
if($new_enough_php) { // php v4.3.0 or higher
//undo any magic quote effects so mysql_real_escape_string can do the work
if($magic_quotes_active) { $value = stripslashes($value); }
$value = mysql_real_escape_string($value);
} else { //before php v4.3.0
// if magic quotes aren't already onb then add slashes manually
if (!$magic_quotes_active) { $value = addslashes($value);}
//if magic quotes are active, then the slashes already exist
}
return $value;
}



function confirm_query($result_set){

if (!$result_set) {
die("Database query failed: " . mysql_error());
}
}


function redirect_to($location = NULL){
if ($location != NULL) {
header ("Location: {$location}"wink;
exit;
}}
Webmasters / Re: I Need Advance Training On Web Development by sayhi2ay(m): 3:41pm On Jan 25, 2010
register at lynda dot com , they have lots of great videos that can help you learn
Webmasters / Re: Vanguard Newspaper "effizy" by sayhi2ay(m): 5:30pm On Jan 15, 2010
which plugin de arrange that effizy ?
Webmasters / Re: Hand Coding And Dreamweaving. by sayhi2ay(m): 8:41pm On Jan 13, 2010
cj1080:

What u don't write your functions on your own, see me being busy killing myself trying to do that. How do u write them and with wat.enlighten a brother my brother.

And jscript,ain't that the same as javascript but with a shortened j or an i missing something.
Where and how can i lay me hands on an indepth study to understand of that. Do point(oh not polite),do show de way pls.

There are some functions out there that'd do what you have in mind, and there are some you'd have to code. just like classes.

check lynda for videos
Webmasters / Re: Web Site For N1,000(php,html) by sayhi2ay(m): 9:08pm On Jan 11, 2010
Dual Core:

Yes! its on your site, it may look new or strange to you  but its on your site, dreamweaver generated that while you clicked your way through it.

Take it easy on the guy o abeg
Computers / Re: How To Networked 3 Stystem Using Dialup Connection by sayhi2ay(m): 8:34pm On Jan 11, 2010
You can network 3 systems without using a dial up. Do you mean you want access the internet on all 3 systems ?
Webmasters / Re: Web Site For N1,000(php,html) by sayhi2ay(m): 8:26pm On Jan 11, 2010
rojad:

<?php
$name="your name"; //holds the variable called yourname as string
?>

lol, the variable in your lecture is "$name" not "yourname"
Computers / Re: Windows 7 - Godmode by sayhi2ay(m): 9:23pm On Jan 07, 2010
what does it do exactly ?
Webmasters / Re: Review by sayhi2ay(m): 4:57pm On Jan 06, 2010
yup! the site wont load lipsrsealed cry sad
Travel / Re: General U.S.A (student) Visa Enquiries by sayhi2ay(m): 8:48pm On Dec 30, 2009
sagby:

i salute ooooooo. i wanna knw hw the POE wil look like, my skool resume on 6th n i intend leavin 9ja on 1st so that i can see my cousin in Chicago maybe 4 2days b4 goin to skool in Virginia but if they won't allow me see her i better go straight to skool.

my friends got back from naija yesterday, they said security and questioning at the POE was crazy n hell. "Nigerians queued on different line for extra frisking" dont raise any suspicion, go straight to your school and you can visit your cousin during your vacation (at a later date).
Webmasters / Re: Nff Has New Website. Your Thoughts? by sayhi2ay(m): 8:36pm On Dec 30, 2009
you guys expect too much from a website. I dont find it dull. Just lacks more content and information.

-no profile on our national teams,
- pictures of people are not only what make up nff, no pictures of our stadiums and the likes. are they too ashamed to put in on the site?
- what about our local clubs, are they not under nff?

blah blah blah
Webmasters / Re: Pls Webmaster Review My Joomla Website by sayhi2ay(m): 8:28pm On Dec 28, 2009
Review what about it ? Isn't this an electric grime template? nothing to be said
Travel / Re: General U.S.A (student) Visa Enquiries by sayhi2ay(m): 5:46pm On Dec 28, 2009
guydudu:

do we have any body going for summer(may-june,2010) admission in the house?you guys talks about FALL and SPRING,but notting on the SUMMER admission.Please help out oooo.

Does it matter what semester you are admitted ?
Webmasters / Re: Website Review by sayhi2ay(m): 4:05pm On Dec 28, 2009
nice grin


You can move "Hello Guest Login | Signup" to the right end of the nav box
Webmasters / Re: Creating Email System For Your Website by sayhi2ay(m): 4:24pm On Dec 24, 2009
afam4eva:

Which is better, IMAP or SMTP

Dont get confused with the 2 protocols.
IMAP allows emails to be accessed remotely, while SMTP does the relay
Webmasters / Re: How Do I Host My Website After Designing It From My Computer? by sayhi2ay(m): 4:52pm On Dec 22, 2009
yawa-ti-de:

I believe you can do pretty much the same with DW, homesite and the like. so, whenever you are on windows, try those out wink

Not a DW fan, used homesite for ColdFusion before I started with MAC and switched to PHP. moreso, development has been discontinued sometime around 2nd quarter of this year if i remember correctly.
wouldnt you need a license for DW?

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