You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'dburford11'

We found 414 matches.


<< < > >>

Viewing 1-30 of 414 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91114

1.

None

Topic: [C] Help

Posted: 11/29/09 11:38 PM

Forum: Programming

Can someone point me to a tutorial for calling .dll's from C (not C++)

i've tried google, but it always just comes up C++


2.

None

Topic: c++ help

Posted: 11/19/09 09:27 PM

Forum: Programming

Ok i am trying to make a hello world in Allegro. But everytime it compiles, but doesn't display the hello world. Does anybody know the problem?

#include <allegro.h>

int main( void )
{
 
    allegro_init();
    install_keyboard();
    
    set_window_title("Test");
    
    set_gfx_mode( GFX_AUTODETECT_WINDOWED, 680, 420, 0, 0 );
    
    if( ! ( KEY_ESC ) )
    {
        
        clear_keybuf();
            
      /* Main game will go here */
       textout_ex( screen, font, "Hello World", 20, 20, makecol( 255,255,255 ), -1 );
        
    } 
    
    readkey();
    
    return 0;
    
}

END_OF_MAIN()

3.

None

Topic: PHP Uploads

Posted: 11/05/09 10:00 AM

Forum: Programming

Can someone tell me why this code won't upload?

include $_SERVER['DOCUMENT_ROOT']."/includes/db.connection.php";
	
	$file = $_POST['file'];
	$season = $_POST['season'];
	$title = $_POST['title'];
	
	if( ( $file != "" ) && ( $season != "" ) && ( $title != "" ) )
	{
	
		$insert[0] = $file;
		$insert[1] = $season;
		$insert[2] = $title;
		$insert[3] = md5( $file.$season.$title );
		
		$target_path = $_SERVER['DOCUMENT_ROOT']."/images/comic/";
		$target_path = $target_path . $insert[3];
		
		if( move_uploaded_file( $_FILES['uploadedfile']['tmp_name'], $target_path ) )
		{
		
		
		
			mysql_query("INSERT INTO `comic_episodes` ('id','title','image_src','season','date') VALUES (NULL,'".$insert[2]."','".$insert[3]."','".$insert[1]."','".date("Y-m-d")."'");
			header("Location: /members/admin/");
			exit;
	
		} else
		{
		
			header("Location: upload.comic.php?msg=2");
			exit;
		
		}
	
	} else
	{
	
		header("Location: upload.comic.php?msg=1");
		exit;
	
	}

?>

4.

None

