-
Replied To a Post in Problem with getting data fro mtable and echo data
Can you guide me more clear please? There is 4 fields in my Posts table: ID - Title - Author - Content How should i change my code and get … -
Replied To a Post in Problem with getting data fro mtable and echo data
Well, still can't find the right way to solve it. @mattster can you tell me why it doesn't work? <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword … -
Replied To a Post in Problem with getting data fro mtable and echo data
Hello again, couldn't check here for almost 3 weeks but now i'm here again to continue. Stil need help to solve the user-view-page.php problem, i can't get and echo data … -
Replied To a Post in Problem with getting data fro mtable and echo data
So i shoud chang it to this? `$sql = "SELECT * FROM Posts";` And haow should i echo? It this model correct?! foreach($result as $row) { echo result['Title']; echo "by: … -
Created Problem with getting data fro mtable and echo data
Hello again. I have insert title, author and content data into table with admin-are page and now want to create a user-view-page.php that everybody enter into that page and see … -
Began Watching Problem with getting data fro mtable and echo data
Hello again. I have insert title, author and content data into table with admin-are page and now want to create a user-view-page.php that everybody enter into that page and see … -
Replied To a Post in problem with creating a table, get error
Yes right, thank you. -
Marked Solved Status for problem with creating a table, get error
Well, me again! Have an other problem with creating an other table. I want to create a Posts table with this code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername … -
Replied To a Post in problem with creating a table, get error
OOPSS!! sorry i found the problem. The problem was here `Content CHAR(100),` there was no need for `,`. -
Created problem with creating a table, get error
Well, me again! Have an other problem with creating an other table. I want to create a Posts table with this code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername … -
Began Watching problem with creating a table, get error
Well, me again! Have an other problem with creating an other table. I want to create a Posts table with this code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername … -
Marked Solved Status for Problem with my login page, facing with a blank page
Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, … -
Revoked Solved Status for Problem with my login page, facing with a blank page
Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, … -
Marked Solved Status for Problem with my login page, facing with a blank page
Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, … -
Replied To a Post in Problem with my login page, facing with a blank page
Yessss!! It works:) Really thank you @lps for all explanation and answer. The last problem was because of this part: $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword … -
Replied To a Post in Problem with my login page, facing with a blank page
Oh no! I still face with a blank page! -
Replied To a Post in Problem with my login page, facing with a blank page
I understood, so the code must be like this: (But so why i still face with a blank page?) <?php if(isset($_POST['submit'])){ $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; … -
Replied To a Post in Problem with my login page, facing with a blank page
The User table has 3 columns, ID, Username and Password. Well i still need more explanation to understand it well. These two lines get the password of the $username and … -
Replied To a Post in Problem with my login page, facing with a blank page
Yes you are right, i just copied and pasted the code to see if it works well and the problem is solved, then focuse on the code to understand it … -
Replied To a Post in Problem with my login page, facing with a blank page
@lps, i copied your code and pasted it, but there is a problem. If i enter a wrong password, it login into admin-area.php! And if i enter a wrong username, … -
Marked Solved Status for problem with sending data to the table but auto-increment works well
Hello. Look at this file please: register.php <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); … -
Replied To a Post in Problem with my login page, facing with a blank page
Is this if part correct? if $password == $result { header("Location: admin-area.php"); } I want the scipt to check the hash string of the password that user enters with the … -
Created Problem with my login page, facing with a blank page
Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, … -
Began Watching Problem with my login page, facing with a blank page
Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, … -
Replied To a Post in problem with sending data to the table but auto-increment works well
Yesssss! It works :) Thank you @lps. -
Replied To a Post in problem with sending data to the table but auto-increment works well
I think the reason must be the `action=` wich is not in the <form> tag. The action sets the Destination where data should be sent to, correct? So here that … -
Created problem with sending data to the table but auto-increment works well
Hello. Look at this file please: register.php <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); … -
Began Watching problem with sending data to the table but auto-increment works well
Hello. Look at this file please: register.php <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); … -
Replied To a Post in need help with an error
Well it seems the tutorial videos i'm using are not good and have so many problems. It's better to recreate the CMS again from the first step, using an other … -
Replied To a Post in need help with an error
I deleted `echo "Login successful";` but stil get this `"Please check your login details!"` message above the login fields. And also there is no log_error. -
Replied To a Post in looking for a good CMS tutorial
Thank you @matrixdevuk. Thank you @mattster. -
Replied To a Post in need help with an error
What is session_start for? -
Replied To a Post in need help with an error
Look at this please: <?php session_start(); include('includes/functions.php'); if(isset($_POST['login'])) { if(isset($_POST['username'])) { if(isset($_POST['password'])) { $username = $_POST['username']; $query = mysql_query("SELECT * FROM users WHERE Username = '$username'") or die (mysql_error()); $user … -
Replied To a Post in need help with an error
I replaced the last one with this: <?php session_start(); include('includes/functions.php'); And for two other files, i moved the html part into after session_start(). But still i have problem, nothing changed. … -
Replied To a Post in need help with an error
Well, in 2 files, session_start() is not the first thing in the page, is like this: <html> <head> <title>page title</title> </head> <body> <?php session_start(); And in one other file is … -
Created need help with an error
Hello. I'm creating a CMS. I've got this log_error. Can you explain the problem for me if the error message is clear enough for you to understand it? I'm new … -
Began Watching need help with an error
Hello. I'm creating a CMS. I've got this log_error. Can you explain the problem for me if the error message is clear enough for you to understand it? I'm new … -
Replied To a Post in how to print every word starts with "A" in a urlpage
Thank you @snippsat. I have 2 questions: `print link['title']` what is title? The `alt` of the `<img>` tag? `except KeyError:` what does `keyError` mean here? What the keyword `keyError` is … -
Replied To a Post in how to print every word starts with "A" in a urlpage
I want the script to find all the names of singers that starts with the latter "A" in a url page. First i asked my script to check the content … -
Replied To a Post in how to print every word starts with "A" in a urlpage
I tried and it's type was `<type 'unicode'>`. -
Replied To a Post in looking for a good CMS tutorial
Thank you @fireburner29. I will check it. -
Replied To a Post in how to print every word starts with "A" in a urlpage
Well i changed it into this: for word in soup.text: if word.startswith('A'): print word But now the output is this: (many A letter) A A A A A . . -
Created how to print every word starts with "A" in a urlpage
Hello! How can ask my scipt to print **every word** in a url page that starts with the letter "A" in this case? This is my code: from bs4 import … -
Began Watching how to print every word starts with "A" in a urlpage
Hello! How can ask my scipt to print **every word** in a url page that starts with the letter "A" in this case? This is my code: from bs4 import … -
Replied To a Post in looking for a good CMS tutorial
Thank you @DaniUserJS, i will go to watch them right now :) and hope to learn it well. -
Replied To a Post in how to update this countdown program and it's labels every second
Well, i stil have problem with this program, what should i type in line 11, for the update function?! All my code that should be updated every seconds, are in … -
Replied To a Post in need help for database and PDO
That's ok @AleMonteiro. I didn't find the answer on those 3 links unfortunatelly. So i have to use a host instead of on my localhost. Thank you anyway. -
Replied To a Post in need help for finding special NAMES in a url page (homework)
@iJunkie22, can you explain your last post please? about `str.istitle()`, and would be good if give me a little example. -
Replied To a Post in How to print only the content of all <li> tags from a url page?
Well, it seems my question is basically wrong. Forget that question, sorry! -
Replied To a Post in How to print only the content of all <li> tags from a url page?
I wanted to post this question into a new Discussion but as it was related to this discussion so i will ask here. My code: from bs4 import BeautifulSoup import …
The End.