Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,833 members, 7,810,203 topics. Date: Friday, 26 April 2024 at 11:34 PM

Dawgzfada's Posts

Nairaland Forum / Dawgzfada's Profile / Dawgzfada's Posts

(1) (2) (of 2 pages)

Celebrities / Karrueche Tran Denies Getting Back With Chris Brown by Dawgzfada(m): 3:24pm On Dec 16, 2014
[img]http://4.bp..com/-XeK5bQxzrL0/VJAuQrPM_1I/AAAAAAAEG88/xGBguxPHz4M/s1600/chris-brown-karreuche-tran.png[/img]


There were reports some days ago that Chris Brown and his long suffering on/off-again girlfriend Karrueche Tran were back together after they were spotted in the same place at the same time on at least two occasions over the weekend. When a fan asked Karruehce if she was back with Chris, she set the record straight. See that after the cut...


[img]http://3.bp..com/-fx6EsL7bJFM/VJAuQ9_w0SI/AAAAAAAEG84/WESRlAeONgg/s1600/photo-197.PNG[/img]
Romance / Re: Miss Nairaland - Grand Finale!!! ENDED!!! by Dawgzfada(m): 5:44pm On Dec 07, 2012
Webmasters / Re: Please Help Php/mysql by Dawgzfada(m): 7:16am On Jul 02, 2011
Thanks for all the efforts. Solved already.
Webmasters / Re: Please Help Php/mysql by Dawgzfada(m): 4:42pm On Jul 01, 2011
Thank you. .

Lemme simplify the problem now, the main problem is in this line, around that decode line.

