Niloofar24 15 Posting Whiz

WOW :) I finally found where the problem comes from!
I changed this:
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
With this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
And then when i clicked delete button, the alert message pointed at that html part you asked me to delete from delete-action.php, and now when i click delete button, a popup message appears with text "Success" and the html table refresh itself at the same time, great:)

Niloofar24 15 Posting Whiz

Oh! i'm sorry i found the problem. I forgot to change this part:

$servername = "localhost";
$dbname = "mydbname";
$dbusername = "mydbusername";
$dbpassword = "mydbpassword";
Niloofar24 15 Posting Whiz

@lps i used that way but faced mhith some errors.

Niloofar24 15 Posting Whiz

Hi.
In my CMS, when i type a content for a new post in the textarea, like this:

one
two
three
four
five
six

and then click the submit button, it will save in the db table like the way i have typed, every word in a separate line.
But when the script echo the post on the page, i see all words are in one line like this:

one two three four five six

Why? Do i have to type tags like <br> while typing the content on the text area?! But users must feel free to write their posts without thinking about using html tags while they are typing!

RikTelner commented: Good question, I'd like to know too. +2
Niloofar24 15 Posting Whiz

Yes it work ok now. Thank you @cereal for clear explanation and for updating my code:) I understood it well.

cereal commented: You're welcome! +13
Niloofar24 15 Posting Whiz

Thank you @lps. I understood. I will do what you recommend to me.

Niloofar24 15 Posting Whiz

Well, i find the problem myself.
The name of the file "Tutorial.kv" should be in lowercase, so i changed it to "tutorial.kv".

And also there was a little problem in "tutorial.kv" line 6. The ; after None was extra that i deleted.

Niloofar24 15 Posting Whiz

Yes i understand and i tried it but i got this error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1535, in __call__
    return self.func(*args)
  File "./mydb", line 45, in show
    data_str += (row['colorname']) + '\n'
UnboundLocalError: local variable 'data_str' referenced before assignment

So i asked again.

Now it works because i have typed += and also data_str = "" wich i forgot to type before and was the cause of the problem.

Niloofar24 15 Posting Whiz

Yesssssssssssss!!! It works :)
@Gribouillis, Thank you so much.

Niloofar24 15 Posting Whiz

Well, i solved the problem myself finally :)

Niloofar24 15 Posting Whiz

Yesssssssssss!! It works Gribouillis thank you so much :)
I've created some other functions and all of them works separately, nice!
______________
Thanks everybody for all answers.