Want help in this code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hammad
    replied
    Originally posted by Ponick View Post
    i saw a syntex error here its
    PHP Code:
    We're writing off 
    lol, i dont sure about yor script if it isnt in unicode then thats the problem.

    just use replace this with
    PHP Code:
    We´re writing off 
    or
    PHP Code:
     we are writing off 
    actually i translated that with google translator thats why i was getting that error Thanks for help

    Leave a comment:


  • nimeshka
    replied
    Open podarok.php in a text editor ( notepad ) Press ctrl + G and enter 56 to go to that line with error....Then check if you have missed any of (' " ;) these characters at the end of lines......

    Leave a comment:


  • Ponick
    replied
    Originally posted by Hammad View Post
    I m using THis mOdule for my johncms site Module is working fine But giving error in this code please Help me if you can

    mysql_query("insert into `privat` values(0,'" . $nikus['name'] . "','User " . $login . " Gave you a gift [(To Prevent Bbcode here)url=".$home."/users/priz.php?act=in]Click to view gift[/url].','" . $realtime . "','" . $login . "','in','no','You have received a gift!','0','','','','');");
    mysql_query("UPDATE `users`SET `monetki`=monetki-1 WHERE `id` = '$user_id'");
    echo '<p>Gift successfully sent, '.$nikus['name'].' will be notified of your gift!<br/>Attention: We're writing off 1-on coin for the gift!<br/>Profile <a rel="nofollow" href="profile.php?user='.$nikus['id'].'">'.$nikus['name'].'</a></p>';
    break;

    HEre is The i m getting

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobhellc/public_html/users/podarok.php on line 56
    In
    http//mobhell.com/users/podarok.php?user=85

    i know its because of Wrong ' " or ; But Point me If You can THanks
    i saw a syntex error here its
    PHP Code:
    We're writing off 
    lol, i dont sure about yor script if it isnt in unicode then thats the problem.

    just use replace this with
    PHP Code:
    We&acute;re writing off 
    or
    PHP Code:
     we are writing off 

    Leave a comment:


  • Hammad
    replied
    Amit Thanks FOr reply But Problem Still Not Fixed Btw Thanks For Your time now m getting error


    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mobhellc/public_html/users/podarok.php on line 56

    Leave a comment:


  • CuteAmit
    replied
    I fixed the bug. Try it out !

    PHP Code:

    mysql_query
    ("insert into `privat` values(0,'" . $nikus['name'] . "','User " . $login . " Gave you a gift [(To Prevent Bbcode here)url=".$home."/users/priz.php?act=in]Click to view gift[/url].','" . $realtime . "','" . $login . "','in','no','You have received a gift!','0','','','','');");
    mysql_query("UPDATE `users` SET `monetki`= 'monetki-1' WHERE `id` = '$user_id'");
    echo 
    "<p>Gift successfully sent, $nikus['name'] will be notified of your gift!<br/>Attention: We're writing off 1-on coin for the gift!<br/>Profile <a href=\"profile.php?user=$nikus['id']\">$nikus['name']</a></p>";
    break; 

    Leave a comment:


  • Hammad
    replied
    Its line 54 55 and 56 Bro still Getting problem

    Leave a comment:


  • kei_ki7
    replied
    Originally posted by Hammad View Post
    I m using THis mOdule for my johncms site Module is working fine But giving error in this code please Help me if you can

    mysql_query("insert into `privat` values(0,'" . $nikus['name'] . "','User " . $login . " Gave you a gift [(To Prevent Bbcode here)url=".$home."/users/priz.php?act=in]Click to view gift[/url].','" . $realtime . "','" . $login . "','in','no','You have received a gift!','0','','','','');");
    mysql_query("UPDATE `users`SET `monetki`=monetki-1 WHERE `id` = '$user_id'");
    echo '<p>Gift successfully sent, '.$nikus['name'].' will be notified of your gift!<br/>Attention: We're writing off 1-on coin for the gift!<br/>Profile <a rel="nofollow" href="profile.php?user='.$nikus['id'].'">'.$nikus['name'].'</a></p>';
    break;

    HEre is The i m getting

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobhellc/public_html/users/podarok.php on line 56
    In
    http//mobhell.com/users/podarok.php?user=85

    i know its because of Wrong ' " or ; But Point me If You can THanks

    Btw what is the line 56 there?
    Also use php bbcode

    PHP Code:
    mysql_query("insert into `privat` values(0,'" . $nikus['name'] . "','User " . $login . " Gave you a gift [(To Prevent Bbcode here)url=".$home."/users/priz.php?act=in]Click to view gift[/url].','" . $realtime . "','" . $login . "','in','no','You have received a gift!','0','','','','')"); 
    try use this
    Last edited by kei_ki7; 18.05.11, 20:24.

    Leave a comment:


  • Hammad
    started a topic Want help in this code

    Want help in this code

    I m using THis mOdule for my johncms site Module is working fine But giving error in this code please Help me if you can

    mysql_query("insert into `privat` values(0,'" . $nikus['name'] . "','User " . $login . " Gave you a gift [(To Prevent Bbcode here)url=".$home."/users/priz.php?act=in]Click to view gift[/url].','" . $realtime . "','" . $login . "','in','no','You have received a gift!','0','','','','');");
    mysql_query("UPDATE `users`SET `monetki`=monetki-1 WHERE `id` = '$user_id'");
    echo '<p>Gift successfully sent, '.$nikus['name'].' will be notified of your gift!<br/>Attention: We're writing off 1-on coin for the gift!<br/>Profile <a href="profile.php?user='.$nikus['id'].'">'.$nikus['name'].'</a></p>';
    break;

    HEre is The i m getting

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobhellc/public_html/users/podarok.php on line 56
    In


    i know its because of Wrong ' " or ; But Point me If You can THanks
    Last edited by Hammad; 21.05.11, 10:59.
Working...
X