Html
-
Posts
640 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Html
-
-
Everything I did a few months ago when I began this was from a video. So I don't know, I just typed out what the narrator in the clip was saying and tried it, and obviously it didn't work, since I turned up here and got the advice you have given and corrections to the file.
-
The ip address is added in the actual file. The folder is root, I believe so.
As for the Not selected, I don't know about all of this.
-
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.
-
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 -
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
-
Right okay that brings up what I viewed before, error logs are on. What am I going to find to get some information on what is going on?
-
Where would I find that? I don't think the free host gives that access, a free host may restrict php edits, may be its for forum use only as there is a phpbb forum available to use therefore the mysql access.
-
I tried that, the free host I am using has Php 7, dates back to May.
And this is load configuration /etc/php70/php.ini
I did watch a clip on youtube about this file, I was puzzled.
-
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.
-
There is no Php.ini file, where would be if not in the file manager?
Nothing occurs. Blank screen once I tested the email form. The code doesn't go back to the form page, I removed that, but the Mysql db should contain the record, but nothing.
- 1
-
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(""); ?>
-
Ah okay, I see. I did change that.
It doesn't redirect back to the login page, as well, there is no record in the mysql database.
-
-
I wasn't able to solve this, what could be the problem with this?
-
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.
-
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");
?> -
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");
?>QuoteSo the php file, and the web page above.
Here is screen of the phpmyadmin.
Thank you.
-
Hi,
I don't know if there are some veterans of website design going back. I'm certainly neither one myself.
But how has the website design business changed now as to twenty years ago?
-
-
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?
-
On the video site youtube there is a tutorial on how to create a clone space invaders, so I suppose that would be a start. A rocket ship which would also be a shooter.
-
Hi,
Does anyone here know how to create basic shooter games using Javascript? Like 2D stuff, I believe that is only possible. Anything 3D would be python, an actual computer language.
-
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.
-
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.
How do I create a database in phpmyadmin + Php form problem
in PHP
Posted
From what I can remember that was what the vid narrator displayed, so as for trying an API, an error which doesn't require any actual code or mysql, that doesn't work either.
I actually did mentioned it on your profile, so profile doesn't accept messages. Something about stack over flow.