Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - PoeFacedKilla

Pages: 1 2 3 [4]
61
Discussion / Visual HAM
« on: July 28, 2006, 07:19:59 am »
How can i make Visual HAM compile my project to a .gba because for some reason it won't

62
Discussion / VB GBA
« on: July 27, 2006, 09:08:09 pm »
Is it possible to port a Visual Basic game to the GBA.

63
Coding / HTACCESS
« on: July 12, 2006, 12:42:34 am »
is it possible to do a string replace in HTACCESS, like for replacing tags on a home page? such as main to body?

64
Well i started learning HTACCESS and i was wondering how would you make a .p be a .php file would it be like this:

# Change PHP to .p
AddType text/php.p p

can someone help me?

65
Coding / [Request / Solved] Visual Basic 6 CCE
« on: June 17, 2006, 07:01:27 pm »
Is it possible to make a .exe with Visual Basic 6 CCE?

66
Coding / [Request / Listing] C++ Question
« on: June 16, 2006, 10:53:44 pm »
I just learned Basic Input/Output with files, and I was wondering how do you write a variable name for a file. For example:

#include <iostream>
#include <fstream>
using namespace std;

int main(void) {
int a;

cout<<"Enter a Name: ";
cin>>a;
ofstream myfile;
myfile.open (".txt");
myfile << "Writing this to a file.\n";
myfile.close();

}

how do you get it to be a.txt, what would you put for the varibale to be there just a.txt?

67
Discussion / Free Visual Basics
« on: June 14, 2006, 10:21:33 pm »
Is there anywhere I can get Visual Basics for free?

68
Graphics / Deku Empress [W.I.P.]
« on: June 10, 2006, 04:02:56 am »
I have sprited yet another thing I (and probably only I) think is good its for my game Land of Hyrule,

69
Coding / [Request / Solved] SOC (can some help me use it?) [GM6]
« on: June 09, 2006, 08:59:31 pm »
I just got SOC to try and use it incase I wanted to make an Online game, but is there a tutorial somewhere?

70
Can someone tell me a good site? (please don't say google)

71
Well, I was messing around the other day, and I actually made something that could be turned into something useful.  A blog!!!

First Off, 

Requirements:
PHP
MySQL
CSS Knowledge

An SQL Query:

CREATE TABLE blog_entries (
id INT NOT NULL AUTO_INCREMENT ,
date TEXT NOT NULL ,
author TEXT NOT NULL ,
title VARCHAR (30 )NOT NULL ,
entry LONGTEXT NOT NULL ,
PRIMARY KEY (id)
);

Now with the PHP coding:

Create a your blog directory. And under that directory create another one called admin.

Now go back to the blog directory and create a new file called func.php,

Start off your page:
Code: [Select]
<?php

Now we need four variables:
Host, Username, DB, and Password:
Code: [Select]
$db ='yourdb'
$host ='localhost';
$username ='yoursite_username';
$pass ='yourpass';

(change to fit your DB settings)

now, the code that connects
Code: [Select]
$dbh=mysql_connect ("$host", "$user", "$pass") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$db");

now end your page:
Code: [Select]
?>
Now we're done with the first page, now time to build the ADMIN section.

under admin section

Create a page called index.php

Code: [Select]
<html>
<head>
<title>Your Blog</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h3><a href="post.php" class="adminlink">Post a blog</a></h3><br />
<h3><a href="edit.php" class="adminlink">Edit a blog</a></h3><br />
<h3><a href="delete.php" class="adminlink">Delete a blog</a></h3><br />
</body>
</html>

Now create a page called post.php:

Code: [Select]
<html>
<head>
<title>Post a Blog</title>
</head>
<body>
<form action="postpro.php" method="post">
Title: <input type="text" name="title"><br />
Username: <input type="text" name="user"><br />
Post: <text area style="width: 300px; height:200px" name="text"></textarea><br />
<input type="submit" value="Submit">
</form>
</body>
</html>

postpro.php:

Code: [Select]
<?php
if ($_POST[&#39;title&#39;] == &#39;&#39; || $_POST[&#39;text&#39;] == &#39;&#39; || $_POST[&#39;user&#39;]) {
echo "You did not fill out the entire form";
die();
} else {
require(
"func.php");

$title $_POST[&#39;title&#39;];
$text $_POST[&#39;text&#39;];
$author $_POST[&#39;user&#39;];

$date date("l, F d, Y");

mysql_query ("INSERT INTO `blog_entries` ( `id` , `date` , `author` , `title` , `entry` )
VALUES (
&#39;&#39;, &#39;
$date&#39;, &#39;$user&#39;, &#39;$title&#39;, &#39;$text&#39;
);"
);

echo 
"Post successful!";
}
?>


edit.php:

Code: [Select]
<?php
require("func.php");

$qResult mysql_query("SELECT * FROM blog_entries ORDER BY id DESC");

$counting mysql_num_rows($qResult);
if (
$counting == 0) {
echo 
"<H2>No blog posts.</H2>";
}

while(
$row mysql_fetch_array($qResult)) {
$title $row[&#39;title&#39;];
$id $row[&#39;id&#39;];
echo "
$title [<a href=&#39;editpost.php?id=$id&#39;>Edit</a>]
<BR>"
;
}
?>


72
Coding / [Request / Listing] Can Someone Help...
« on: May 05, 2006, 06:53:30 pm »
Can someone tell me how to make a heart engine? Cause I need one for a game I am working on and all the free ones I have found aren't very good, So can someone help me make a heart engine that has fourth heats?

73
Coding / [Request / Listing] HUD Problems
« on: April 09, 2006, 07:08:53 pm »
I am working on a hud in GM.  I have the sprites and everything I just have a problem.

Code: [Select]
draw_sprite(buttons,0,169,10);

And when I put the object in the room it doesn't show up.  Is there more code I have to put, or a code I have to put on link?  Please someone help.

Pages: 1 2 3 [4]

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.042 seconds with 33 queries.

anything