Hi!
I am running Datalife engine script , i want to create a new tab for showing money from database for users near logout button,
i write php code for this in engine/modules/newfile-created-byme.php
PHP Code:
<?php
define ( 'DATALIFEENGINE', true );
include("/engine/modules/sitelogin.php");
$sqlz = "SELECT * FROM dle_users WHERE user_id=='$member_id[user_id]'";
$resultz = mysql_query($sqlz);
$row = mysql_fetch_array($resultz);
?>
<html>
<li><a href="../wall/cashout.php" title="Account Balance"><span>Rs <? echo $row["money"]; ?> </span></a></li>
</html>
i got error undefines variable row in html code
I want to know that how can i track user name or id of login user to put in "WHERE user_id="
and than how place in login.tpl file
i am testing script here
http://xfanbux.freehosting.com/3/ for gemini template
thanks
bye the way i want to give money to users by adding news (pay per post) is there any easy method to do this or any other script for same
thanks again