Search Results

Showing results 1 to 40 of 173
Search took 0.02 seconds.
Search: Posts Made By: FlashCreations
Forum: Posting Games Sep 27th, 2009
Replies: 8
Views: 1,146
Posted By FlashCreations
Alright:

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
if ($i==round($i/2)) {
...
Forum: Posting Games Sep 27th, 2009
Replies: 8
Views: 1,146
Posted By FlashCreations
<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
if ($i==round($i/2)) {
...
Forum: Posting Games Sep 25th, 2009
Replies: 8
Views: 1,146
Posted By FlashCreations
Sure. Everyone just adds a line...but after the second post, there really wasn't anything that could be done....but we can ignore that post:
[code=PHP]
<?php
session_start();
$slugtalk = "I may...
Forum: PHP Sep 5th, 2009
Replies: 3
Views: 502
Posted By FlashCreations
So you want to have a user upload an image that will be stored in a folder and then recorded in a database? Then you want code to be able to retrieve that image? Is that correct?
Forum: PHP Sep 3rd, 2009
Replies: 11
Views: 344
Posted By FlashCreations
I've never heard of it before and like pritaeas, thought it was some kind of templating application, but assumed you weren't using one.


At first I though the same thing, as that seems very...
Forum: PHP Sep 3rd, 2009
Replies: 4
Views: 293
Posted By FlashCreations
Since you didn't give your email address, nor did you specify the address to CC to I've just put a empty mail function there. If you can provide a email addresses I can help you out. For more on...
Forum: PHP Sep 3rd, 2009
Replies: 11
Views: 344
Posted By FlashCreations
Exactly..though it does need one minor fix! (But I'm sure you knew this!):

$link = array();
$result = mysql_query($sql); //<-- Semicolon
while ($row = mysql_fetch_array($res))
{
$link[] =...
Forum: PHP Sep 3rd, 2009
Replies: 11
Views: 344
Posted By FlashCreations
The proper use of this would be declaring the $link variable as an array before you start looping through the array results of the query. Your code should look like this:

$result =...
Forum: JavaScript / DHTML / AJAX Aug 31st, 2009
Replies: 5
Views: 1,040
Posted By FlashCreations
Very easily done!
Anyhow, if all of your problems have been solved and all questions answers I ask that you mark this thread as solved!! Thanks!
Forum: PHP Aug 24th, 2009
Replies: 7
Views: 465
Posted By FlashCreations
Since we have solved this issue, would you mark this thread as solved....
Forum: PHP Aug 23rd, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
As long as you don't use the $_GET[] variable without sanitizing or replacing html entities you should be safe. If you don't use it, there's no way for it to be hacked!
Forum: PHP Aug 23rd, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
You probably should use htmlentities as it is a function that is packaged with PHP and therefore does a lot more then replace the < and >. In fact, htmlentities escapes all characters that have HTML...
Forum: PHP Aug 22nd, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
It's very possible. mysql_real_escape_string() only escapes special characters such as " and ' that can make your queries vulnerable to a MySQL injection. Inserting script into a query is not MySQL...
Forum: PHP Aug 21st, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
Well for the users table in your MySQL database add a new column called session id. When the user logs in, create a long random string (unique key) to save as a cookie on the user's computer and in...
Forum: PHP Aug 19th, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
I don't think you understand where you are supposed to escape the string. The function should be used right before the variable is inserted into the database. This was if a user didn't fill out a...
Forum: PHP Aug 19th, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
Well, it doesn't appear anything is wrong. (I do agree, you should use mysql_real_escape_string() in your registration script too). I must say, it is a huge security flaw to save passwords and other...
Forum: PHP Aug 18th, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
You will know if magic_quotes_gpc is on by asking your host (If they have the latest version of PHP it shouldn't be!). That might not be it. The only way for us to help you is if you post your code.
Forum: PHP Aug 18th, 2009
Replies: 5
Views: 290
Posted By FlashCreations
Well what kind of files would you be uploading. Images? Document? Presentations? Some of these are extremely easy to view as html. For most images (except for PSD's and others that won't display in a...
Forum: PHP Aug 18th, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
Well this is definitely an improvement! I believe you problem lies in the fact that the passwords in the database aren't hashed using md5(). You need to create a temporary PHP file on your site with...
Forum: PHP Aug 17th, 2009
Replies: 7
Views: 465
Posted By FlashCreations
Ok this makes much more sense! I'll take a look and see if I can come up with something. One question: When you click submit, do you want PHP to show the background and text combined together into an...
Forum: PHP Aug 16th, 2009
Replies: 4
Views: 206
Posted By FlashCreations
No you don't use stripslashes() after you use mysql_real_escape_string(). You use it when you get the data back from the database. If you remove the backslashes, you are allowing a MySQL injection....
Forum: JavaScript / DHTML / AJAX Aug 16th, 2009
Replies: 5
Views: 1,040
Posted By FlashCreations
Ahh....yes! I clumsily forgot to place .style before the .color or any other property. :D Wouldn't be the first time... ;)
Forum: JavaScript / DHTML / AJAX Aug 16th, 2009
Replies: 1
Views: 323
Posted By FlashCreations
I'm not sure if this can be done in JavaScript, because printing involves browser-controlled dialogs and there can be other complications such as the printer being off. You could set a timer and...
Forum: JavaScript / DHTML / AJAX Aug 16th, 2009
Replies: 5
Views: 1,040
Posted By FlashCreations
You need to look into JavaScript and DOM. Give you DIV an id and then you can import the DIV as an object with:

div = document.getElementById('div_id');

Then you can change the styles with:
...
Forum: PHP Aug 16th, 2009
Replies: 5
Views: 244
Posted By FlashCreations
That would be correct. To get the email you would use $_COOKIE['email'] and you would obtain the password with $_COOKIE['password']. Your problem is in the home.php script you are getting these...
Forum: PHP Aug 16th, 2009
Replies: 1
Views: 224
Posted By FlashCreations
Do you mean you want Google to index your forum? If so, this is a process that you will have to wait for. Google follows links on other sites, so when the Google Bot finds a like to your site it will...
Forum: PHP Aug 16th, 2009
Replies: 5
Views: 290
Posted By FlashCreations
Google Docs and HTML are two different things. Do you want a link that shows the HTML of a document or do you want a link to view the document in Google Docs?
Forum: PHP Aug 16th, 2009
Replies: 4
Solved: How to...
Views: 350
Posted By FlashCreations
If you have no further questions, why not mark this thread as solved?
Forum: PHP Aug 16th, 2009
Replies: 7
Views: 465
Posted By FlashCreations
It would help if you could use some clear and exact English so that we can all understand your question. First off, why are you placing DIV's inside of a table? TR's belong in a table and TD inside...
Forum: PHP Aug 16th, 2009
Replies: 5
Views: 244
Posted By FlashCreations
First off, I would mysql_real_escape() any string you pass to MySQL. Secondly, your problem is once someone logs in, the $_POST for the username and password are no longer passed to the page. You...
Forum: PHP Aug 16th, 2009
Replies: 27
Views: 1,099
Posted By FlashCreations
Well for one, I would use mysql_real_escape() on any variable you are passing to MySQL. That should prevent any kind of MySQL injection. I would make sure that your passwords are hashed correctly...
Forum: PHP Aug 16th, 2009
Replies: 4
Views: 206
Posted By FlashCreations
The backslashes are what make the query safe from MySQL injections. They prevent the user from placing quotes that end a string into the query without be escaped (Placing a backslash in front of the...
Forum: PHP Aug 12th, 2009
Replies: 7
Views: 407
Posted By FlashCreations
You're welcome! If your original problem is now solved, I ask that you mark this thread as solved.
Forum: PHP Aug 10th, 2009
Replies: 10
Views: 585
Posted By FlashCreations
Ok this makes much more sense now!! :D
Your problem is this: Everything is correct with the checkboxes. Your checkbox method does work, but your PHP script is not receiving these values correctly. I...
Forum: PHP Aug 10th, 2009
Replies: 5
Views: 299
Posted By FlashCreations
Well there is a problem with the general file. It seems like you have too many brackets. See below:

function uploadFile($fld,$name,$path){
$file=new validations();
//var_dump($_FILES[$fld]);...
Forum: PHP Aug 10th, 2009
Replies: 10
Views: 585
Posted By FlashCreations
http://www.w3schools.com/php/func_http_header.asp
Forum: PHP Aug 10th, 2009
Replies: 10
Views: 585
Posted By FlashCreations
Matthewl beings up a good point. The only problem is that once you have placed content on a page (He has already echoed a table), neither the meta tag (which belongs in the head) nor the header()...
Forum: PHP Aug 10th, 2009
Replies: 10
Views: 585
Posted By FlashCreations
First off, Your Welcome! :D
About that line: I didn't realize that you used that result variable so here is the corrected version with explanation.

$result = mysql_query("DELETE FROM $tbl_name...
Forum: PHP Aug 10th, 2009
Replies: 5
Views: 299
Posted By FlashCreations
It doesn't appear that you accidentally delete the song file in that code, nor do I spot any problems. I believe we need to see where you define your class "general" (Taking a good guess I would say...
Forum: PHP Aug 10th, 2009
Replies: 1
Views: 250
Posted By FlashCreations
How about this:
login.php

<?php
if($_POST['submit']=="Login")
{
switch($_POST['t'])
{
case 1: header("Location: admin.php"); break;
case 2: header("Location: faculty.php");...
Showing results 1 to 40 of 173

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC