Answer the question
In order to leave comments, you need to log in
DLE Working with a database, writing data to a table
Hello.
I can't figure out what's wrong. Where am I making a mistake.
1 - There is a Data Life Engine (DLE 10.1) in utf-8 encoding
2 - a template for DLE is also in utf-8 encoding
3 - the database is also in the appropriate encoding
4 - in DLE there is a table in the database called dle_post, which stores lines, each line contains information about the created news, for example:
title - title
full_story - description of the news itself, content
xfields - additional fields
metatitle - The title of the page that is displayed between title>
5 - I connected to the database and start using the script to drive into the dle_post database programmatically new articles.
6 - I use this request to transfer data
$query = "INSERT INTO dle_post(title, full_story, metatitle) VALUES('$ph1', '$pqc', '$mtit')";
$tttt = date("Y-m-w H:i:s");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question