Jump to content

Html

Members
  • Posts

    640
  • Joined

  • Last visited

Posts posted by Html

  1. According to the free web host, there are no restrictions on the php7. I have also tried getting a Php Twitter API to work, but I get the error of an uncaught error, stack flow. Of course, there is no db or anything, so it should work, the index page is the only edited file, add connections to a consumer key and token key, and all that.

    I don't know what is happening here. I may have to try another free web host that offers php/mysql.

  2. This is what loads after I turned on a setting in php config in the cpanel.

    Warning: mysqli_connect(): (HY000/2002): Connection timed out in post.php on line 3
    Not connected To Server
    Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in post.php on line 11
    Database Not selected
    Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in post.php on line 20

  3. Hmm, I may be of been correct, you may be onto a fact, that there could be limitations for use with the free web host, perhaps full use of the php/mysql is for paid only.

    I read about a htaccess file, It can be created as you stated,

    AuthName "Member's Area Name"
    AuthUserFile /path/to/password/file/.htpasswd
    AuthType Basic
    require valid-user
    ErrorDocument 401 /error_pages/401.html
    AddHandler server-parsed .html 

     

  4. Quote

    Not connected To ServerDatabase Not selected

    This is now what I get from having typed in some values into the form, I did correct the php file. As I had stated, I had watched a tutorial clip on youtube a few months back now, that would be, and it showed not using brackets or the fact that there was a space between php and the question mark.

  5. Hmm, well the example I got of this was from a tutorial on a video site. So I'm not knowledgeable in MySql, or php. I'm also not a computer programmer, so I'm not versed in the subject of web languages. I only ever got as far as html 4.01, that was ten years back. So therefore I returned here to get some answers for my problem. The clips jump from here to there, and so on. Its great, but it is all bit messy.

    Okay, now I get a post.php, but no values in the database. So from what you have stated, about !$con is a problem. I doubt I'd have to be concerned about any scramble mysql code or so. I'm not going very far with this yet. Some sort of login page/comment form.

    Thank you.

    <? php
    
    $con= mysqli_connect('mysql service db ip'.'root','');
    
    if (!$con)
    
    {
    echo 'Not connected To Server';
    }
    
    if(!mysqli_select_db($con, 'page'))
    {
    echo 'Database Not selected';
    }
    $Email = $_POST('email'};
    $Password = $_POST('Password'};
    
    $sql = "INSERT INTO Person(Email, password) ValueS ('$Email', '$password')";
    
    if(!mysqli_query(!$con,sql))
    {
    echo '';
    }
    else
    {
    echo '';
    }
    header("");
    ?>

     

     

  6. I do remember the one from ten years back, when I was more of a browser of this site. I did like the older one.

    At the end of the day I've only returned recently, and the longest since that time.

  7. Hello,

    Thank you for the responses, tried the following edits. And the files are located in htdocs folder in the online file manager?

    And no, form.php just goes to a 404.

    Quote

    <body>
     <form action="post.php" method="post">
       Email:<br>
      <input type="text" value="Email"><br>
      Password:<br>
      <input type="text" name="Password" value="password"><br><br>
      <input type="submit" value="Submit">
    </form>
    </body>

     

    Quote

    <? php

    $con= mysqli_connect('service ip'.'root','');

    if (!$con)

    {
    echo 'Not connected To Server';
    }

    if(!mysqli_select_db($con, 'page'))
    {
    echo 'Database Not selected';
    }
    $Email = $POST('email'};
    $Password = $POST('Password'};

    $sql = "INSERT INTO Person(Email, password) ValueS ('$Email', '$password')";

    if(!mysqli_query(!$con,sql))
    {
    echo 'Not inserted';
    }
    else
    {
    echo 'Not inserted';
    }
    header("refresh:1; url=formhtml.html");
    ?>

     

  8. Hello,

    I have this code here, I watched a video on how to create a form for php posting. In phpmyadin, the database is called 'page', so, what happens after I post an email and password on my page, it goes to a 404 on the web host I'm using.

    Quote

    <? php

    $con= mysqli_connect('IP for database'.'root','');

    if (!$con)

    {
    echo 'Not connected To Server';
    }

    if(!mysqli_select_db($con, 'page'))
    {
    echo 'Database Not selected';
    }
    $Email = $Post('email'};
    $Password = $Post('Password'};

    $sql = "INSERT INTO Person(Email, password) ValueS ('$Email', '$password')";

    if(!mysqli_query(!$con,sql))
    {
    echo 'Not inserted';
    }
    else
    {
    echo 'Not inserted';
    }
    header("refresh:1; url=formhtml.html");
    ?>

    Quote
    
    <body>
     <form action="/post.php" method="post">
       name:<br>
      <input type="text" value="username"><br>
      Password:<br>
      <input type="text" name="lastname" value="password"><br><br>
      <input type="submit" value="Submit">
    </form> 
    </body>

     

    So the php file, and the web page above.

    Here is screen of the phpmyadmin.

    Thank you.

     

     

     

     

     

    pagedb.jpg

  9. HAHA are you sure? because I don,t want to go to jail and pay 200K $

    Very unlikely that would happen, the worst would be a web page being taken down. May be repeated offenses could lead to a serious penalty fine.

  10. Hi,

     

    I'm on an old system 32 bit XP, running Firefox. I have had this dialog box load up when ever using Yahoo mail. Obviously a javascript ad problem.

     

    Why does that tend to happen? The browser uses plenty of memory and processing power. Some sort of clash where the ad can't function or the code won't go through the usual process due to memory scarcity?

    post-775-0-46844600-1468595830_thumb.jpg

  11. Thanks for the response, I just recognised one online user from when I was briefly here about ten years ago.

     

    You joined as I more or less stopped posting on this forum.

     

    That new markup sounds much better than the older code tags.

  12. Hi,

     

    I haven't touched on a the Hyper mark up langauge in almost ten years.

     

    I had created this account when I was a college student, I had hoped to possibly be employed in the website design industry. But that didn't happen.

     

    'html' is a dated as an acroym. I might request a name change to something more relevant. Today as a computer user not finanicial related, I'm runnng a 32bit XP system, so I'm more towards Blender 3D and may be a little of Python Programming, I hope to try and give ago at.

     

    So what did this 5 bring in compared to 4.01? as I had first learnt back in 2004.

     

    I only just noticed the change in the firefox browser from source code to inspect element.

     

    Any temporary basic web page needs, I have just used Publisher in Microsoft office 2007.

     

    Thanks.

×
×
  • Create New...