Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~7K People Reached
Favorite Tags

11 Posted Topics

Member Avatar for terrymold

Hey there Terry, Could we please see the code where you try to insert into the database? Thanks!

Member Avatar for hielo
0
101
Member Avatar for jfarny

[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 …

Member Avatar for jfarny
0
991
Member Avatar for ManishS

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 …

Member Avatar for metalix
0
108
Member Avatar for mark2326l

[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]

Member Avatar for mark2326l
0
85
Member Avatar for Schoorsteen

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 = …

Member Avatar for Schoorsteen
0
4K
Member Avatar for Schoorsteen

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 …

Member Avatar for daviddoria
0
580
Member Avatar for Schoorsteen

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

Member Avatar for Schoorsteen
0
79
Member Avatar for EpicDewd

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]

Member Avatar for Schoorsteen
0
115
Member Avatar for Schoorsteen

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 …

Member Avatar for Schoorsteen
0
129
Member Avatar for Schoorsteen

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 …

Member Avatar for Schoorsteen
0
396
Member Avatar for Schoorsteen

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; …

Member Avatar for Schoorsteen
0
341

The End.