I am making a game where a user has to move a character around a grid and collect passengers. I have managed to construct this grid using some CSS and jQuery however I now need to add a player to the grid and have them move one square at at a time. At the moment I have kept it all in one file: <!DOCTYPE html> <html> <head> <script class="jsbin" src="jquery.min.js"></script> <meta charset=utf-8 /> <title>BotMod</title> <style> article, aside, figure, footer, header, hgroup, menu, nav, section { display: block; } ul{list-style:none;} a{text-decoration:none;} #grid{ width:500px; height:500px; background:#eee; padding:10px; border-radius:10px; } .box{ font-size:10px; text-align:center; …

Member Avatar
Member Avatar
+0 forum 1

Hi i have 2 tables customer (cabinet_num which is integer) and cabinet (cabinet_num Autoincrement and cabinet_title) in my java i can display cabinet title to let the user choose a cabinet..but i want to collect the cainet_number in my customer table customet.cabinet package cabinet; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTextField; import javax.swing.SwingConstants; import java.awt.Font; import java.awt.Color; import javax.swing.UIManager; import javax.swing.JLabel; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.ScrollPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.ComponentOrientation; import javax.swing.ScrollPaneConstants; import java.awt.Dimension; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.JScrollBar; import javax.swing.JComboBox; …

Member Avatar
Member Avatar
+0 forum 6

Here is a code for those who wants Tic Tac Toe [CODE]#include <string.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <io.h> main() { //_setcursortype(_NOCURSOR); int x1=0, x2=0, x3=0, x4=0, x5=0, x6=0, x7=0, x8=0, x9=0; int o1=0, o2=0, o3=0, o4=0, o5=0, o6=0, o7=0, o8=0, o9=0; int a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0, a9=0; int o123=0, o456=0, o789=0, o147=0, o258=0, o369=0, o159=0, o357=0; int x123=0, x456=0, x789=0, x147=0, x258=0, x369=0, x159=0, x357=0; int lo, di, delayx, delayload, full=0, full2=0, n, nowin=0; char x, ver, opt, choices, choices2, race, code[100], uninst, colcho, quit; int xwin=0, owin=0, gameno=0, race2, fullver, pat=8, xs=10, …

Member Avatar
Member Avatar
+0 forum 6

I want to compare two images side by side. I am trying to grab and store the heights of the first column, to apply the heights to the corresponding image in the other column. Right now I can only get it to either get the first height or all of the height combined. http://jsfiddle.net/F34Ex/ <div id="project"> <ul id="new"> <li> <img src="#" />New 1 </li> <li> <img src="#" />New 2 </li> <li> <img src="#" />New 3 </li> <li> <img src="#" />New 4 </li> <li> <img src="#" />New 5 </li> </ul> <ul id="old"> <li> <img src="#" />Old 1 </li> <li> <img src="#" …

Member Avatar
Member Avatar
+0 forum 1

Whats the best way to collect all the users where `server_id = X` Table: id server_id user 1 2761 adam 2 2567 tom 3 2761 luke 4 2761 mike 5 2346 lucy So what should I do to echo all users where `server_id = 2761`? What output should look like... `Adam, Luke, Mike` What I think is: $voter_count = "SELECT user FROM `voters` WHERE `server_id`='2761'"; $voter_result = mysql_query($voter_count); if ($voter_result > 0) { echo implode(", ", mysql_fetch_array($voter_result)); }else{ echo "No one has voted today using their username - be the first!"; } but this results this result: `adam, adam` Thanks …

Member Avatar
Member Avatar
+0 forum 5

The End.