Search found 10 matches

by slater
Wed Jun 09, 2004 2:18 pm
Forum: PHP - Code
Topic: Help. Not loading next page.
Replies: 1
Views: 266

Help. Not loading next page.

Hey, Ive got the following code for registering new users on my website: <?php $page_title = 'Register'; include ('templates/header.inc'); if (isset($_POST['submit'])) { require_once ('includes/mysql_connect.php'); function escape_data ($data) { global $dbc; if (ini_get('magic_quotes_gpc')) { $data ...
by slater
Tue May 25, 2004 7:08 am
Forum: Databases
Topic: Excluding certain results.
Replies: 4
Views: 479

Fixed it,

Thanks for your help.

P.S Nice flash header on your website :D
by slater
Tue May 25, 2004 6:51 am
Forum: Databases
Topic: Excluding certain results.
Replies: 4
Views: 479

Sorry should have also said there is already one WHERE in the statement, does this matter?

here it is(modified):

Code: Select all

$sql = "SELECT * from questions WHERE field = 'TRUE' WHERE q_page>$page order by q_seq ascs";
Cheers
by slater
Tue May 25, 2004 6:22 am
Forum: Databases
Topic: Excluding certain results.
Replies: 4
Views: 479

Excluding certain results.

Hey, I have a search feature on my site, this searchs the users of the site and displays the profile depending on the search criteria, however there is a field in the user table that is either TRUE or FALSE and i need to exlude all the reults that are FALSE from any search. Is there a simple bit of ...
by slater
Tue Mar 30, 2004 5:15 pm
Forum: PHP - Code
Topic: Any Ideas?
Replies: 2
Views: 388

Any Ideas?

Hey, Ive got the following code for displaying pictures in specifeid folders <? INCLUDE "conf.php3"; if ((!isset($gal))||(!isset($title[$gal]))){ print "<TITLE>Categories</TITLE>"; include "banner.php3"; print "<h1>Categories</h1>"; $i=0; while (isset($title[$...
by slater
Mon Mar 29, 2004 4:50 pm
Forum: PHP - Code
Topic: [SOLVED] Simple Counting Solution Needed
Replies: 12
Views: 1043

Hey,

Just tried the counting function and im getting

Code: Select all

Fatal error: Call to undefined function: countfiles() in /home/elliottp/public_html/sunshine/index.php on line 102
Any ideas?

Cheers,
Slater
by slater
Wed Mar 24, 2004 6:40 am
Forum: PHP - Code
Topic: [SOLVED] Simple Counting Solution Needed
Replies: 12
Views: 1043

Just another quick and easy one,

Can i get a number value from $file to put into $totalpics

e.g. if theres 96 images in a folder $totalpics = 96;

Cheers :)
by slater
Tue Mar 23, 2004 5:23 pm
Forum: PHP - Code
Topic: [SOLVED] Simple Counting Solution Needed
Replies: 12
Views: 1043

Right, The code above works fine, but (allways a but), just need to make it a bit more complex, if i can, i have around 100pics in each folder is it possible to split the resuilts into two rows of 5 pics, so it would display 10pics per page, 5 on top row 5 on the bottom and then list the pages at th...
by slater
Tue Mar 23, 2004 12:51 pm
Forum: PHP - Code
Topic: [SOLVED] Simple Counting Solution Needed
Replies: 12
Views: 1043

yea thats the sort of thing im after, just one thing, do i need to define $type?

Gallery scripts get too complex,, i only need one little feature.
by slater
Tue Mar 23, 2004 12:13 pm
Forum: PHP - Code
Topic: [SOLVED] Simple Counting Solution Needed
Replies: 12
Views: 1043

[SOLVED] Simple Counting Solution Needed

Hey, Here the problem: I have a page that would like to list all the images in a folder (folder is determined by variable). I need to find the number of images in the folder adn print the thumbnails and links to the fulls sized pics untill all images are displayed. The Pic number will need to increm...