Answer the question
In order to leave comments, you need to log in
After transferring to another hosting, sql queries stopped working. Why?
Moved the site from one hosting to another. The site stopped working sql queries through php. I can't figure out what is the problem
here is the code:
$postID = $_POST['vozrast'];
$db = new Mysqli("localhost", "логин", "пароль", "бд");
$db->query('SET NAMES utf-8');
$result = mysql_query ("SELECT * FROM clgmh_postmeta WHERE meta_key='subject_name' AND meta_value='$postID'");
while ($row = mysql_fetch_assoc($result)) {
$buf = $row['post_id'];
update_post_meta($buf, 'payment', 'Да');
}
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