<?php
/**
* @author Wokel
* @version 1.4 released date: "17.04.2013"
* @comment I hope you like it :)
*/
/**
* mysql database hostname
*/
define("MYSQL_HOST", "l2kingworld.ddns.net"); //Change the Host here
/**
* mysql username to connect to the database server
*/
define("MYSQL_USERNAME", "root"); //Change the Username here
/**
* mysql password the password to connect to the database server
*/
define("MYSQL_PASSWORD", "root"); //Change the Password here
/**
* mysql database the database name in which you have your vote table setup
*/
define("MYSQL_DATABASE", "l2jdb"); //Change the Database here
/**
* vote url this is the url which where users will be sent to on voting
*/
define("VOTE_URL", "http://vgw.hopzone.net/site/vote/88903/1"); //Change the Voting Page you want here
/**
* The number of hours between voting
*/
define("VOTE_HOURS", 0);
/**
* connect() this function is used to connect to the mysql database server.
*/
function connect()
{
if (!@mysql_connect(MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD))
die("Could not connect to mysql database: " . mysql_error());
if (!@mysql_select_db(MYSQL_DATABASE))
die("Could not select mysql database: " . mysql_error());
$tables = mysql_list_tables(MYSQL_DATABASE);
while (list($temp) = mysql_fetch_array($tables)) {
if ($temp == "votes") {
pedes ti alages prepi na kano na min mou vgazi error
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\vote.php:40 Stack trace: #0 C:\Apache24\htdocs\vote.php(106): connect() #1 {main} thrown in C:\Apache24\htdocs\vote.php on line 40
if you are selling something, you have to have both updated, right? people see forum first, not website.
if you are selling something, you have to have both updated, right? people see forum first, not website.
⏳ L2Elixir Open Beta goes live in less than 4 hours!
This Saturday, November 15th at 21:00 (UTC +2), the gates open for our biggest testing phase!
🔥 Don’t miss the first 30 minutes — exclusive rewards await!
A special NPC, “The Judge”, will appear in Giran, offering unique bonuses to early participants:
🏅 Open Beta Rewards:
- The first 2 players who talk to The Judge → Premium Account for Launch
- Another 2 random players who interact → Premium Account
- Everyone who speaks to the NPC within the first 30 minutes → Legendary Starter Pack for all characters on launch day (Nov 28th, 2025)
📌 The NPC will spawn exactly at 21:00 (UTC+2).
⏱️ Follow the countdown on our website — the hype is real!
Create your account & download the Updater to be ready!
🔗 https://l2elixir.org/connect/
💬 Discord: https://discord.gg/5ydPHvhbxs
Question
L2KingWorld
<?php /** * @author Wokel * @version 1.4 released date: "17.04.2013" * @comment I hope you like it :) */ /** * mysql database hostname */ define("MYSQL_HOST", "l2kingworld.ddns.net"); //Change the Host here /** * mysql username to connect to the database server */ define("MYSQL_USERNAME", "root"); //Change the Username here /** * mysql password the password to connect to the database server */ define("MYSQL_PASSWORD", "root"); //Change the Password here /** * mysql database the database name in which you have your vote table setup */ define("MYSQL_DATABASE", "l2jdb"); //Change the Database here /** * vote url this is the url which where users will be sent to on voting */ define("VOTE_URL", "http://vgw.hopzone.net/site/vote/88903/1"); //Change the Voting Page you want here /** * The number of hours between voting */ define("VOTE_HOURS", 0); /** * connect() this function is used to connect to the mysql database server. */ function connect() { if (!@mysql_connect(MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD)) die("Could not connect to mysql database: " . mysql_error()); if (!@mysql_select_db(MYSQL_DATABASE)) die("Could not select mysql database: " . mysql_error()); $tables = mysql_list_tables(MYSQL_DATABASE); while (list($temp) = mysql_fetch_array($tables)) { if ($temp == "votes") {pedes ti alages prepi na kano na min mou vgazi error
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\vote.php:40 Stack trace: #0 C:\Apache24\htdocs\vote.php(106): connect() #1 {main} thrown in C:\Apache24\htdocs\vote.php on line 40
Edited by L2KingWorld3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now