News script menu

User Tag List

Thread: News script

Results 1 to 1 of 1
  1. #1
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    News script

    Ok when i use this script below it just doesnt work i get that error of using password : NO even though i have and then when i execute the sql for the news to be stored nothing appears after can anyone help ?


    news.php
    Code:
    <?php
     = "SELECT *," .
    "DATE_FORMAT(postdate, '%Y-%m-%d') as date " .
    "FROM news ORDER BY id DESC LIMIT "; // 1.
     = mysql_query();
    include "var.php";
    while(=mysql_fetch_array()) // 2.
    {
    echo "<br><table width='100%'><tr bgcolor=''><td>
    <img src=''><b></b> posted on </td></tr>
    <tr bgcolor=''><td></td></tr>
    </table><br>";
    }
    ?>


    add.php

    <?php
    include "var.php"; // 1.
    if ($action==add) // 2.
    {
    $title=$_POST['title'];
    $content=$_POST['content']; // 3.
    mysql_query("insert into news (title,content) VALUES ('$title','$content')");
    echo "<a href='index.php'>Home</a>"; // 4.
    }
    else // 4.
    {
    print "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
    <tr>
    <td><form name=\"form1\" method=\"post\" action=\"add.php?action=add\">
    <div align=\"center\">
    <p>Title:
    <input type=\"text\" name=\"textfield\">
    </p>
    <p>News content :
    <textarea name=\"title\" cols=\"50\" rows=\"10\" id=\"title\"></textarea>
    </p>
    <p>
    <input type=\"submit\" name=\"Submit\" value=\"Add\">
    </p>
    </div>
    </form></td>
    </tr>
    </table>\n";
    }


    ?>

    var.php

    Code:
    <?php
    ////////////////////////////////////////////////////////////////////////////////////////
    ="xxxx"; // number of news that script shows
    ="xxxx"; // db username
    ="xxxx"; // password
    ="xxxx"; // database name
    ="xxxx"; // path to the bullet image
    ="xxxx"; // bg color for title cell in RGB...(black = #000000)
    ="xxx"; // bg color for news cell in RGB...(black = #000000)
    ////////////////////////////////////////////////////////////////////////////////////////
     = mysql_connect("localhost", "", "");
    mysql_select_db("", ); //
    ?>
    oh and i have the sql but when you execute it, nothing appears

    this is the sql
    Code:
    CREATE TABLE news ( id int(10) unsigned NOT NULL auto_increment, postdate timestamp(14) NOT NULL, title varchar(50) NOT NULL default '', content text NOT NULL, PRIMARY KEY (id), KEY postdate (postdate), FULLTEXT KEY content (content) )
    Last edited by volitle; 08-07-2008 at 06:02 AM.


    News script

Similar Threads

  1. I got banned by using that, Anti AFK auto queue script or w/e
    By julian_in in forum World of Warcraft General
    Replies: 22
    Last Post: 11-03-2006, 02:30 PM
  2. Im Looking For A /script Macro... Plz Help
    By codycondame in forum World of Warcraft General
    Replies: 0
    Last Post: 10-05-2006, 02:04 PM
  3. Any Anti AFK Scripts available?
    By paboee in forum World of Warcraft General
    Replies: 2
    Last Post: 08-30-2006, 09:11 AM
  4. [Program] WoW Jumper AntiAFK Script
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 06-23-2006, 10:38 PM
  5. [News] WoW Trojan Steals Passwords To Cash Out
    By Cypher in forum World of Warcraft General
    Replies: 9
    Last Post: 05-04-2006, 02:16 PM
All times are GMT -5. The time now is 12:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search