Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: Morty222
Forum: PHP Jan 23rd, 2009
Replies: 4
Views: 471
Posted By Morty222
I normally see this error when a ' is added in the data that is being submitted to the DB. Try addslashes($var); and stripslashes($var);
Forum: PHP Jan 23rd, 2009
Replies: 1
Views: 253
Posted By Morty222
I have a feed for UPS that gets real time shipping costs for packages shipped throughout the US. The feed works fine, except if someone enters AE or AP as the state if they are shipping to a military...
Forum: PHP Oct 7th, 2008
Replies: 1
Views: 2,528
Posted By Morty222
A user will select a tournament to register for, then add a team, then I store the following into a session:

$teamID;
$tournyID;
$gatefee;
$cost;

When they click add to cart I update the...
Forum: PHP Oct 6th, 2008
Replies: 1
Views: 348
Posted By Morty222
I ask the user how many players are on their roster and they select the answer from a drop down menu, click submit and it generates 1 roster spot for the amout of players they selected. Here is this...
Forum: PHP Aug 12th, 2008
Replies: 8
Views: 5,881
Posted By Morty222
<?php
//edit this
$_max_file_size = '3000000'; //file size in bytes.
$upload_dir = "somefolder/"; //upload folder..chmod to 777
$_i = "1"; //number of files to upload at one time...
Forum: PHP Aug 12th, 2008
Replies: 3
Views: 806
Posted By Morty222
Can anyone tell me how to write a PHP script to update this shell command?

/usr/local/psa/bin/domain.sh -u domain.com -passwd password

I am trying to update FTP passwords using a PHP script, in...
Forum: PHP Mar 5th, 2008
Replies: 4
Views: 1,033
Posted By Morty222
I am using current_timestamp and it works great but when I output the data onto a php page it looks like this:

2008-03-05 18:05:44

Anyone know how I can make it look like this?

03-05-2008...
Forum: PHP Feb 14th, 2008
Replies: 3
Views: 517
Posted By Morty222
Dude, you rock.

Thanks Man, works great.
Forum: PHP Feb 13th, 2008
Replies: 3
Views: 517
Posted By Morty222
I spit out 4 photos across the screen, then I want to start a new row of the next 4 photos, then so on until done.

This works fine expcet the first row shows only 3, then it goes to 4 across.
...
Forum: PHP Feb 13th, 2008
Replies: 4
Views: 2,620
Posted By Morty222
Worked great, thanks.
Forum: PHP Feb 12th, 2008
Replies: 4
Views: 2,620
Posted By Morty222
I am using the following query to pull categories from the DB then creating a select list.

Can some tell me how to make the current value selected in the list when they open the category?

<?php...
Forum: PHP Feb 11th, 2008
Replies: 6
Views: 1,318
Posted By Morty222
I have spent hours and cannot get the above solution to work. It says "Image must be a .GIF or .JPG when its not, but it still uploads image and updates the DB with the file.

Full script below,...
Forum: PHP Feb 8th, 2008
Replies: 3
Views: 3,289
Posted By Morty222
Thaks but all this info comes from 1 table row n tbl_accounts.

Full query here:

<?php
$ln = $_POST['lastname'];
$ps = $_POST['primarysport'];
$yg = $_POST['yeargraduate'];
$cy =...
Forum: PHP Feb 8th, 2008
Replies: 3
Views: 3,289
Posted By Morty222
I am building a search tool to allow users to search players by the following criteria:

Last Name:
Sport:
Graduation Year:
City:
State:
Gender:

Here is my query after the post.
Forum: PHP Feb 1st, 2008
Replies: 1
Views: 3,238
Posted By Morty222
Any one know how I can write a php statement to call the last 4 entires from tbl_accounts by userID?

Example:

I have 4 users, userID's 1,2,3and 4. All of these users are showing on the home...
Forum: PHP Jan 28th, 2008
Replies: 6
Views: 1,318
Posted By Morty222
Worked great, thanks.

Can you tell me real quick using the same code block how I can block the upload if its not a .GIF or .JPG???
Forum: PHP Jan 27th, 2008
Replies: 6
Views: 1,318
Posted By Morty222
Can someone please take a look at this and help me do one thing?

I am uploading images to a directory and updating the users record with the photo they upload. Problem is, I could have someone...
Forum: PHP Jan 24th, 2008
Replies: 2
Solved: Help Please
Views: 490
Posted By Morty222
Thanks man, i really appreciate it.

Works great. :)
Forum: PHP Jan 24th, 2008
Replies: 2
Solved: Help Please
Views: 490
Posted By Morty222
Can someone tell me why this would cause the following error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

<?php
$un = $_POST['email'];
$pw =...
Showing results 1 to 19 of 19

 


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

©2003 - 2009 DaniWeb® LLC