Hi Folks,
I'm a PHP newbie - but this question really isn't about PHP per se',
it's more about programming in general, and how to do something...
I'm redesigning an ASP site with Dreamweaver CS4, so I'll be sticking to
using ASP technology
The site will use horizontal navigation for the
David Stoltz wrote:
Hi Folks,
I'm a PHP newbie - but this question really isn't about PHP per se',
it's more about programming in general, and how to do something...
I'm redesigning an ASP site with Dreamweaver CS4, so I'll be sticking to
using ASP technology
The site will use horizontal
On Wednesday 28 June 2006 19:55, Chris wrote:
Russbucket wrote:
I took an example of a script from the PHP documentation and try to
connect to my database. If I leave in the or die part of line 3, I get
nothing, if I comment out that part I get the echo message on line 4.
?php
//
On Wed, June 28, 2006 6:58 pm, Russbucket wrote:
I took an example of a script from the PHP documentation and try to
connect
to my database. If I leave in the or die part of line 3, I get
nothing, if
I comment out that part I get the echo message on line 4.
?php
// Connecting and
On 29/06/06, Chris [EMAIL PROTECTED] wrote:
Russbucket wrote:
I took an example of a script from the PHP documentation and try to
connect
to my database. If I leave in the or die part of line 3, I get
nothing, if
I comment out that part I get the echo message on line 4.
?php
//
Schreckhise, M.B.A.
-Original Message-
From: Russbucket [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 6:58 PM
To: PHP General
Subject: [PHP] Programming question - New to PHP
I took an example of a script from the PHP documentation and try to connect
to my database. If I leave
On Thursday 29 June 2006 06:29, Jeremy Schreckhise wrote:
snip
Try
$link = mysql_connect('localhost',$youruser,$yourpassword) or die();
mysql_select_db('yourdb');
$query = 'SELECT * FROM Moses_Lake_Lions';
if(!$result = mysql_query ($query,$link))
{
I took an example of a script from the PHP documentation and try to connect
to my database. If I leave in the or die part of line 3, I get nothing, if
I comment out that part I get the echo message on line 4.
?php
// Connecting and selecting the database
$conn = mysql_connect ('localhost',
Russbucket wrote:
I took an example of a script from the PHP documentation and try to connect
to my database. If I leave in the or die part of line 3, I get nothing, if
I comment out that part I get the echo message on line 4.
?php
// Connecting and selecting the database
$conn =
Russbucket wrote:
I took an example of a script from the PHP documentation and try to connect
to my database. If I leave in the or die part of line 3, I get nothing, if
I comment out that part I get the echo message on line 4.
?php
// Connecting and selecting the database
$conn =
Thomas --
...and then Thomas Moore said...
%
...
% showMasterCategories($year, $model_id, $syear_model_id, $keyword, $make_id,
% $display_mode, $catid)
% {
% $category_array2[$i] = getParent($category_id, $year_model_id, $i, $catid);
% }
%
%
% function getGrandParent($cat_id,
I am trying to return a variable from a recursive function. If the recursive
function gets called, the nothing is returned. For example, below I am
trying to get the category_array2 variable returned. It works if the
recursive function within the IF statement does not get called, but if it
does,
You could make $category_array2 global
function getGrandParent($cat_id, $year_model_id, $x)
{
global $category_array2
...
olinux
--- Thomas Moore [EMAIL PROTECTED] wrote:
I am trying to return a variable from a recursive
function. If the recursive
function gets called, the nothing is
13 matches
Mail list logo