Search Results

Showing results 1 to 40 of 118
Search took 0.01 seconds.
Search: Posts Made By: FlashCreations ; Forum: PHP and child forums
Forum: PHP 5 Days Ago
Replies: 7
Views: 346
Posted By FlashCreations
How about including a PHP file which contains the javascript you wish to be able to access the PHP variables. Then in this included file pass the PHP variables to the script. You can not alter a PHP...
Forum: PHP 5 Days Ago
Replies: 13
Views: 504
Posted By FlashCreations
When I finish my site I might, but it's not really a high priority right now with the Holidays.
Forum: PHP 5 Days Ago
Replies: 8
Views: 306
Posted By FlashCreations
Another suggestion: If you are worried about search engines accessing pages other than the first, you can either set the robots.txt to allow a web spider access to the first page of every article....
Forum: PHP 6 Days Ago
Replies: 13
Views: 504
Posted By FlashCreations
1. Notepad++ or Dreamweaver (I know! But for some reason I have stuck with it)
2. Well I use my own PHP libraries for handling MySQL and I prefer jQuery, but I'm also working on my own JS library!...
Forum: PHP 6 Days Ago
Replies: 3
Views: 257
Posted By FlashCreations
If you are attempting to create an IE compliant page you may also want to look into IE conditional comments. Anything between them is only shown by the appropriate version of IE.

<!--[if IE 6]>
...
Forum: PHP 6 Days Ago
Replies: 4
Views: 2,859
Posted By FlashCreations
Wow! Haha! :D Uhh..I think you have the wrong forum!

Can you please describe the exact functionality you are looking for in this script? It really helps to be descriptive!
Forum: PHP 6 Days Ago
Replies: 8
Views: 306
Posted By FlashCreations
Well by simple logic, why not assume that one unique view is viewing the first page of an article. If so, why not just count the unique views on the first page of each article.

A note about...
Forum: PHP 6 Days Ago
Replies: 2
Views: 204
Posted By FlashCreations
It's probably a missing header, IE is always picky! One thing to note though if what if I was a user and I entered "htdocs/index.php" or "www/index.php"? With some luck you script would print out the...
Forum: PHP 6 Days Ago
Replies: 3
Views: 320
Posted By FlashCreations
In PHP it's fairly simple to connect to your MySQL database:

//Start by connecting to the database or die showing MySQL Error
mysql_connect("localhost", "USERNAME", "PASSWORD") or...
Forum: PHP 6 Days Ago
Replies: 3
Views: 174
Posted By FlashCreations
Try this..you need some quotes (You also need a form action..which can be easily fixed by PHP_SELF which will insert the name of the current PHP page):


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
Forum: PHP 22 Days Ago
Replies: 6
Views: 340
Posted By FlashCreations
If you have moved this question to the proper form, I just ask that you mark this thread as solved, unless of course you have another question! Good Luck with AJAX!
Forum: PHP 22 Days Ago
Replies: 9
Views: 541
Posted By FlashCreations
Unless you want to check for a form submission with a single paged script:


<?php
if($_GET['submit']=="Submit")
{
//Process form
}
else
{
Forum: PHP 23 Days Ago
Replies: 6
Views: 340
Posted By FlashCreations
Man, I think he means maybe using some AJAX to fetch results instead of having to request a new page. For that one, you would need to see the JavaScript forum, man! :D

To get you started here's an...
Forum: PHP 23 Days Ago
Replies: 7
Views: 350
Posted By FlashCreations
Looks like your dealing with WordPress! I'm not sure how you can get the is_sticky() outside of the have posts loop. The only thing I can think of is using absolute positioning in CSS and creating a...
Forum: PHP 23 Days Ago
Replies: 2
Views: 245
Posted By FlashCreations
You need to connect to a database (Such as MySQL) then perform the queries in your arrays (You also need to unescape the quotes after the "tfr", it will stop the query from working).
Try something...
Forum: PHP 23 Days Ago
Replies: 2
Views: 250
Posted By FlashCreations
You can check for a search by the employee's name. Then you can check for a space. If there is a space you can split the two names with explode and then perform a query that matches first and last...
Forum: PHP 23 Days Ago
Replies: 9
Views: 541
Posted By FlashCreations
Alright then, have you replaced all your files (for this project) with one file called paycheck.php and added only my code to it. Line 10 is the end of the first if block. I tried it on my XAMPP and...
Forum: PHP 23 Days Ago
Replies: 14
Views: 597
Posted By FlashCreations
You need to connect to your MySql host first before making queries. Why not try:

mysql_query("root", "", "localhost");
$query="UPDATE ".$table." SET...
Forum: PHP 23 Days Ago
Replies: 14
Views: 597
Posted By FlashCreations
Well first I see a huge gaping security hole! Never, never use a variable for the table name (Unless the user has no control over this variable, meaning nowhere is it set from a $_GET, $_POST, or...
Forum: PHP 23 Days Ago
Replies: 9
Views: 541
Posted By FlashCreations
Try this, you were missing some semicolon's at the end of your lines:

paycheck.php:

<html>
<head>
<title>Paycheck Calculator</title>
</head>
<body>
<?php
Forum: PHP Sep 5th, 2009
Replies: 3
Views: 554
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: 393
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: 319
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: 393
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: 393
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: PHP Aug 24th, 2009
Replies: 7
Views: 516
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,148
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,148
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,148
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,148
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,148
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,148
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,148
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: 311
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,148
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: 516
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: 235
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: PHP Aug 16th, 2009
Replies: 5
Views: 262
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: 329
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: 311
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?
Showing results 1 to 40 of 118

 


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

©2003 - 2009 DaniWeb® LLC