Search found 11 matches

by kentopolis
Mon Mar 12, 2007 5:41 pm
Forum: PHP - Code
Topic: getting variables...
Replies: 7
Views: 587

plain simple english, hopefully... I have created the ability to sort the data from mysql and display it on the page, http://www.lovealotkennels.com/puppy_listing.php, it displays the data dynamically. It creates a variable like "q=Yorkshire&Submit322=Sort", I found that after I create...
by kentopolis
Mon Mar 12, 2007 5:30 pm
Forum: PHP - Code
Topic: getting variables...
Replies: 7
Views: 587

when I tried that it stripped out the query... Which I need to still have in there, is there a way to have it trim out the old page #?
by kentopolis
Mon Mar 12, 2007 5:07 pm
Forum: PHP - Code
Topic: getting variables...
Replies: 7
Views: 587

that worked great, the only thing is, now it's building on itself, is there any way around this? Here is an example of what I mean: http://www.lovealotkennels.com/puppy_listing.php?q=&Submit322=Sort?&page=2?&page=3?&page=2?&page=1 it just continues to build pages, it seems to be ...
by kentopolis
Mon Mar 12, 2007 4:49 pm
Forum: PHP - Code
Topic: getting variables...
Replies: 7
Views: 587

getting variables...

I am trying to get this script to work. It will skip to the next page, but it will only go to the next page using the file name, which happens to be puppy_listing.php, it will not include the variable is if they exist, I don't know what I'm doing wrong. Here is where I am using the script (an examle...
by kentopolis
Mon Mar 12, 2007 1:03 pm
Forum: PHP - Code
Topic: Dynamic drop down - How to Keep from duplicating entry?
Replies: 5
Views: 568

I am so dumb, it was order by, the problem was the lady who had typed in the information put in a " " space so it was ordering that first, I need to strim out that space I guess...
by kentopolis
Mon Mar 12, 2007 12:58 pm
Forum: PHP - Code
Topic: Dynamic drop down - How to Keep from duplicating entry?
Replies: 5
Views: 568

is there a way to sort the resulting options so they are alphabeticall?

I tried "sort($nt)"

didn't work

I tried "order by ptype" which reordered it but not alphabetically? What am I doing wrong...
by kentopolis
Mon Mar 12, 2007 11:55 am
Forum: PHP - Code
Topic: Dynamic drop down - How to Keep from duplicating entry?
Replies: 5
Views: 568

distinct worked perfectly!!! Thanks!!!
by kentopolis
Mon Mar 12, 2007 9:29 am
Forum: PHP - Code
Topic: Dynamic drop down - How to Keep from duplicating entry?
Replies: 5
Views: 568

Dynamic drop down - How to Keep from duplicating entry?

Hi there, this forum has been tremendously helpful for me... I need to know how to keep a dynamicly generated (from mysql) drop down from repeating entries, when entries are repeated in the table. Here is my current code which is working fine: <? $query="SELECT ptype FROM dogs"; /* You can...
by kentopolis
Mon Mar 05, 2007 1:21 pm
Forum: PHP - Code
Topic: Search Script Issues - HELP!
Replies: 7
Views: 362

That was the one!!! Thank you so much, I have been wracking my brain over this. I will also use the PHP button from now on, thanks, I appreciate how kind you were in helping!
by kentopolis
Mon Mar 05, 2007 12:31 pm
Forum: PHP - Code
Topic: Search Script Issues - HELP!
Replies: 7
Views: 362

I don't know that it is being set... I have wondered about that myself, but didn't even know what to set $s as...I am very new to php and have struggled through this script... Here is the rest of the code: <?php // Get the search variable from URL $var = @$_GET['q'] ; $trimmed = trim($var); //trim w...
by kentopolis
Mon Mar 05, 2007 12:21 pm
Forum: PHP - Code
Topic: Search Script Issues - HELP!
Replies: 7
Views: 362

Search Script Issues - HELP!

I have been able to get everything to work in this script, except, when it goes to create a new page with the next set of results, it turns up the first page of results. I have gone through the code several times and can't seem to get anywhere. Here is a sample search using the script http://www.pet...