Topic: Screencaps of upcomming projects?(2

Posted: 11/04/09 09:08 PM

Forum: Programming

here the website im programming

Screencaps of upcomming projects?(2


5.

None

Topic: Creating a forum

Posted: 11/04/09 01:35 PM

Forum: Programming

I found that the easiest way to learn programming, is by practice. Just start on the forum, and whenever you need something use php.net for reference. And eventually you will have the hang of it. A forum really isn't that difficult in PHP/MySQL


6.

None

Topic: Not Sure If This Goes Here Opensuse

Posted: 11/02/09 09:39 PM

Forum: Programming

I installed OpenSUSE a long time ago, and now it is taking up to much space, can anyone tell me how to uninstall it. I have forgotten my admin pass, so I can't access YaST


7.

None

Topic: Javascript

Posted: 10/22/09 12:50 PM

Forum: Programming

Ok, i'm trying to make a system where i can write video game walkthroughs, but my only problem is with javascript.

I am trying to pass a variable from a smaller opened window to the main window

main.php

<b>Add Part to this Section</b><br />
<form id="form" action="/includes/admin/actions/add.part.to.section.php?id=<?php print $_GET['id']; ?>" method="post">
Title: <input type="text" size="40" name="title" /><br />
Section Image: <input type="text" name="md5" id="md5" size="30" /> <input type="button" value="Browse Archive" onClick="window.open('/images/walk.images.php','list','location=0,status=0,scrollbars=0,width=100,height=100')" /><br />
<textarea name="content" rows="25" cols="60"></textarea><br />
<input type="submit" value="Add this Part" />
</form>

here's the smaller window

<html>

<head>

<title>Walkthrough - Select an Image</title>

<script language="javascript">
function SendVar() { 
   if(window.opener && !window.opener.closed) 
   {
     window.opener.form.md5.value = 'test';
     window.close();
   }
}
</script>

</head>
<body>
<a href="Javascript:void(0)" onClick="SendVar()">Click Me</a>
</body>
</html>

but it won't pass back the variable


8.

None

Topic: i wanna learn a language

Posted: 10/05/09 10:42 PM

Forum: Programming

I was wondering, what would the best language for someone who already knows PHP, to begin programming simple games? Would it be Java?


9.

None

Topic: a simple php upload

Posted: 08/15/09 07:22 PM

Forum: Programming

I have never really tried file upload until today, and I can't figure out how to do it.

how do I get the full filename like with C:// from <input type="file">


10.

None

Topic: php: gd

Posted: 05/04/09 03:20 PM

Forum: Programming

yes, because I use GD on a number of things on the website. But any other time it doesn't find the image, it just gives me an error


11.

None

Topic: php: gd

Posted: 05/03/09 09:49 PM

Forum: Programming

<?
include $_SERVER['DOCUMENT_ROOT']."/includes/db.
connect.php";

$id = $_GET['id'];

$result = mysql_query("SELECT * FROM `user_data` WHERE `id` = '".$id."' LIMIT 1");
while( $row = mysql_fetch_array( $result ) )
{

$query = mysql_query("SELECT * FROM `sub_main` WHERE `user_name` = '".$row['name']."' LIMIT 1");
while( $wor = mysql_fetch_array( $query ) )
{

$bg_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/im ages/square/basic.png";
$top_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/im ages/square/top.png";
$bg = imagecreatefrompng( $bg_src );
$top = imagecreatefrompng( $top_src );
$font_color = imagecolorallocate( $bg, 237, 243, 74 );
$im = imagecreatetruecolor( 90, 90 );

imagerectangle( $im, 0, 0, 60, 60, $top );
imagerectangle( $im, 0, 0, 90, 90, $bg );

header("Content-type: image/png");

imagepng( $im );

imagedestroy( $im );

}

}
?>

i changed the imagefilledrectangle to imagerectangle and it still is filled black


12.

None

Topic: php: gd

Posted: 05/03/09 09:43 PM

Forum: Programming

I'm trying to make an image from 2 images. But when I use the script, it shows up as a pure black image. Can anyone tell me the error?

<?
include $_SERVER['DOCUMENT_ROOT']."/includes/db.connect.php";
	
	$id = $_GET['id'];
	
	$result = mysql_query("SELECT * FROM `user_data` WHERE `id` = '".$id."' LIMIT 1");
	while( $row = mysql_fetch_array( $result ) )
	{
	
		$query = mysql_query("SELECT * FROM `sub_main` WHERE `user_name` = '".$row['name']."' LIMIT 1");
		while( $wor = mysql_fetch_array( $query ) )
		{
	
	
		$bg_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/images/square/basic.png";
		$top_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/images/square/top.png";
		$bg = imagecreatefrompng( $bg_src );
		$top = imagecreatefrompng( $top_src );
		$font_color = imagecolorallocate( $bg, 237, 243, 74 );
		$im = imagecreatetruecolor( 90, 90 );
		
		imagerectangle( $im, 0, 0, 60, 60, $top );
		imagefilledrectangle( $im, 0, 0, 90, 90, $bg );

		
		
		header("Content-type: image/png");
		
		imagepng( $im );
		
		imagedestroy( $im );
		
		
	
	}
	
}
?>

13.

None

Topic: Transparent Images in Flash

Posted: 04/15/09 09:17 PM

Forum: Flash

ok thanks unknownfury, that works


14.

None

Topic: Transparent Images in Flash

Posted: 04/15/09 06:24 PM

Forum: Flash

yeah i did that, but it came up with a white background in flash.


15.

None

Topic: Transparent Images in Flash

Posted: 04/15/09 04:51 PM

Forum: Flash

How do you make an image you import into flash, have a transparent background. Such as a sprite?


16.

None

Topic: Actionscript w/ Mysql

Posted: 04/15/09 02:56 PM

Forum: Flash

How could I take rows from a mysql db, and turn them into url links in flash?
say I had a mysql row, id, title, and link. How could it display the title, and the url be the link?


17.

None

Topic: can't find my video card

Posted: 04/11/09 06:44 PM

Forum: Programming

I know, but its a laptop, and i was hoping I wouldn't have to do that


18.

None

Topic: can't find my video card

Posted: 04/11/09 11:32 AM

Forum: Programming

i can't find what video card I have. I know you usually go to device manager, and under display adapter but there is no display adapter, under there, as if I don't have a video card.


19.

None

Topic: Where to Learn C

Posted: 04/09/09 06:00 PM

Forum: Programming

because all the tutorials i've seen, just teach how to design apps for windows, and such.


20.

None

Topic: Html To Adjust A Swf's Position?

Posted: 04/09/09 03:25 PM

Forum: Programming

google?

well like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="whatever" height="whatever" id="MyMovieName">
<param name="movie" value="yourmovie.swf">
<param name="quality" VALUE="high">
<embed src="yourmove.swf" quality="high" width="whatever" height="whatever"
name="MyMovieName" align="wherever" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>

21.

Kissing

Topic: Where to Learn C

Posted: 04/09/09 03:16 PM

Forum: Programming

Where can I learn the C they use for creating OS's instead of for windows?


22.

None

Topic: PHP Problem

Posted: 01/08/09 10:47 AM

Forum: Programming

I made a login page, and no matter what i do, it won't set a cookie, i've done everything the way it should be, but nothing is working.

<?
	include $_SERVER['DOCUMENT_ROOT']."/includes/mysql_connect.php";
	
	$username = $_POST['username'];
	$password = $_POST['password'];
	
	$result = mysql_query("SELECT * FROM `members` WHERE `username`='".$username."' AND `password`='".$password."'");
	if(mysql_num_rows($result) > 0)
	{
	setcookie("username",$username,time()+3600);
	header("location: ".$_SERVER['HTTP_REFERER']);

	} else
	{
	header("location: ".$_SERVER['HTTP_REFERER']);
	}
?>

23.

None

Topic: Php: Help

Posted: 08/27/08 12:21 AM

Forum: Programming

Im making a login, but it won't when it goes, the cookie doesnt show up.

<?
	include $_SERVER['DOCUMENT_ROOT']."/includes/db.con.php";
	$name = $_POST['name'];
	$pass = $_POST['pass'];
	$result = mysql_query("SELECT * FROM `members` WHERE `name`='".$name."' AND `password`='".$pass."'");
	if(mysql_num_rows($result) > 0)
	{
	setcookie("user","we",time+3600);
	header("Location: /user.php");
	} else
	{
	header("Location: /index.php?msg=Could Not Login");
	}
?>

24.

None

Topic: php problem

Posted: 07/29/08 01:36 PM

Forum: Programming

im trying to make a login, but i get this error:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\includes\db.con.php:5) in C:\xampp\htdocs\actions.php on line 14

actions.php

<?
	include $_SERVER['DOCUMENT_ROOT']."/includes/db.con.php";
	
	if($_GET['act'] == "log")
	{
	$user = $_POST['user'];
	$pass = $_POST['pass'];
	$result = mysql_query("SELECT * FROM `members` WHERE `name` = CONVERT( _utf8 '".$user."' USING latin1 ) 
	COLLATE    latin1_swedish_ci AND `pass` = CONVERT( _utf8 '".$pass."' USING latin1 ) COLLATE latin1_swedish_ci
	LIMIT 0 , 30 ");
	if(mysql_num_rows($result) > 0)
	{
	setcookie("animal",$user, time()+3600);
	}
	} else if($_GET['act'] == "out")
	{
	setcookie("animal",$user,time()-3600);
	}
	
?>

db.con.php

<?
	$link = mysql_connect("localhost","root");
	mysql_select_db("ac383",$link) or die("<center>Could Not Connect</center>");
?>

can someone tell me how to fix that?


25.

None

Topic: Show only folder

Posted: 07/03/08 03:51 PM

Forum: Programming

when i use this:

<?
	$dir = dirname($_SERVER['DOCUMENT_ROOT']);
	print $dir;
?>

that shows
C:/xampplite
i'm trying to get Test out of http://localhost/test/index.php


26.

None

Topic: Show only folder

Posted: 07/02/08 11:59 PM

Forum: Programming

I figured it out before, but i havent programemed in awhile. I need a script, that tells just the folder name, i've got it where it takes out the /'s but i also need it to take out the file name.

$folder = preg_replace(arrray("/\//","/index.php/"),array("",""),$_SERVER['SCRIPT_NAME']);

can anyone finish it for me?


27.

None

Topic: need a basic fighting game tut

Posted: 03/26/08 01:34 AM

Forum: Programming

dude.... flash forum


28.

None

Topic: Calculator Programming

Posted: 03/14/08 10:00 AM

Forum: Programming

can someone show me where there are tutorials on writing games in Ti-83+


29.

None

Topic: can someone help me with a newline

Posted: 03/12/08 07:40 PM

Forum: Programming

because that doesn't work


30.

None

Topic: can someone help me with a newline

Posted: 03/12/08 07:38 PM

Forum: Programming

like this:

	$test = $_POST['test'];
	$var = preg_replace("/\/n/","<br />",$test);
	print $var;

All times are Eastern Standard Time (GMT -5) | Current Time: 01:42 AM

<< < > >>

Viewing 1-30 of 414 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91114