Search Results

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: buddylee17 ; Forum: PHP and child forums
Forum: PHP Jul 28th, 2009
Replies: 4
Views: 563
Posted By buddylee17
You haven't specified an image: "<img src=/em/tutor/images/".
only specifies the folder that the image should be located.
Forum: PHP Apr 2nd, 2009
Replies: 20
Views: 882
Posted By buddylee17
Here's a possible solution.
Step 1, Create an empty array.
Step 2, Evaluate each checkbox in a loop. If empty, push a 0 into the array. Else, push a 1 into the array.
Step 3, Implode the array...
Forum: PHP Feb 26th, 2009
Replies: 26
Views: 2,208
Posted By buddylee17
Actually, I modified your query to test the code in my db prior to posting and it outputted "No rows retrieved'". Also, when I run the code like so:

$sql = 'SELECT * FROM `absent faculty table`...
Forum: PHP Feb 26th, 2009
Replies: 18
Views: 3,670
Posted By buddylee17
Rewrite rules don't actually hide the query string. Rewrite rules pretty much convert seo friendly urls into the actual query string.
Example .htaccess:

RewriteEngine on
RewriteRule...
Forum: PHP Feb 26th, 2009
Replies: 5
Views: 2,528
Posted By buddylee17
Here is a simple AJAX form submission using POST. It basically sends the first and last name to the server, and the server outputs the form information and the date on the server. Very simple, but...
Forum: PHP Jan 27th, 2009
Replies: 4
Views: 571
Posted By buddylee17
Either disable html messages or look into using BBCode
Forum: PHP Jan 16th, 2009
Replies: 15
Views: 1,665
Posted By buddylee17
Basically something like

RewriteEngine on
RewriteRule ([^/\.]+)/?.html$ viewPage.php?ID=$1 [L]

So if you typed
www.blastingart.com/New Features.html
into the url, it would be the same as...
Forum: PHP Dec 21st, 2008
Replies: 4
Views: 525
Posted By buddylee17
<?php
$page = file_get_contents('http://www.google.com');
$num = md5(uniqid());
$filename = $num;
$filename .=".html";
$handle=fopen($filename,"x+");
fwrite($handle,$page);
?>
Forum: PHP Dec 5th, 2008
Replies: 17
Views: 2,029
Posted By buddylee17
Create a blank php page and put the following in to see how it should work:

<?php
$profpic="http://www.daniweb.com/alphaimages/logo/logo.gif";
?>
<html>
<head>
<style type="text/css">
body...
Forum: PHP Dec 1st, 2008
Replies: 10
Solved: please help
Views: 765
Posted By buddylee17
The name the element has in the form goes inside the brackets.
So if your form has

<input name="name" type="text" id="name" tabindex="16" />

After the form is submitted, PHP can assign the...
Forum: PHP Oct 26th, 2008
Replies: 2
Views: 404
Posted By buddylee17
Are you accessing the file through localhost?
Forum: PHP Oct 25th, 2008
Replies: 2
Views: 560
Posted By buddylee17
In the form element, add the attribute target="_top".
<form action="process.php" target="_top">


Have a look at all of the possible target values:...
Forum: PHP Sep 22nd, 2008
Replies: 1
Views: 360
Posted By buddylee17
You can use extract.
@extract($_POST);
This will convert all of your form names to variables.
You can then access each variable by using the following:

foreach($_POST as $key => $value){...
Forum: PHP Sep 16th, 2008
Replies: 14
Views: 1,144
Posted By buddylee17
echo "<img src='/photos/".$info['photo']."' width='200'><br>";
echo "<b>Description:</b> ".$info['name']."<p> <hr>" ;
Forum: PHP Aug 14th, 2008
Replies: 4
Views: 2,111
Posted By buddylee17
This is supported in php. I'm not to sure if the keyword super is. Here's a simple example of this:

class Human
{
public $thirsty = 'Very thirsty!';

function drink($water)
{...
Forum: PHP Aug 10th, 2008
Replies: 2
Views: 1,140
Posted By buddylee17
Change the mode parameter on line 20 to r:
$fp = fopen($path, 'R');
should be:
$fp = fopen($path, 'r');
Forum: PHP Jul 21st, 2008
Replies: 6
Views: 527
Posted By buddylee17
Okay, what this does is it performs a substr on the text portion of the link only by using a function inside the preg_replace function:

<?php
$content="You can read more about reducing the text...
Forum: PHP Jul 14th, 2008
Replies: 4
Views: 1,415
Posted By buddylee17
Yes, this is called a preloader. It's a movie clip that should go in at the beginning of the timeline and play until getBytesLoaded=getBytesTotal. Here's...
Forum: PHP Jul 9th, 2008
Replies: 4
Views: 476
Posted By buddylee17
You are right about the onclick function. The onclick function is a JavaScript event handler so you'll need to incorporate JavaScript (else you'll have to have a page refresh after each button is...
Forum: PHP Jan 24th, 2008
Replies: 3
Views: 808
Posted By buddylee17
Do a SELECT to find the user_id for the current user in the USER table. Assign the user_ID to a variable, $user_ID. Now do your UPDATE on the USER_INFORMATION table using WHERE user_ID='$user_ID'
Forum: PHP Dec 3rd, 2007
Replies: 7
Views: 801
Posted By buddylee17
Read up on password sniffing (http://www.washington.edu/computing/windows/issue21/password.html). It's great if your server is secure, but if the user is on a LAN then it's still possible to get...
Showing results 1 to 21 of 21

 


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

©2003 - 2009 DaniWeb® LLC