$result=executeQuery("select testcode from test where testcode=DECODE('" . htmlspecialchars($_REQUEST['testcode'], ENT_QUOTES) . "';"wink;


I want it to encode the user's input. .and check against what i have in my db.
Webmasters / Please Help Php/mysql by Dawgzfada(m): 3:23pm On Jul 01, 2011
Am working on the registration page of a webapp and i need the query statement i'll be using for the "testcode" parameter i.e. if the code exists in the database, then it should register, else fail.

The way it was inserted is

$query = "update test set testname='" . htmlspecialchars($_REQUEST['testname'], ENT_QUOTES) . "',testdesc='" . htmlspecialchars($_REQUEST['testdesc'], ENT_QUOTES) . "',subid=" . htmlspecialchars($_REQUEST['subject'], ENT_QUOTES) . ",testfrom='" . $fromtime . "',testto='" . $totime . "',duration=" . htmlspecialchars($_REQUEST['duration'], ENT_QUOTES) . ",totalquestions=" . htmlspecialchars($_REQUEST['totalqn'], ENT_QUOTES) . ",testcode=ENCODE('" . htmlspecialchars($_REQUEST['testcode'], ENT_QUOTES) . "','oespass') where testid=" . $_REQUEST['testid'] . ";";

I tried


$result=executeQuery("select testcode from test where testcode=DECODE('" . htmlspecialchars($_REQUEST['testcode'], ENT_QUOTES) . "';"wink;
if(mysql_num_rows($result1) != 0)
    {
        $_GLOBALS['message']="Sorry the Testcode doesn't exist.";
    }
else
{
//Register
}


but it didn't work.

Someone should please help. Thanks
Webmasters / Re: Php Error. .Pls Help! by Dawgzfada(m): 3:09pm On Jun 16, 2011
Time to learn: What does the .htaccess hack PHP_FLAG output_buffering on do?
Webmasters / Re: Php Error. .Pls Help! by Dawgzfada(m): 3:08pm On Jun 16, 2011
Thanks so much bro. It worked like a charm. Thanks bruv. I rily appreciate.



Webmasters / Re: Php Error. .Pls Help! by Dawgzfada(m): 9:35am On Jun 16, 2011
bakenda:

Do you have an htacces file in your script folder
that handles redirection?

Just let me know if you have an htaccess file, and if yes
paste the content here.

Cheers, help is on the way. smiley smiley smiley

No. sad

Thanks for the inspiration.
Webmasters / Re: Php Error. .Pls Help! by Dawgzfada(m): 9:16am On Jun 16, 2011
bakenda:

Did you md5 hash the admin password before saving it to database?

Comment out the
 error_reporting(0);
line and

let's see if any error message comes up.

Yes. I md5 hash the admin password.

I just commented out
error_reporting(0);
but no difference still.

What i noticed is once i try logging in with an invalid admin name/pwd, the error msg comes up but once i enter the right usrname/pwd, nothing happens. .but the session seems to have been set 'cos if i go to admwelcome.php manually, i'll be able to access it.

I've been on this for hours. .Any help pls?
Webmasters / Php Error. .Pls Help! by Dawgzfada(m): 7:07pm On Jun 15, 2011
<?php

      error_reporting(0);
      session_start();
      include_once ', /db.php';

      /***************************** Step 2 ****************************/
      if(isset($_REQUEST['admsubmit']))
      {
         
          $result=executeQuery("select * from adminlogin where admname='".htmlspecialchars($_REQUEST['name'],ENT_QUOTES)."' and admpassword='".md5(htmlspecialchars($_REQUEST['password'],ENT_QUOTES))."'"wink;
        if(mysql_num_rows($result)>0)
          {
             
              $r=mysql_fetch_array($result);
              if(strcmp($r['admpassword'],md5(htmlspecialchars($_REQUEST['password'],ENT_QUOTES)))==0)
              {
                  $_SESSION['admname']=htmlspecialchars_decode($r['admname'],ENT_QUOTES);
                  unset($_GLOBALS['message']);
                  header('Location: admwelcome.php');
              }else
          {
             $_GLOBALS['message']="Check Your user name and Password.";
                 
          }

          }
          else
          {
              $_GLOBALS['message']="Check Your user name and Password.";
             
          }
          closedb();
      }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>Administrator Login</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" type="text/css" href=", /oes.css"/>
  </head>
  <body>
<!--
*********************** Step 1 ****************************
-->
      <?php
     
        if(isset($_GLOBALS['message']))
        {
         echo "<div class=\"message\">".$_GLOBALS['message']."</div>";
        }
      ?>
      <div id="container">
                <div class="header">
               
            </div>
      <div class="menubar">
        &nbsp;
      </div>
      <div class="page">
              <form id="indexform" action="index.php" method="post">
              <table cellpadding="30" cellspacing="10">
              <tr>
                  <td>Admin Name</td>
                  <td><input type="text" name="name" value="" size="16" /></td>

              </tr>
              <tr>
                  <td> Password</td>
                  <td><input type="password" name="password" value="" size="16" /></td>
              </tr>

              <tr>
                  <td colspan="2">
                      <input type="submit" value="Log In" name="admsubmit" class="subbtn" />
                  </td><td></td>
              </tr>
            </table>

        </form>

      </div>

      </div>
  </body>
</html>


Ordinarily, if username and pwd is correct, i should be taken to admwelcome.php, but it doesn't work that way. I still remain on the same index.php. Please is there anything i'm doing wrong.

Thanks y'all.
Computers / Re: Post Your Computer (PC) Troubles Here. by Dawgzfada(m): 6:24pm On May 18, 2011
Pls help, i use a HP Dv6000. .twas working fine this afternoon and i was viewing a thread on Nairaland, and the next thing the laptop went off. Tried putting it on but it won't come on. The lights wont even blink at all. Also the only light that comes on is the blue light that indicates its charging (thru the charging hole). I removed the battery, plugged the laptop and tried putting it on but it still wont come on. I removed the Rams and resit them but it still won't come on.

Am at wits end here. .pls someone should help.
Webmasters / Re: Pls Help Me by Dawgzfada(m): 11:01pm On Apr 18, 2011
No i dnt think so. The problem was 'cos i used the 'addslashes' function twice. After including it in my config.php, i still went ahead to use it in my POST function. Thanks tho. wink
Software/Programmer Market / Re: Request Any Software Development For Free by Dawgzfada(m): 12:55am On Apr 16, 2011
Pls there is something i'll want you to help me with. I have over 1 million lines of texts like dis

183516_1233948983
183517_1236783483
183518_1239384893

Now i need to get everything before the underscore(_) erased so that the new text will look like

1233948983
1236783483
1239384893

Pls any help?

EDIT

I tried using excel but i keep getting 1.22398E+10 .

Any trick to make it display fully?

EDIT

PROBLEM SOLVED. grin
Webmasters / Re: Pls Help Me by Dawgzfada(m): 3:47pm On Apr 15, 2011
Solved.

Twas this line in my config.php dat was causing it

if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=addslashes(htmlspecialchars($value));}}
Webmasters / Pls Help Me by Dawgzfada(m): 2:51pm On Apr 15, 2011
There is a text form am working on. The problem is when i type and submit texts like "I'm going to church", it comes out as "I\\\'m going to church".

Any help?
Webmasters / Re: 500 internal server Error? by Dawgzfada(m): 7:13am On Jan 08, 2011
Ma_J_Blige:

dont u have google to find out?

Saying nothing is better than this, dnt you tnk?

@OP, Yawa already said all.
Technology Market / Re: Nokia C3 For Sale @ N18k by Dawgzfada(m): 10:19pm On Jan 07, 2011
1.) Can you up the picture?
2.) Can it go for 15k?
3.) Dyu stay in Lagos?
Technology Market / Used C3 Needed Urgently (Asaba) by Dawgzfada(m): 9:41pm On Jan 07, 2011
Please if you've got any Used Nokia c3 for sale, pls signify here wv pictures. . . Its quite urgent. . .Also pls state your price.
Technology Market / Re: Who Has Used Bold 1 For Sale? Price <= #30,000 (Asaba) by Dawgzfada(m): 9:05pm On Jan 07, 2011
Tnx y'all. . .I already bought one.
Technology Market / Who Has Used Bold 1 For Sale? Price <= #30,000 (Asaba) by Dawgzfada(m): 3:23pm On Jan 05, 2011
Who has Used Bold 1 for sale? Price <= #30,000 (Asaba)

