www.webdeveloper.com

Search:

Type: Posts; User: saud

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,150

    Forgot to add the code.

    Forgot to add the code.



    <?php
    session_start();

    $IPaddress = $_SERVER["REMOTE_ADDR"];
    $mainpage = "main.php";
  2. Replies
    1
    Views
    1,150

    Show captcha after 3 login attempts

    I wrote a small PHP with SQLite script which stores the IP with counter, it works fine with one problem, If I enter the correct password 4th time the counter becomes 4 and I get the error to enter my...
  3. Replies
    0
    Views
    1,269

    Encryption with AES

    I got this code from php.net http://php.net/manual/fr/book.mcrypt.php


    <?php
    function encrypt($decrypted, $password, $salt='!kQm*fF3pXe1Kbm%9') {
    // Build a 256-bit $key which is a SHA256...
  4. Replies
    2
    Views
    635

    Yes, like 18 to 25

    Yes, like 18 to 25
  5. Replies
    2
    Views
    635

    Convert age to date problem

    Is there any PHP function to convert current age to date in YYYY-MM-DD format.
    I stored the DOB in YYYY-MM-DD format and I want to run the SQLite query
    SELECT FirstName FROM mytable WHERE DOB >=...
  6. Replies
    4
    Views
    1,148

    If the query cannot find the IP it does not...

    If the query cannot find the IP it does not display FALSE cuz its not a failure, just no result.
  7. Replies
    4
    Views
    1,148

    Boolean value of a select query

    I m trying to find out if the query is successful or not.



    <?php
    $IPaddress = $_SERVER["REMOTE_ADDR"];
    //open the database
    $db = new PDO('sqlite:Users.db');
    $result = $db->query("SELECT IP...
  8. Replies
    1
    Views
    1,057

    Working with one row in a database

    I m trying to print a row from a sqlite3 database but I m getting the error
    Catchable fatal error: Object of class PDOStatement could not be converted to string in /home/ /public_html/test/index.php...
  9. Replies
    2
    Views
    1,728

    Godaddy DNS with different Nameservers

    I want to use Godaddy DNS so that I can get more options like Cname etc which is not possible with a regular Cpanel from hosting companies. I want to know that how can I use the nameservers in...
  10. Replies
    0
    Views
    899

    .Net Framework Background Process

    Does installing newest or any .NET framework (4) runs any background process on a computer? I use XP and I dont want to slow down my computer.
  11. Replies
    3
    Views
    1,171

    Display PHP inside Echo

    I want to display a little php code inside Echo<<< function but I get an error,
    this code is just an example. inserting {} is not working.



    echo <<<EOD
    <html>

    <body>
  12. Replies
    8
    Views
    1,299

    Here is the main script $server =...

    Here is the main script


    $server = 'localhost'; // MySQL hostname
    $username = 'country'; // MySQL username
    $password = 'password'; // MySQL password
    $dbname = 'country'; // MySQL db name...
  13. Replies
    8
    Views
    1,299

    If I run this querry in phpMyAdmin I cannot get...

    If I run this querry in phpMyAdmin I cannot get anything



    SELECT two_char_code FROM iptocountry WHERE lower_bound <= 3705898526 AND upper_bound >= 3705898526 LIMIT 1


    It should show IN as...
  14. Replies
    8
    Views
    1,299

    Thanks for the info, I think the calculation...

    Thanks for the info, I think the calculation system of this script is wrong, it cannot find certain IPs even they are there in the database.
  15. Replies
    8
    Views
    1,299

    Is there any array function that can detect empty...

    Is there any array function that can detect empty result, my function is not working



    if ($result = mysql_query($sql))
    {
    $row = mysql_result($result, 0);
    echo $row;
    }
    else
  16. Replies
    8
    Views
    1,299

    I get this error Warning: mysql_result()...

    I get this error
    Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 3 in /countrytest.php on line 21
  17. Replies
    8
    Views
    1,299

    Original article is here...

    Original article is here
    http://v3.thewatchmakerproject.com/journal/469/how-to-make-an-ip-to-country-tool-with-php-and-mysql
  18. Replies
    8
    Views
    1,299

    SQL Country Problem

    I m getting error while running this querry on this line
    $row = mysql_result($result, 0);




    <?php

    $ip = $_SERVER['REMOTE_ADDR'];
  19. Replies
    2
    Views
    1,265

    Thanks it worked.

    Thanks it worked.
  20. Replies
    2
    Views
    1,265

    Doctype problem with table layout

    I m having a little problem that i cannot figure out, if i remove the doctype tag, the table looks fine and with the doctype the table looks ugly, i want xhtml1-strict to match my whole site, is...
  21. Replies
    2
    Views
    611

    Your script is adding lot of blank lines and it...

    Your script is adding lot of blank lines and it is more than 100 lines.
  22. Replies
    2
    Views
    611

    deleting lines from a text file

    I have a php script to write the error log for a page



    <?php

    $ip = $_SERVER['REMOTE_ADDR'];
    $httpref = $_SERVER['HTTP_REFERER'];
    $httpagent = $_SERVER['HTTP_USER_AGENT'];
    $newline =...
  23. Thread: Dedicated IP

    by saud
    Replies
    2
    Views
    2,240

    Dedicated IP

    I m not sure where to post this.

    My question is that what is the actual price of a Dedicated IP address, many webhosting companies charges different prices for D.IP like $2-$5 every month. Please...
  24. Replies
    4
    Views
    960

    The thing is that IP is correctly mentioned in...

    The thing is that IP is correctly mentioned in the database, just the PHP script is not reading the database correctly, while the CGI script is doing it correctly. DO a test yourself by downloading...
  25. Replies
    4
    Views
    960

    Is there anyone who can find out the problem ?

    Is there anyone who can find out the problem ?
Results 1 to 25 of 69
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles