Sayhi2ay's Posts
Nairaland Forum › Sayhi2ay's Profile › Sayhi2ay's Posts
1 2 3 4 5 6 7 8 9 10 (of 12 pages)
school |
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 |
ah! thanks much denzel2009 , where do i download stuff for practice? |
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? |
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 |
syntax seem right, it is generating an error ? |
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" ; |
so, whats your question ? |
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 |
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 |
You'd have to pay to yahoo for a pop account. |
@ 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" ; function logged_in(){ return isset($_SESSION['id']); } function confirm_logged_in(){ if (!logged_in()){ redirect_to("index.php" ; 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. |
<?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" ;//header ("Location: studentinfopage.php" ;//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" ; // i.e. php >= v4.3.0if($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}" ;exit; }} |
register at lynda dot com , they have lots of great videos that can help you learn |
which plugin de arrange that effizy ? |
cj1080: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 |
Dual Core:Take it easy on the guy o abeg |
You can network 3 systems without using a dial up. Do you mean you want access the internet on all 3 systems ? |
rojad:lol, the variable in your lecture is "$name" not "yourname" |
what does it do exactly ? |
yup! the site wont load ![]() |
sagby: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). |
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 |
Review what about it ? Isn't this an electric grime template? nothing to be said |
guydudu:Does it matter what semester you are admitted ? |
nice ![]() You can move "Hello Guest Login | Signup" to the right end of the nav box |
afam4eva:Dont get confused with the 2 protocols. IMAP allows emails to be accessed remotely, while SMTP does the relay |
[quote author=yawa-ti-de link=topic=369140.msg5165901#msg5165901 date=1261496697]I believe you can do pretty much the same with DW, homesite and the like. so, whenever you are on windows, try those out [/quote]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? |
;

