Search Results

Showing results 1 to 40 of 336
Search took 0.20 seconds.
Search: Posts Made By: buddylee17 ; Forum: PHP and child forums
Forum: PHP Sep 3rd, 2009
Replies: 4
Views: 312
Posted By buddylee17
http://www.sitepoint.com/article/guide-url-rewriting/
Forum: PHP Aug 18th, 2009
Replies: 12
Views: 395
Posted By buddylee17
<a href="\inventory.php?id=" . $id . "\"><?php echo $row_rsAllListings['element_1_1']; ?></a>

Why do you echo $row_rsAllListings['element_1_1'] but you don't echo $id? Check the link href value...
Forum: PHP Aug 15th, 2009
Replies: 3
Views: 673
Posted By buddylee17
Numeric datatypes will never have leading zeros. You could add a dummy number to the front and just remove with substr when outputting it.

$new_id1="12";
$new_id2="345";
$zero="0";
...
Forum: PHP Aug 5th, 2009
Replies: 4
Views: 492
Posted By buddylee17
Well, if the page is .htm and the server is not set up to parse php in .htm files, just use a meta refresh:

<html>
<head>
<meta http-equiv="refresh"...
Forum: PHP Jul 31st, 2009
Replies: 4
Views: 563
Posted By buddylee17
Don't store images in a database. Is it a picturebase or a database???
Seriously, store the path to the pic in the db, store the pic on the server. The db is designed to store data. The server is...
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 Jul 24th, 2009
Replies: 8
Views: 369
Posted By buddylee17
http://www.dreamincode.net/forums/showtopic10132.htm
This tutorial is easy to follow and will teach you how to write a tab delimited text file with a xls extension in php. It uses basic php text...
Forum: PHP Jul 21st, 2009
Replies: 8
Views: 500
Posted By buddylee17
The php mail function works great for a contact page on your site that will send the email to your sites MX. However, when sending to other mail servers such as yahoo, gmail, hotmail... it's not...
Forum: PHP Jun 17th, 2009
Replies: 5
Views: 304
Posted By buddylee17
You need JavaScript (unless you're comfortable with the page reloading on each change).
Forum: PHP Apr 30th, 2009
Replies: 20
Views: 44,539
Posted By buddylee17
Jeez how many times can this thing get bumped? It's almost 3 years old!!!
Forum: PHP Apr 30th, 2009
Replies: 6
Views: 1,651
Posted By buddylee17
You'll have to use your isp's SMTP server.
See here:http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html
Forum: PHP Apr 2nd, 2009
Replies: 20
Views: 879
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 Mar 30th, 2009
Replies: 2
Views: 387
Posted By buddylee17
You could use a meta refresh or JavaScript's window.location. Both are used by DaniWeb during login (depending on whether or not you have JavaScript enabled).
Login. When you get to the page that...
Forum: PHP Mar 29th, 2009
Replies: 4
Views: 357
Posted By buddylee17
Adobe Flash, JavaScript, HTML 4.01 Transitional, CSS, and PHP.

Yeah he probably is promoting his site, but the links on DaniWeb are no-follow, so it wont improve the Search Engine rank.
Forum: PHP Mar 29th, 2009
Replies: 8
Views: 1,552
Posted By buddylee17
Echo the variable into the xml.

<?php $imagea= 'http://localhost/personal_trainer_system/images/Bench.jpg'?>;

myImage['blue'] = new Image();
myImage['blue'].src = <?php echo $imagea; ?>;
Forum: PHP Mar 29th, 2009
Replies: 8
Views: 1,552
Posted By buddylee17
You'll either have to give the xml file a .php extension, or set Apache to parse php in xml files. This can be done with the http.conf file or with a .htaccess file. If you don't have access to the...
Forum: PHP Mar 26th, 2009
Replies: 3
Views: 393
Posted By buddylee17
I've always found that email clients remove quotes from attribute values and some, like hotmail, actually change the values. The only solution that I've found is to not surround values in quotes....
Forum: PHP Mar 13th, 2009
Replies: 3
Views: 786
Posted By buddylee17
There are several ways to do this. The easiest would probably be to use the session array to keep up with the option values. You could also set a cookie with javascript.
Forum: PHP Mar 13th, 2009
Replies: 2
Views: 583
Posted By buddylee17
Use substr function. Note, I also used strpos in the example to ensure that the last word isn't broken up.

<?php
$str="The quick lazy fox jumps over a lazy dog.";
$space=" ";...
Forum: PHP Mar 3rd, 2009
Replies: 6
Views: 676
Posted By buddylee17
Add captcha to keep the bots out
Forum: PHP Mar 3rd, 2009
Replies: 2
Views: 1,589
Posted By buddylee17
Sometimes it's easier to tell php which html to send to the client, based on a condition. Simple example:

<?php
$show="invalid";
if($show=="valid"){
?>
<div>You get to see this content</div>...
Forum: PHP Mar 1st, 2009
Replies: 5
Views: 852
Posted By buddylee17
Read this:
http://www.seocompany.ca/software/free-encryption-software.html
Forum: PHP Feb 27th, 2009
Replies: 5
Views: 2,526
Posted By buddylee17
Yes, the same for more fields. Basically, if you add a text field into the form, you'll need to update the javascript variable, postr on line 52 above so that it will send the value to the php file. ...
Forum: PHP Feb 27th, 2009
Replies: 1
Views: 557
Posted By buddylee17
If you have access to php.ini, you can set this by changing the date.timezone value.

[Date]
; Defines the default timezone used by the date functions
date.timezone = America/Los_Angeles

Also,...
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: 26
Views: 2,208
Posted By buddylee17
You have to get the number of rows.

$a = "SELECT * FROM a WHERE b = c";
$b = mysql_query($a);
$num_rows = mysql_num_rows($b);
if($num_rows == 0) {
echo "No rows retrieved";
} else {
echo...
Forum: PHP Feb 26th, 2009
Replies: 5
Views: 2,526
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 Feb 22nd, 2009
Replies: 5
Views: 550
Posted By buddylee17
I'd recommend finding a good php library that allows for SMTP authentication. If the email client has decent security, php's plain old mail function with html headers is a sure fire way to get your...
Forum: PHP Feb 21st, 2009
Replies: 3
Views: 510
Posted By buddylee17
The file is included inline and parsed just like the contents of the file would be if they were placed there instead. A standard include for the content could be something like:
content.php:

<div...
Forum: PHP Feb 13th, 2009
Replies: 2
Views: 652
Posted By buddylee17
Modify the query to assign the count number to the kwcount column:

$sql="select id,count(keywords) AS kwcount from seeker where userid=".$id;
You can then retrieve kwcount in the same way that...
Forum: PHP Feb 10th, 2009
Replies: 2
Views: 385
Posted By buddylee17
Welcome to DaniWeb! Here are some basic guidelines to get any problem solved here:
When posting code of any sort, it's important to use code...
Forum: PHP Feb 2nd, 2009
Replies: 3
Views: 375
Posted By buddylee17
Please review the Member Rules (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies), specifically the "Keep it Organized" section regarding proper use of code tags. Without the tags, there is...
Forum: PHP Jan 27th, 2009
Replies: 8
Views: 507
Posted By buddylee17
Is rotate in the querystring (the part of the url after the ?)?

Your querystring should be something like:
http://www.yoursite.com/page.php?x=1&y=2&rotate=left&scale=50

You are then pulling...
Forum: PHP Jan 27th, 2009
Replies: 8
Views: 507
Posted By buddylee17
Sounds like you need to put single quotes around the x:

$x = escapeshellarg( $_GET['x'] );
Forum: PHP Jan 27th, 2009
Replies: 4
Views: 571
Posted By buddylee17
Either disable html messages or look into using BBCode
Forum: PHP Jan 26th, 2009
Replies: 4
Views: 571
Posted By buddylee17
Use captcha (http://www.white-hat-web-design.co.uk/articles/php-captcha.php).
Forum: PHP Jan 21st, 2009
Replies: 14
Solved: Mail() question
Views: 670
Posted By buddylee17
You've got to make it a link:

$link = "<a href='".BASE_URL . 'activate.php?x=' . urlencode($e) . "&y=$a'>".BASE_URL."</a>";
Forum: PHP Jan 21st, 2009
Replies: 14
Solved: Mail() question
Views: 670
Posted By buddylee17
What does echo $link; output?
Forum: PHP Jan 21st, 2009
Replies: 1
Views: 2,529
Posted By buddylee17
Use the exec function.
http://us2.php.net/function.exec
Showing results 1 to 40 of 336

 


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

©2003 - 2009 DaniWeb® LLC