Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f1c01b

Browse files
author
lisawilliams
committed
changed db connection details to (try to) make it work on MediaTemple
Doesn't work yet. Media Temple db setup very screwy.
1 parent 061d0db commit 0f1c01b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

admin/blog_insert_mysqli.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
if (isset($image_id)) {
4242
$sql = 'INSERT INTO blog (image_id, title, article, created)
4343
VALUES(?, ?, ?, NOW())';
44-
$
45-
->prepare($sql);
44+
$stmt->prepare($sql);
4645
$stmt->bind_param('iss', $image_id, $_POST['title'], $_POST['article']);
4746
} else {
4847
// create SQL

includes/connection.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
function dbConnect($usertype, $connectionType = 'mysqli') {
33
$host = 'localhost';
4-
$db = 'phpsols';
4+
$db = 'db81050_phpsols';
55
if ($usertype == 'read') {
6-
$user = 'psread';
6+
$user = 'db81050_psread';
77
$pwd = 'crankarm';
88
} elseif ($usertype == 'write') {
9-
$user = 'pswrite';
9+
$user = 'db81050_pswrite';
1010
$pwd = 'lavalamp';
1111
} else {
1212
exit('Unrecognized connection type');

0 commit comments

Comments
 (0)