Jump to content

Search the Community

Showing results for tags 'php'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News
  • General
    • General Chat
    • GFX
    • VFX
  • MMO Hub
    • Gamer's Lounge
    • Member's Lounge
    • Developer Lounge
  • MMO Corner
    • MMO and MMORPG
    • Host Listing
    • Server Listings
    • Server Recruitment
    • Server Reviews
    • The Underground
  • User Hub
    • Support
    • Report
    • Contact Staff
  • Merchant Corner
    • Marketplace
  • General Development Releases
    • Applications
    • HTML
  • Tutorials
    • Programming
    • Web Development
  • Wasteland
    • Archives

Categories

  • Creative Corner
    • GFX Releases
    • VFX Releases
    • Resources
  • MMO and MMORPG
    • World of Warcraft
    • Lineage 2
    • Minecraft
  • Webmasters
    • Content Management Systems
    • Addons
    • Scripts
    • Designs
    • Proxies
    • HTML
  • Applications
  • Gaming
    • World of Warcraft
    • Lineage 2
    • Minecraft
    • Emulation
    • Nulled Distributions
  • Marketplace
    • Marsh Designs
    • iDarts

Calendars

  • Community Calendar

Found 11 results

  1. Hello, I'm a bit new coding PHP, I'm trying to make a page to see the server status (not real servers) I just got a DB with this structure: https://prnt.sc/huch18 And I just want to set flags like a check or X depending on the Disponibility of the server, obtained from the DB using this code: <html> <head> <title>testing php </title> </head> <body> <?php $link = @mysqli_connect( 'localhost', 'root', '12345', 'admin'); if(!$link){ echo '<p>Error al conectar con la base de datos: ' . mysqli_connect_error(); echo '</p>'; exit; } $servers = ("SELECT * FROM servers"); $query = mysqli_query($link, $servers) or trigger_error($link->error."[$servers]"); echo "<table>"; while($row = mysqli_fetch_assoc($query)){ $serverName = $row['nom']; $serverDispo = $row['disponibilitat']; $serverPopu = $row['poblacio']; $serverQue = $row['cua']; echo "<tr><td>".$serverName."</td><td>".$serverDispo."</td><td>".$serverPopu."</td><td>".$serverQue."</td></tr>"; } mysqli_free_result($query); echo "</table>"; } ?> </body> </html> I know I'm not setting the flags, I just want to get the table with results. And this is the result: https://prnt.sc/huckqk Maybe I'm making a noob mistake but I need help ;(
  2. i need somthing script or php code to change txt with online players on my website . For example go to my website newworld-wow.com there is text in mage page "Challenge Yourself" i want to change it like "online players xxx" i have html website there is picture example. @OMGhixD you may know how it works sorry for my english and thanks alot
  3. Hi, Just wondering - does anyone know of any decent quality (and open source) PC Builder scripts? Something similar to this: https://ca.pcpartpicker.com/list/ But obviously not as advanced would be the desired outcome. I've tried free php script websites but so far haven't been able to find anything good.
  4. Put this before </body> & </html> <?php if(isset($_COOKIE['accept'])) { //NO CODE HERE REQUIRED, PUT CODE IF THE COOKIE IS ACCEPTED. } else { ?> <div class="cookies"> By further use of the site you accept that we use <a href="http://www.allaboutcookies.org/" target="_blank">Cookies</a>.<br /> <a id="clickCookie">ACCEPT</a> </div> <?php } ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> <script type="text/javascript" > $(document).ready(function(){ //Check if page is loaded $('.cookies').animate({'bottom': '0px'}, 1000); //Animate button up $("#clickCookie").click(function(){ var now = new Date(); now.setTime(now.getTime() + 1 * 3600 * 24000); document.cookie="accept=accepted; expires=" + now.toUTCString() + "; path=/"; //Cookie will be created, it stays for 1 day, the ACCEPT button won't show for 1 day. $('.cookies').animate({'bottom': '-40px'}, 1000); //Animate the button down when it's clicked, make value same as height. }); }); </script> Stylesheet: .cookies { text-align:center; position:fixed; bottom:-40px; width:100%; height:40px; background-color:rgba(255,255,255,0.4); } #clickCookie { cursor:pointer; /* Makes it act like a clickable button for the users. */ } -NOTE: No sessions are required for cookies, no need for "session_start();" =) IMG:
  5. <?php foreach ($jsonObj->{'ticket'}->{'line_items'} as $line_item) { $price = $line_item->{'retail_cents'}; $price = $price/100; $amount = 0; $total = $amount + $price; echo '<tr>'; echo '<td>'.$line_item->{'name'}.'</td>'; echo '<td>'.$line_item->{'description'}.'</td>'; echo '<td>'.$price.'</td>'; } ?> </table> <?php echo '<h3>Total Charges</h3>'; echo "$",$total; ?> So, I'm attempting to create a total display at the bottom of my php page. For some reason when my foreach statement creates more than one item with a charge amount it only seems to add the last charge to the $amount variable. Example: (note how it is only adding the 2nd charge and not both charges together?) I like to think I know my way around php, but in this instance I feel like I'm retarded... Any help would be appreciated.
  6. Hello, I encounter a strange bug on my local fusioncms site. I just installed a bridge for phpbb, and everything worked great. I tried to implement so that if I update the password via the users panel, it would also update the password for the corresponding phpbb account, but it didn't work and I reverted all my changes. Now I get a problem while using the register module. It says that something went wrong (but it doesnt say what), and the page looks completely broken. However, if I refresh the page with f5, it looks normal again, but when I type in a new account name, it says that account name isnt available, same for e-mail addresses (even though they are available). If I try to register anyway (despite the page telling me the name is taken), the account gets registered and I can log in. I didn't change anything in the registers module, and all the changes I did to the ucp module I reverted (cross checked against a fresh download) Anyone got any ideas of what might be wrong? Any help is greatly appreciated, thank you!
  7. inactive

    Hello guys, i'm new on the php world, and i'm developing a website, and on the login page i got a error, but i can't found that, so i need you guys, because i'll become crazy to found that. Thank you guys {CODE SECTION} <?php // Configura los datos de tu cuenta $dbhost='localhost'; $dbusername='user1'; $dbuserpass='123456'; $dbname='testtable'; session_start(); // Conectar a la base de datos mysql_connect ($dbhost, $dbusername, $dbuserpass); mysql_select_db($dbname) or die('Cannot select database'); if ($_POST['username']) { //Comprobacion del envio del nombre de usuario, password y pin $username=$_POST['username']; $password=md5 ($_POST['password']); $pin=md5 ($_POST['pin']); if ($password==NULL) { echo "<center>'La password no fue enviada'</center>"; }else{ if ($pin==NULL) { echo "<center>'El Pin de Seguridad no fue enviado'</center>"; }else{ $query = mysql_query("SELECT username,password,pin FROM users WHERE username = '$username'") or die(mysql_error()); $data = mysql_fetch_array($query); if($data['password'] != $password) { echo "<center>'Login incorrecto'</center>"; }else{ if($data['pin'] != $pin) { echo "<center>'Login incorrecto'</center>"; }else{ $query = mysql_query("SELECT username,password,pin FROM users WHERE username = '$username'") or die(mysql_error()); $row = mysql_fetch_array($query); $_SESSION["s_username"] = $row['username']; header("Location: noticias.html"); } } } ?> <link href="css/estilo.css" rel="stylesheet" type="text/css"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <body> <center> <h1>Login Usuario</h1> <form action='login.php' method='POST'> <table style='border:1px solid #000000;'> <tr> <td align='right'> Nombre de usuario: <input type='text' size='30' maxlength='25' name='username'> </td> </tr> <tr> <td align='right'> Contraseña: <input type='password' size='30' maxlength='25' name='password'> </td> </tr> <tr> <td align='right'> Pin de Seguridad: <input type='password' size='30' maxlength='8' name='password'> </td> </tr> <tr> <td align='center'> <input type="submit" value="Login"> <input type="reset" value="Borrar"> </td> </tr> <tr> <td align='center'> <center><font class="content">[ <a href="registro.php">Registrate</a> ]</font></center> </td> </tr> </table> </form> </center> </body>
  8. View File [PHP] Login & Register system Email changes (26 october 2015) PHP Mailer is now used instead of PHP's native mail function, the repo and tutorial has been updated. Login problem Some people have been having trouble with logging in, testing this across various servers turns out the password hash's length differs between servers! To avoid this problem change the password length in the database to use the maximum of 255. The examples in the tutorial and the code repo has been updated. Introduction This tutorial will cover creating a login system with registration upon registering an activation link will be emailed containing a link to activate the account. Once active the user can login, a reset option is available to reset the password. Included Github source Github: Daveismyname - Login Register File structure In case you are wondering were the database is located at, you can find it in the main folder. If you can't find it, copy and paste the SQL code in your database which is given below: CREATE TABLE `members` ( `memberID` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `active` varchar(255) NOT NULL, `resetToken` varchar(255) DEFAULT NULL, `resetComplete` varchar(3) DEFAULT 'No', PRIMARY KEY (`memberID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Website There is also a demo link to test out the website. Demo Beside the demo website there is also a website with the whole tutorial. Official Website I did not create this website nor did I create this tutorial. All credits go to the rightful owner and creator! Kind regards, Unrecognized. Submitter Unrecognized Submitted 03/30/2016 Category Websites  
  9. Version 1.0.0

    22 downloads

    Email changes (26 october 2015) PHP Mailer is now used instead of PHP's native mail function, the repo and tutorial has been updated. Login problem Some people have been having trouble with logging in, testing this across various servers turns out the password hash's length differs between servers! To avoid this problem change the password length in the database to use the maximum of 255. The examples in the tutorial and the code repo has been updated. Introduction This tutorial will cover creating a login system with registration upon registering an activation link will be emailed containing a link to activate the account. Once active the user can login, a reset option is available to reset the password. Included Github source Github: Daveismyname - Login Register File structure In case you are wondering were the database is located at, you can find it in the main folder. If you can't find it, copy and paste the SQL code in your database which is given below: CREATE TABLE `members` ( `memberID` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `active` varchar(255) NOT NULL, `resetToken` varchar(255) DEFAULT NULL, `resetComplete` varchar(3) DEFAULT 'No', PRIMARY KEY (`memberID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Website There is also a demo link to test out the website. Demo Beside the demo website there is also a website with the whole tutorial. Official Website I did not create this website nor did I create this tutorial. All credits go to the rightful owner and creator! Kind regards, Unrecognized.

    Free

  10. Yo guys, my first post showing a simple class inheritance:P <?php namespace App\Classes\foo; class foo { protected $bar; public function __construct($foobar) { $this->bar = $foobar } public function bar() { return $this; } } use App\Classes\foo\foo as foobar; class baz extends foobar { public function __construct($foobar) { parent::__construct($foobar); } public function sayHi() { return "Say hi! {$this->bar}"; } } $Mike = new baz("Mike"); $Mike->bar() ->sayHi();
  11. I'm trying to make my website work but the only part i got working is my forums but some parts are broken and my main page for my website index.php is broken.Well i'm creating a website but i can't seem to figure out why i can't end the script on this index.php.I get an error : Here's the script: [url=http://pastebin.com/rZBuhZ1R]http://pastebin.com/rZBuhZ1R Updated current one: [url=http://zarkmania.ucoz.com/index.php.txt]http://zarkmania.uco...m/index.php.txtIf you open it in Notepad++ and go at end of script and press enter, the script is not ended. I tried many ways but seems to not work.(I'm a beginner on php so this explains it)If you don't mind me if i update this thread with new issues on this website. I'm in need for help on php and by helping me and explaining how you fix it will help me a lot. If you help me i'll allow you a free mvp status on my website if you help and a free closed beta ticket to my server.
×