-
Replied To a Post in problem with putting variable sending with submit button into LIMIT part
Yes, please look at this, maybe this is my mistake somewhere: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", … -
Replied To a Post in problem with putting variable sending with submit button into LIMIT part
I tried them @cereal, but they didn't work. -
Edited problem with putting variable sending with submit button into LIMIT part
hello me again:) There is a page in my cms that users can see my posts there and i want to limit the number of posts that must be shown … -
Created problem with putting variable sending with submit button into LIMIT part
hello me again:) There is a page in my cms that users can see my posts there and i want to limit the number of posts that must be shown … -
Began Watching problem with putting variable sending with submit button into LIMIT part
hello me again:) There is a page in my cms that users can see my posts there and i want to limit the number of posts that must be shown … -
Edited security problem with login into admin page by typing the link in browser
Hello. i'm creating a simple CMS for myself. There is a register form, i can register as the admin of the cms and then with login form, i can enter … -
Created security problem with login into admin page by typing the link in browser
Hello. i'm creating a simple CMS for myself. There is a register form, i can register as the admin of the cms and then with login form, i can enter … -
Began Watching security problem with login into admin page by typing the link in browser
Hello. i'm creating a simple CMS for myself. There is a register form, i can register as the admin of the cms and then with login form, i can enter … -
Replied To a Post in Want to create delete action for CMS posts
Well i have added this part below, after line 24: if(isset($_POST['submit'])) { $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", … -
Replied To a Post in Want to create delete action for CMS posts
@lps would you please explain your code with comments? -
Replied To a Post in Want to create delete action for CMS posts
This is my code: <?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); $sql = "SELECT … -
Replied To a Post in how i can send post's id by clicking on its title's link into another page?
Yes it works :) Thank you @JorgeM. Thank you @lps. I tried `WHERE ID = '".$_GET['post']."'";` first but it didn't work but the second way worked. -
Marked Solved Status for How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Replied To a Post in How can i remove the error from the top of the page?
Yes it works well with no error now. > Sory for the errors in my posts. Speed does not always help. No need to be sorry, it's ok. Errors are … -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
> Niloofar: you should start by the links James provided you, since they are the official tutorials about how to use sockets, and the official tutorial on learning the language. … -
Replied To a Post in how i can send post's id by clicking on its title's link into another page?
@JorgeM, i edited all the title's links with this: `echo "<td><a href='single-post-page.php?post=" . $row['ID'] . "'>";` But what about `$_GET['post'];`? Where i should put it in the single-post-page.php script? How … -
Replied To a Post in how i can send post's id by clicking on its title's link into another page?
The complete code of the page with titles: <?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, … -
Created how i can send post's id by clicking on its title's link into another page?
Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter … -
Began Watching how i can send post's id by clicking on its title's link into another page?
Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter … -
Replied To a Post in How can i remove the error from the top of the page?
I understood. But there is one more problem. There are 3 fields in the form to be filled: title and author and content. If i leave all 3 fields empty, … -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
I checked the link many times but unfortunatelly i faced with a blank page, i don't know why! Is there any other good and clear tutorial? Or at least can … -
Replied To a Post in Want to create delete action for CMS posts
specially i didn't understand this part > find the parent of the link again using the same id attribute and remove the row. -
Replied To a Post in How can i remove the error from the top of the page?
This is that error: PHP Fatal error: Can't use function return value in write context in Line 8 And this is line 8: if(empty(trim($_POST["title"])) || empty(trim($_POST["author"])) || empty(trim($_POST["content"]))) { Thank … -
Replied To a Post in Want to create delete action for CMS posts
@lps, your explanation was good but would you please explain it one more time but a little more clear please?! Sorry i didn't understand what should i do exactly well … -
Replied To a Post in How can i remove the error from the top of the page?
THank you @broj1, it works. But i had to change this: if(empty(trim($_POST["title"])) || empty(trim($_POST["author"])) || empty(trim($_POST["content"]))) { to this: if(empty($_POST["title"]) || empty($_POST["author"]) || empty($_POST["content"])) { Because with using `trim()` i … -
Edited Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Edited Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Edited Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Edited Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Created Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Began Watching Want to create delete action for CMS posts
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post … -
Marked Solved Status for 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 getting data fro mtable and echo data
Thank you @diafol. -
Replied To a Post in How can i remove the error from the top of the page?
What do you mean by this? Sorry my English is not good enough, so i didn't understand what you mean by this: > And for security reasons use prepared statements. … -
Replied To a Post in How can i remove the error from the top of the page?
<?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); $title = $_POST['title']; $author = $_POST['author']; $content … -
Replied To a Post in How can i remove the error from the top of the page?
I add that part after line 4, after `}else{`. The result was the same as before. No blank rows has been addded into table but this error appears on the … -
Replied To a Post in Problem with getting data fro mtable and echo data
No i can!...wait i think maybe i have not understand the main point correctly! i searched for mysql manual and check some of the links, but didn't find any definition … -
Replied To a Post in Problem with getting data fro mtable and echo data
I couldn't find it, can you please explain it to me? -
Replied To a Post in How can i remove the error from the top of the page?
@broj1, i tested your code, the result was almost the same as mine. No blank rows will be added into table and it's good, but that error is still appeared … -
Edited How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Edited How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Created How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Began Watching How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Replied To a Post in Problem with getting data fro mtable and echo data
What is `<>` and `''` that you have used between title and Limit? What do they mean? -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
Yes, it's my second day in Java. I decided to create a chat messenger so i have started to learn Java. Of course i'm not new to programming, i code … -
Replied To a Post in Problem with getting data fro mtable and echo data
This is my last code changes: <?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); $sql … -
Edited Looking for a good tutorial for creating chat messenger in Java
Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear … -
Created Looking for a good tutorial for creating chat messenger in Java
Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear … -
Began Watching Looking for a good tutorial for creating chat messenger in Java
Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear … -
Replied To a Post in Problem with getting data fro mtable and echo data
I changed my code to this: <?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); $sql …
The End.