Posted: Mon May 21, 2007 6:21 pm
You can use => in an array, though.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/

Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have in fact been using short tags in some places. And switching the <? to the <?php tag did clear up some of the lesser display issues. However I am still having issues with the querys.
If I change the <? to <?php in the following code the page fails to display at all. No error, no page not found. Just a plain white page. If I leave the short tag it gets to the $db->query($sSQL); line and just returns everything after the ">" as plain text as if it closed the PHP script at that point.
Any ideas?Code: Select all
<?
function ListMembers($temp)
{
global $db;
$sSQL = "";
$sSQL = "select member_id,member_first_name,member_last_name,,website_url " .
"from members
Where club_status_id=3
and member_last_name LIKE '" . chr($temp) . "%'
Order By member_last_name ASC";
//print $sSQL . "<br>";
$db->query($sSQL);
$next_record = $db->next_record();
while($next_record)
{?>Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]Code: Select all
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
// the rest of the script
?>Code: Select all
$next_record = $db->next_record();
while($next_record)
{?>