Hello,
My server isn't connecting to my Web-Host Database.
Config.php
db.hostname=127.0.0.1
db.port=3306
db.username=My Username
db.password=My Password
db.name=habcheer_hotel
I keep getting this error.
I even opened my port. (Inbound)
Hello,
I'm looking for some basic information on how to convert MySQL to MySQLi
I've been trying to convert RevCMS into MySQLi but it's not connecting at all to Database.
Here is a link I've been using for Guidance...
Hey DevBest,
I'm having issue with the badges not being display on the home page
Images:
Code:
<?php
$badges = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$_SESSION['user']['id']."' ORDER BY id DESC");
if(mysql_num_rows($badges) < 7) {
echo 'You have no badges';
}...
That doesn't fix it. I know selected is in my CSS fine because when I used this code.
I get this
With the spacing all messed up a little compare to my other images
But when I used this code (original)
I get this cleaner look without the selected
I hope all of this is making sense.
For some odd ball reason my news articles are not being selected when they are being echo out with the titles.
I've been trying to get help from all different sort of community but nothing seems to be working.
Code that is being used to echo that out.
<?php
if($news_id !== $a['id'])
{...
Habboon Never released their CMS so I wouldn't know. But I do know it has something to do with this
<?php
for ($i = 0; $i < 7; $i++)
{
$sectionName = '';
$sectionCutoffMax = 0;
$sectionCutoffMin = 0;
switch ($i)
{
case 0...
So the run the query it was successful but when I refreshed my page nothing changed at all. But I fixed couple of things, so it worked. But for some reason the #'s are reflecting as This Month. When I posted it today so I really suck at math is there a way you can break down the published...
Every Time I go to my news page I get blank.
news.php file
<!DOCTYPE html>
<?php include('includes/checktheban.php'); ?>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - News Articles</title>...