My Web host tells me that PHP no longer supports "->
Moderator: General Moderators
-
Johnnyjoe2000
- Forum Newbie
- Posts: 6
- Joined: Mon May 21, 2007 9:20 am
Short tag issues
feyd | Please use
feyd | Please use
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)
{?>feyd | Please use
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]- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Blank pages are almost a sure sign of parse errors. Add this to the beginning of that page and run it again, though looking at your error logs will provide more information. Also note that a parse error may still render a white blank page using these directives:
Code: Select all
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
// the rest of the script
?>- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
$next_record = $db->next_record();
while($next_record)
{?>