Powis Pages

Powis Pages
Powis & variants One-name Study
Co-conspirators, sorry contributors :>)
Trudy Weaver [webmistress] Russell Powis, Steve Poole, Tim Powys-Lybbe [TFPL] & Mick Powis
with many continued thanks to all involved

Why is it that....

PHP Question
Why is it that on the old server the search form worked properly but doesn't on the new server
Details below for those of you that speak PHP

This is the search box *inserted to show php
<*form action ="b_search.php" method=post> <*p align="center">First Name <*input type=text name="letter" size=15>

This is the query used on the old server.
$query = "select * from births where name like '$letter%' order by name";

The result of this query on the new server is as follows
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in etc.etc.etc.

This is the most simple and basic query I can think of and so far the only one I've been able to get to work
$query = "select * from births";
with this obviously there is no need to type in a name coz the blasted thing returns everyone in the table!

powis@one-name.org

© Copyright 2000 - 2100 All rights reserved Trudy Weaver