Pls reply here ASAP wv pics and/or yo number. Payment immediately.
Politics / Re: Can Nigeria Be Better With The Youth Rather than D Experience Of Elders? by Dawgzfada(m): 4:00pm On Oct 30, 2010
^^ So does ths mean d saying 'Youths are the leaders of tomorrow' wrong?

Contributions needed ppl.
Politics / Re: Can Nigeria Be Better With The Youth Rather than D Experience Of Elders? by Dawgzfada(m): 7:52am On Oct 30, 2010
Contributions needed.
Politics / Can Nigeria Be Better With The Youth Rather than D Experience Of Elders? by Dawgzfada(m): 3:56pm On Oct 29, 2010
Thanks for taking your time to check in. There was a seminar i went for and this topic 'Can Nigeria be better with the Strength & Skills of the youth rather than the experience & wisdom of the elders' came up. Youths came up with their views also the Elders.

Pls iWant Nairalanders to air their views. What dyu think? Do we youths have the potential to rule this great Nation OR should we leave it for the Elders 'cos of their experience? Whats your say? Contributions needed. Tnx.
Romance / Re: Nigeria Guys Are Cheap, Hungry And Gold Diggers by Dawgzfada(m): 12:01pm On Oct 27, 2010
Kabukabu

[size=14pt]Is that your SugarGranny's handbag u holding there? (no offeince) grin grin[/size]


www.nairaland.com/attachments/340680_me_and_my_ferrari__dont_hate__jpg7b66b2c743d53c903db3c8159d301e8b
Romance / Re: Adding Ex-boyfriends On Facebook? by Dawgzfada(m): 4:28pm On Oct 26, 2010
^^^Baba no dey wink nau. That looks very gay. grin grin
Webmasters / Re: I Want To Learn Php(dual Core, Lojik, Donpuzo, Ogzille, Bug24, Dhtml And Others) by Dawgzfada(m): 3:16pm On Oct 11, 2010
Tnx Quadrillio. I rily appreciate.

@Donpuzo, tnx for the suggestions. I've gotten the 'I hate PHP' amidst other 87 Collections of Php ebooks.

I can happily logout from the Net Now.
Webmasters / Re: I Want To Learn Php(dual Core, Lojik, Donpuzo, Ogzille, Bug24, Dhtml And Others) by Dawgzfada(m): 11:32am On Oct 11, 2010
Tnx Donpuzo. I appreciate. I'll get the book ASAP.

Donpuzo:

@Poster, Thank God you made that text small grin grin grin, Guess the bills are too high? Wait till i am doing Bonanza. This year none. Next year maybe!

I'll probably be your a tutor this time next year.


Pls more suggestions from y'all. I need 'em books b4 i go offline as Internet itself is a distraction.
Webmasters / Re: I Want To Learn Php(dual Core, Lojik, Donpuzo, Ogzille, Bug24, Dhtml And Others) by Dawgzfada(m): 10:42am On Oct 11, 2010
^^^ No, I Want ebooks not a tutor. I Learnt other languages(python,Perl, ruby, Java) through the net wv the help of ebooks and oda well-meaning Programmers.

I just want someone to recommend books he/she prob. used while learning.

Still waiting pls.
Webmasters / I Want To Learn Php(dual Core, Lojik, Donpuzo, Ogzille, Bug24, Dhtml And Others) by Dawgzfada(m): 9:18am On Oct 11, 2010
Thanks for coming in. Pls i need php tutorials from y'all i mentioned/unmentioned preferably ebooks. I want something i can always lay my hands on OFFLINE(so w3schools is outta it).

Pls y'all shld help me/ provide me wv indepth ebooks. tNX. [size=2pt]and pls dnt mention Donpuzo's schl grin grin grin
[/size]

Regards,
Dawgzfada.

(1) (2) (of 2 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.