y claro necesito integrar el sistema de mensajeria privada en usercake 1.3
y no tengo la menor idea ya que el php lo manejo por encima igual que el mysql
aparte que las tablas de ambos en mysql son diferentes y ahi me pierdo
http://usercake.com/downloads/userCakeV1.3.zip
http://www.timkipptutorials.com/sourcefiles/rnPnmHjUoRs.zip
porfavor si alguien me puede echar una mano le pasare lo que estoy tramando cuando este terminado
gracias
Warning: mysqli_error() expects exactly 1 parameter, 0 xxxxxxxx/public_html/acceso/mail/index.php on line 7
Citar
<?php
session_start();
require_once "includes/connect_i.php";
$sqlCommand = "SELECT User_ID, Username FROM YompyCompy_users WHERE Username='" . $_SESSION['Username'] . "'";
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
while ($row = mysqli_fetch_array($query)) {
$pid = $row["User_ID"];
$username = $row["Username"];
}
mysqli_free_result($query);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mensajería clientes</title>
</head>
<body>
<table width="800" border="0">
<tr>
<td>Mensajería privada yompycompy</td>
</tr>
</table><br />
<?php if ($_SESSION['Username']) { ?>
<table width="800" border="0">
<tr>
<td>Bienvenido de nuevo <?php print $Username; ?></td>
</tr>
<tr>
<td><?php require_once "pm_check.php"; ?></td>
</tr>
</table>
<?php } else { ?>
<table width="800" border="0">
<tr>
<td>Porfavor inicie sessión <a href="login.php">Entrar en mi cuenta</a></td>
</tr>
</table>
<?php } ?>
</body>
</html>
session_start();
require_once "includes/connect_i.php";
$sqlCommand = "SELECT User_ID, Username FROM YompyCompy_users WHERE Username='" . $_SESSION['Username'] . "'";
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
while ($row = mysqli_fetch_array($query)) {
$pid = $row["User_ID"];
$username = $row["Username"];
}
mysqli_free_result($query);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mensajería clientes</title>
</head>
<body>
<table width="800" border="0">
<tr>
<td>Mensajería privada yompycompy</td>
</tr>
</table><br />
<?php if ($_SESSION['Username']) { ?>
<table width="800" border="0">
<tr>
<td>Bienvenido de nuevo <?php print $Username; ?></td>
</tr>
<tr>
<td><?php require_once "pm_check.php"; ?></td>
</tr>
</table>
<?php } else { ?>
<table width="800" border="0">
<tr>
<td>Porfavor inicie sessión <a href="login.php">Entrar en mi cuenta</a></td>
</tr>
</table>
<?php } ?>
</body>
</html>