48 Posted Topics
Re: Creating a MMORPG with just C++, when you new to C++ is impossable,,, i have been studing C++ now for 1 year, created simple games, im am currently in the middle of creating a MMORLG (virtual world) My Game website this shows screenshots <<url removed>> of the current prototype we … | |
I want to know if its possible to store php variables in mysql database i currently have a text field which stores the value <div class="row-2"> <div class="titles"> <?=$config['slogan']?> </div> </div> this is the slogan for the website that is in anther table which is got before this - if … | |
I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt("Please enter new caption"," "); if (caption!=null) { var … | |
Hello, im after merging two strings togther from a for each loop. here is what i have [CODE] foreach($html->find('div[class=product_description]') as $post) { $desc_html_puller = preg_replace("/<.*?>/", "", $post); echo $post } [/CODE] that does the trick but i want to use the $post variable out of the for each loop, but … | |
Hello, i have managed to get hold of social engine and trying to edit the profile script to create a friends list like facebook instead of it saying i have so many friends, This is my first time using smarty so im still learning this is my profile.php [CODE] $page_id … ![]() | |
Hello, im unsure how to fetch a database row that includes php, i have a row in my database that displays a marquee saying 'welcome $username' i have connected to the database but the php on page shows 'welcome $username' how would i get it to state the username instaed … | |
Hello im creating a small social network from scratch and struggling with the newsfeed i have the newsfeed loaded through ajax then page loaded remotly i have a timeago jquery script and the timeago script is not working, but when i get rid of the ajax auto refresh and use … | |
hello, on my website's homepage/login page im after a newsfeed like facebooks. If its your first time to the site you will view a random few post's from people, But if your a member and have signed up it will just show your friends. currently i have a function [CODE] … | |
i have a array which contains then numbers 1,2,3 etc... i want to connect to my mysql database and collect the information from the databse where the id column is = either 1 / 2 / 3 etc... how would i go about this? | |
Re: [B][U]code to set a user online[/U][/B] what you could do which im am gonna do is check the users are friends then on every link that user clicks it update's the (lets say) Time table with there id and the time + X mins. [B][U]now with the other friend looking … | |
Hello i am creating a small forum and having trouble with the user sign up form. i have the start of a sign up form on the index page then that jumps to the sign up page with more info, e.g... index.php [CODE] <form action="signup.php" method="post"> name: <input type="text" name="name" … | |
Hello i am trying to create a script that will allow for the user to click a link and pop up page opens up with the content from the same page e.g [CODE] <?php $option = $_GET['option']; ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function topWindow(){ popup = window.open("page1.php?option=<?php echo $option; ?>","scrollbars=no"); … ![]() | |
i need a piece of code to break down the data brought in from the MYSQL database im creating a small forum type on my website but with my layout if the user writes 5 lines it shows it all on 1 line and shows the bottom scroll bar, i … | |
im trying to create a form that redirects the user to anther page and also stores the information in the database. here is the code [CODE]<?php mysql_connect("localhost", "DBname", "Password") or die(mysql_error()); mysql_select_db("DBname") or die(mysql_error()); // Retrieve all the data from the table $result = mysql_query("SELECT * FROM players") or die(mysql_error()); … | |
Hello i am after creating a javascript alert box with a text input and a submit button that when the submit button is pressed the text field will save its self into a php variable that will then be inserted into the a database. here is the code i have … ![]() | |
Hello all im am after a script that allows for a drop down menu that allows the user to select a item and store that item into the database currenty i have [CODE] //all database stuff here $player_chr_pet = $_POST['chr_pet']; $chr_health = '10'; // var set at 10 incase error … | |
Hello, i was searchin for some fancy flash effects for my website and come accross this website [URL="http://agencynet.com/#/home/"]http://agencynet.com/#/home/[/URL] i am unsure what this website is coded in and would like to know. and also what skills are needed to create a website like this? im not after creating a massive … | |
Hello, i was searchin for some fancy flash effects for my website and come accross this website [URL="http://agencynet.com/#/home/"]http://agencynet.com/#/home/[/URL] i am unsure what this website is coded in and would like to know. and also what skills are needed to create a website like this? im not after creating a massive … | |
if i use this code page1.php [CODE] <form action="" method="post" > First <input type="text" name="first" /> last <input type="text" name="last" /> <input type="submit" /> </form> <a href="page2.php?first=<?php echo $_POST['first'] ?>&last=<?php echo $_POST['last'] ?>">click here</a>[/CODE] page2.php [CODE] <?php session_start(); define ('first', $_GET['first']); define ('last', $_GET['last']); ?> <p>information submitted thank you, <a … | |
Hello, i am trying to create a script that will allow me to visit a page and enter some information and when i click submit it will send that data to anther page, i have managed to do it with a http link, but my question is how to keep … | |
Hello i am after a piece of code that will change my ip address every 30 seconds, i have no idea were to start so any help will be appricated thank you | |
Hi there, I am trying to use a login and a contact form on one page, but im struggling with the php context [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>my webpage</title> </head> <body> <?php $user = 'admin'; $pass = 'admin'; if ($user != $_POST['username'] … | |
i am very new to java i have found a piece off code [CODE] <SCRIPT LANGUAGE="JavaScript"> <!-- Begin // The referrer info is only printed out when you // follow a link to the page with this script on it! if (document.referrer) { document.write("Thanks for visiting us from "); document.write(document.referrer); … ![]() | |
Hello i have a basic website with a background and a container that contains the writing, The background covers the whole page as the contains runs down the middle with a gap of 300px each side, i am after making my container around 30% transparent, The container background is made … | |
Is it possible to create a piece of code that can learn? like a robot? e.g if it see's a picture of me, the code will learn and understand that the picture is me every time it see's it?? | |
Hi all, I am after creating a small basic CMS sytem that will allow me to Change things after i have uploaded my site, How would i do this? I would like to change descriptions and add photos to the site? | |
Hi all im after a piece of code that allows the user to enter a fraction e.g 1/4 and have the code split that fraction into 2 seperate variables, e.g variable 1 containing the '1' variable 2 cantaining the '4' How would i achive this? My objective is to make … | |
Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please … | |
I have been told that C++ and C# are very simular, as i am learning C++ and ust downloading XNA which use's C# I just wanted to know if C++ and C# are similar (exept the fact they both begin with the letter C ) | |
Re: [QUOTE=jwenting;1129470]Given your unfamiliarity with programming you shouldn't start out programming games. First get a solid background in software design and programming in C++ and/or several other languages, then add the specific areas of expertise needed for game and network programming, and then start designing your games. Just browsing some source … | |
i have been told to use a do while loop instead of a goto statment, here is a code i made to try the do while loop, [CODE] int main() { int A = 0; cout << "Enter a number from 1 - 5 " ; cin >> A; do … | |
Re: you need to set the variable "result" to the answer otherwise its using a random number eg, -858993460 [CODE]//seventh #include <iostream> using std::cout; using std::cin; using std::endl; class Maths{ public:void enterInstructions( int instructions ) { cout <<"I want to do a: \nAddition\nSubtraction\nType your choice here: "<< instructions << endl; } … | |
I am after making my program wait before responding to the users input, what code do i use for this and how do i implement it? [CODE]#include <iostream> using namespace std; int main() { char instuctions = 0; int A = 0; // user input 1 int B = 0; … | |
Re: i have made a basic calculator that shows the answer to everything, eg, how the software runs Enter first number 1 Enter second number 2 1 + 2 = 3 1 - 2 = -1 1 divided by 2 = 0.5 1 * 2 = 2 press 1 to continue … | |
Hello i am watching some tutorials on [URL="http://www.3dbuzz.com/vbforum/sv_showvideo.php?v=27"]3d Buzz[/URL] and intro to C++ starts by saying that [CODE] #include <iostream> main () { std::cout << "hello world!" << std::endl ; } [/CODE] should show a CMD like window saying Hello World! On the video they try it and it works … | |
Hi all im new to c++, But im after a code that can make c++ put text in a window that i can copy and paste, any help. if you need more info please ask. Thank you | |
[CODE]<?php $a = '10'; if ($_POST["email"]<>'' && $_POST["val"] == "$a" ) { $ToEmail = 'myemail'; $EmailSubject = 'Site contact form '; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) … | |
Hi all, I am creating a online c.v but do not want it open to every one so i have made a simple login file but want the page to re-direct when the login is correct, [CODE] <?php $user = "user"; $pass = "pass" if ($_POST["username"] != $user && $_POST["pass"] … | |
Hello i have been trying this now for 2 weeks and its messing with my head, i can not seem to get a WYSIWYG editor working on my site, main page [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>my site</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> … | |
I am after a text are like the one in the quick reply at the bottem of this page, I have no idea what the propper name is for them I have no idea to do the coding for it, but would like to be able to let my friends … | |
hi all, i am after a basic editable html textarea. Like the ones used on here the on im typing in now - i have the textarea set up but want to be able to insert text once the webpage is live in html format. if you get what i … | |
Hi all, Im new to php with mysql, i have connected sucessfuly to my database, But how do i go about creating a register script and login script? I already have 10 page website created by me in html/php But now i want to add a members area i have … | |
Hello all. im new to mySQL database so dont know very much so sorry if its a daft question. I have a mySQL database with a company called 5quidhosting but my hosting is with heart internet. Can i get a web page hosted with heart to access the database on … | |
Re: i noticed in dreamweaver that you have to put a . in front of the css style so [CODE] <!-- .li { text-indent: -30px; } -->[/CODE] | |
Re: [QUOTE=Brandon14;1097667]Hi i would love to help you out mate but the thing is i know how to run a mafia game but i just can't code. P.S i would help you for free.[/QUOTE] as im a game developer i can tell you now the first 20 games you make wont … | |
i am trying to use a flatfile database just for a basic webpage. i have no mySQL and need a login file to keep certaian things private from guests, and to also have members view a personal page each time they login. i have been trying to use this code … | |
Re: [QUOTE=snarb;1089659]This may be difficult to understand. I want the program to run the computer based on the decisions the program makes. When certain parameters are met, then click in a certain place on the screen. I hope that makes sense. Please, need help fast. If you have questions, please ask … |
The End.