Whats Wrong With This

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

    Whats Wrong With This

    <?php
    header("Cache-Control: no-cache, must-revalidate");
    include("config.inc.php");
    header("Pragma: no-cache");
    header("Content-type: text/vnd.wap.wml");
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    echo "<wml>";
    $sqlthing = mysql_query("SELECT * FROM members WHERE username=&#39;$username&#39;");
    $owner=(mysql_result($sqlthing,0,"owner"));
    $pmname=(mysql_result($sqlthing,0,"pmname"));
    $buddyname=(mysql_result($sqlthing,0,"buddyname")) ;

    echo "<card id=\"card1\" title=\"$pmname Inbox\">";

    $id=1;
    ?>
    [img]pmmenu.gif[/img]

    <?php


    $datime=time();
    echo "<onevent type=\"ontimer\">\n";
    echo "<go href=\"pm.php?password=$password&amp;username=$use rname&amp;datime=$datime\"/>\n";
    echo "</onevent>\n";
    echo "<timer value=\"80\"/>";

    echo "<p align=\"center\">";

    $Connect = mysql_connect("$server","$user","$pass");
    mysql_select_db("$dbname");
    $result=mysql_query("select * from members where username=&#39;$username&#39; and password=&#39;$password&#39;");
    $number_of_rows = mysql_num_rows($result);
    if ($number_of_rows>0)
    {
    include("check.inc.php");
    }
    if ($ok>0)
    {
    include("online.inc.php");

    $yesno = "no";
    $result = mysql_query("SELECT * FROM privatemessage WHERE to_username = &#39;$username&#39; and has_it_been_read=&#39;$yesno&#39;");
    $number_of_rows = mysql_num_rows($result);
    $new_pms = $number_of_rows;
    if(($number_of_rows>0)){
    echo "you have $new_pms new $pmname(s)";
    echo "
    <a title=\"Enter\" href=\"pminbox.php?username=$username&amp;limit=0& amp;password=$password\">Read $pmname</a>";
    }
    if(($number_of_rows<1)){

    $result2 = mysql_query("SELECT * FROM privatemessage WHERE to_username = &#39;$username&#39;");
    $number_of_rows2 = mysql_num_rows($result2);
    $too_add = $number_of_rows2 * -1;
    if(($number_of_rows2>0)){
    echo "<a title=\"Enter\" href=\"pminbox.php?username=$username&amp;password =$password&amp;limit=0&amp;number_of_rows2=$number _of_rows2&amp;too_add=$too_add\">$pmname Inbox($number_of_rows/$number_of_rows2)</a>
    ";
    echo "<a title=\"Enter\" href=\"pmdelete.php?username=$username&amp;amount= 0&amp;password=$password\">Delete All Alerts(s)</a>
    ";
    }

    echo "<a title=\"Enter\" href=\"sendpm.php?username=$username&amp;password= $password&amp;to_username=\">Send $pmname</a>";
    $result2 = mysql_query("SELECT * FROM privatemessage WHERE from_username = &#39;$username&#39; order by date_sent desc");
    $number_of_rows = mysql_num_rows($result2);
    if(($number_of_rows>0)){
    echo "
    <a title=\"Enter\" href=\"beensent.php?username=$username&amp;passwor d=$password&amp;username2=&amp;page=0\">Outbox[$number_of_rows]</a>";
    }


    echo "
    <a title=\"Enter\" href=\"ignoreuser.php?username=$username&amp;passw ord=$password&amp;username2=&amp;view=1\">Ignore Options</a>";
    $count1=0;
    echo "
    <a title=\"Enter\" href=\"pmonoff.php?username=$username&amp;amount=0 &amp;password=$password\">Turn[on/off]</a>";

    $result=mysql_query("select * from buddylist where username1=&#39;$username&#39;");
    $number_of_rows = mysql_num_rows($result);
    $count=0;
    while ($count<$number_of_rows){
    $name=(mysql_result($result,$count,"username2"));
    $result2=mysql_query("select * from latest where ip=&#39;$name&#39;");
    $number_of_rows2 = mysql_num_rows($result2);
    if($number_of_rows2>0){

    $count1=$count1+1;

    }

    $count=$count+1;
    }

    $result5=mysql_query("select * from buddylist where username1=&#39;$username&#39;");
    $number_of_rows5 = mysql_num_rows($result5);
    echo "
    <a title=\"Enter\" href=\"buddylist.php?username=$username&amp;passwo rd=$password\">Buddies[$count1/$number_of_rows5]</a>";
    echo "
    ";
    echo "<a title=\"Enter\" href=\"whosonline.php?username=$username&amp;passw ord=$password\">$uonline Users Online</a>
    ";
    echo "<a title=\"Enter\" href=\"forumindex.php?username=$username&amp;passw ord=$password\">Forums</a>";
    echo "
    <a title=\"Enter\" href=\"alertlists.php?username=$username&amp;passw ord=$password\">crazy pms</a>";
    echo "
    <a title=\"Enter\" href=\"welcome.php?username=$username&amp;password =$password\">Main Menu</a>";


    }}


    echo "</p>";
    echo "</card>";
    echo "</wml>";
    ?>



    cant get the pmmenu.gif to stay central to the screen . it is on the left hand side. if i put echo "<p align=\"center\">"; in i get an error.

    help.
    Wapchat4u


    Topsites4u

    #2
    [img]pmmenu.gif[/img]
    that is a html cod mate try so

    echo "<img src=\"pmmenu.gif\" alt=\"P.M inbox"/>
    ";

    Comment


      #3
      cheers folks but ave sorted it.
      Wapchat4u


      Topsites4u

      Comment


        #4
        i put this bit
        $id=1;
        ?>
        [img]pmmenu.gif[/img]

        <?php
        under this bit lol

        echo "<p align=\"center\">";
        Wapchat4u


        Topsites4u

        Comment


          #5
          Nice but not give you erors mate ?

          Comment

          Working...
          X