No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Re: Hey there Terry, Could we please see the code where you try to insert into the database? Thanks! | |
Re: [CODE] <script type="text/javascript"> function getVideo(video) { //Set the url var url = "http://localhost/~jfarny/watch.php" window.location = url; } <?php //$video = "http://localhost/~jfarny/gamePlay/0_introCredits.flv"; $_SESSION['currentVideo'] = $video; ?> getVideo(<?php echo $_SESSION['currentVideo']; ?>); </script>[/CODE] This way you run the javascript function with the value the session contains. Perhaps this is what you are looking … | |
Re: Please use the [code][/code] tags. Anyhow, you forgot to add in your query what fields should be occupied. For example: [CODE] mysql_query("INSERT INTO users (id, username, password, gender, birthyear) VALUES(`id`,'".$username."','".$password."','".$gender."'.".$byear.")"); [/CODE] Please note, I am not sure if I used the right field-names, you have to check your database for … | |
Re: [CODE]<?php $class22 = 'class="otherA"'; echo "<a href=\"" . "$dirname$file>$file" . "\"" .$class22. "\">";[/CODE] If $dirname = "blaat/", $file="somefile.jpg" and $class22='class="otherA"' then the outcome of your code would be: <a href="blaat/somefile.jpg">somefile.jpg"class="otherA"">; Perhaps you should try this: [CODE] $class22 = 'class="otherA"'; echo "<a href=\"" . $dirname . $file ."\" ".$class22.">".$file."</a>"; [/CODE] | |
Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = … | |
Hey there, I am attempting to open Firefox using C++ on Linux (Ubuntu). However, I get an segmentation fault. What am I doing wrong, and what should I do? [CODE]std::cout << system("/usr/bin/firefox") << std::endl;[/CODE] /usr/bin/firefox works in commandline and when I run this program in debug mode in Netbeans, firefox … | |
Hi all, I had a short question, I am busy making an UML Class Diagram for my future text-based browsergame, and I was wondering if I do it right yes or no. Please give me your critic and comments. [URL="http://img87.imageshack.us/img87/667/umln.jpg"]Click here for the diagram.[/URL] Kind regards, Schoorsteen | |
Re: When a variable get's returned it means it is given to the variable. [code=PHP] function sum($a, $b){ return $a+$b; } echo sum(2, 3); //outputs 5 $answer = sum(3, 1); // puts 4 in $answer echo $answer; // outputs 4. [/code] | |
I had a rather short question, doesn't OOP Programming make you increase the amount of executed queries? [code=PHP] class Guild{ private $members[]; private $sName; private $iLevel; function __construct($guildId) { // get all information from db using the guildid // also get all memberid's from the db and pass these trough … | |
Hello, I am having a trouble with the proxy I am making with C++. I am connecting a client to a server trough my program. client talks to my program, program talks to server server talks to my program, program talks to client Like that. However, when I receive something … | |
Hello everyone, I am dealing with this problem that I receive a buffer from a client, and when I try to output what the client sends to my program, it only shows everything till the first zero character. [code=C++] #include <cstdio> #include <winsock2.h> #include <iostream> #include <string> using namespace std; … |
The End.