[PHP] 37 Pictures the World must see

2008-10-03 Thread Alex Hogan
; link to email your congressman. Thank you, alex*hogan* ~ * * *"I'm working on a story that the world needs to know about. I wish for you to help me break it, in a way that provides spectacular proof of the power of news photography in

Re: [PHP] learning classes - need pointer

2005-05-16 Thread Alex Hogan
od overloading. It's not extremely clever by any means but it gets the job done. Besides I'm kinda lazy. I'm sure there are several wrappers that do the same thing. alex hogan

Re: [PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Alex Hogan
else{ break; } } alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] avoiding user using back button-need to re-route

2005-02-10 Thread Alex Hogan
then determine that he is going back and redirect to an error page or a login page. [/snip] On the processing page you could put something like; if($_SERVER['HTTP_REFERER'] != 'myFormPage.php'){ header("Location: YouGotHereWrong.php"); } alex hogan --

RE: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Alex Hogan
[snip] BTW. What is STFU? [/snip] Ooo.., let me do this one... This is one I can answer. ;-) STFU (Shut the F*%# up!) alex hogan * The contents of this e-mail and any files transmitted with it are

[PHP] mssql_fetch_array() vs. mssql_fetch_assoc

2004-11-11 Thread Alex Hogan
In terms of performance which is faster. mssql_fetch_array($var,mssql_assoc) or mssql_fetch_assoc()? I read in the manual that mssql_fetch_array() isn't noticably slower than mssql_fetch_row(), but I didn't see anything about mssql_fetch_assoc() in terms of performance. I was wondering if anybod

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Alex Hogan
able fields and I'm done. function insert($table, $fld, $val){ $query = "INSERT INTO $table (%s) VALUES (%s)"; $query = sprintf($query, implode(",", $fld), implode(",", $val)); $result = mssql_query($query) or die; } alex hogan --

Re: [PHP] Regular expressions Q

2004-10-28 Thread Alex Hogan
her day. Try using; preg_match_all("(([[:blank:]+]|^)[09][0-9][4789][0][0-9]{3}[abcABC]?)", $zn[1], $zaaknummers1); alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
) unless you only want to get the first match. I caught that after I reread the manual. > Also, I don't believe readfile() is what you want. It looks like > file_get_contents() is more in line with what you are trying to do. That's got it. Thanks... alex hogan -- PHP Ge

Re: [PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
> I just tried this out and the first regex is actually working for me on php 4.3.8 > (cli). Can you post some code? At this point all I'm trying to do is print the array with the addresses. $file=readfile('mypathto/myfile.html'); $patrn =(\w[-._\w]*\w(?http:/

[PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
Hi All, I am trying to identify an email address in a page but I don't want to return the email if it's [EMAIL PROTECTED] Here's what I have; (\w[-._\w]*\w(?http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to load another php page?

2004-10-02 Thread Alex Hogan
or include_once('another.php'); } is what you're looking for. If you're looking to redirect to another file based on a condition then; if(isset($var)){ header('Location: another.php'); } will work. alex hogan -- PHP General Mailing List (http://

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Alex Hogan
[snip] "^Q4_[0-9]$" & Yes, your understanding of "^Q4_.[0-9]$" is wrong. [/snip] Thanks guys.., I did take the '.' out of the expression, but I also had to change the way I was using it. I replaced; if($key == ereg( "^Q4_.[0-9]$", $key)){ with

[PHP] Re: Need help with a regular expression

2004-09-30 Thread Alex Hogan
Please ignor... I got it... alex On Thu, 30 Sep 2004 16:22:02 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > I have a series of questions that are multiple choice. Some of the > questions have multiple answers to them. > > Those questions have answers that are indicated

[PHP] Need help with a regular expression

2004-09-30 Thread Alex Hogan
9]$", $key) should look for a $key starting with 'Q4_' followed by a single number and place those values into an array named $Q4scores. What am I missing? Thanks, alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with header("Location:home.php")

2004-09-09 Thread Alex Hogan
17 of index.php. Header() can only be used if there has been no header information sent to the page. You will need to see what is on line 3 and probably line 2 of connection.php. alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Timing on an internal email

2004-09-08 Thread Alex Hogan
t as a command line task or as an instance of the browser? alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Timing on an internal email

2004-09-08 Thread Alex Hogan
ill do the mail outs on the appropriate date, but there has to be a better way. Is this something that I'll have to do outside of php? alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
them using the same name but call two differnent files. I've never done that but I don't see why it wouldn't work. > I am going to run into conflicts if I include two class definitions for > search, am I not? Yep. If you call them both at the same time. alex hogan -- PHP

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
extend the class using; class subSearch extends Search{ // do stuff here } alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class packages

2004-09-08 Thread Alex Hogan
esses email I have a config.php file that will include the class files necessary for the email functionality. In the admin section I have a config.php file that includes the admin authorization, editing and insertion, and modification class files. I don't know if it's a right way or wrong

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Alex Hogan
Until now I've always thought of plugins as purley client side development. alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Alex Hogan
you talking about something else? alex hogan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regex for Validating URL

2004-09-03 Thread Alex Hogan
> Just to be pedantic, that would be pedantry ;) ! Is this thread ever going to die? Or would that be dye? ;) alex hogan * The contents of this e-mail and any files transmitted with it are confidential

[PHP] Protected vars

2004-08-17 Thread Alex Hogan
ebug the file I don't get anything that indicates that it won't parse the class. alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Alex Hogan
> Imagine all the people that'll want to post to a John Holmes list!!! People would be wide open for that list. Sorry.., I couldn't resist... Just had to take the low road... alex hogan * The con

RE: [PHP] Escaping quotes [solution]

2004-08-12 Thread Alex Hogan
he values. I sure will be glad when I don't make these kinds of simple mistakes anymore. Thanks guys... alex hogan * The contents of this e-mail and any files transmitted with it are confidential and

[PHP] Escaping quotes

2004-08-11 Thread Alex Hogan
x27;", $val) implode(",", "\"".$val."\"") - This blows up nicely ;-) Where am I going wrong on this? alex hogan * The contents of this e-mail and any files transmitte

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
> Did you try a curveball when throwing the processors into the box? Processors like sliders... Can't lay off 'em.., can't hit 'em. alex hogan * The contents of this e-mail and any fi

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
ure that there wasn't any duplicate functionality or duplicate calls. Apparently I must've been calling it from someplace else that I can't find, and changing to include_once() fixed the problem. I just don't understand why it worked f

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
[snip] > I figured PHP's memory limit per script at 8mb might be the > bottleneck, so I upped it to 128, restarted apache, and reran > the script. Increasing available memory had no effect. [/snip] This may have already been addressed, but did you index any key fields?

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
the previous version. I only had half a day to change the production environment so I wanted to make sure there was no lag. Unless there was something that I missed. At first I thought that I had either duplicated the function someplace else, but that wasn't the c

[PHP] Cannot redeclare function

2004-08-10 Thread Alex Hogan
27; to 'include_once()', but I really want to know why this happened and why it didn't throw that error until now. alex hogan * The contents of this e-mail and any files transmitted with it are con

RE: [PHP] Branching blunder

2004-08-05 Thread Alex Hogan
[snip] > Because $answers = 5; is the last check of $answers unless > the else statement is invoked. Try this... [/snip] That was it.., I don't know why I didn't see that. Thanks Jay. alex * The contents of

RE: [PHP] javascript type cast OT

2004-08-03 Thread Alex Hogan
[snip] Perhaps we need a: Subject: [Elite Guide] for the seasoned php poster. Post everyweek :) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! [/snip] I don't care who you are that's funny r

RE: [PHP] javascript type cast

2004-08-03 Thread Alex Hogan
> All I have to say is, sorry I asked. OK.., now you're really making me want to take a poke at you. You posted off topic, knew it was off topic, you got spanked for it. Don't make things worse by whining.

RE: [PHP] javascript type cast OT

2004-08-03 Thread Alex Hogan
Does this mean that they don't get the same consideration that those get who it is apparent that they have been hacking code for a while? This is a general list. alex hogan * The contents of this e-m

RE: [PHP] javascript type cast

2004-08-03 Thread Alex Hogan
r members of this list from the older ones. Then again maybe it's nothing more than the age old trait of chastising someone else to give themselves a feeling of importance. My point is a little temperance goes a lot farther and shows a lot more than self importance. BTW.., Yes I'm

[PHP] Array assistance

2004-07-27 Thread Alex Hogan
Submit ) ) Ten separate arrays with an array at 0 that has the data I'm after. This is where I'm getting stuck. How can I get to the keys that are either 'mc' or 'truefalse' and sum them? Thanks, alex hogan **

[PHP] INSERT INTO using foreach

2004-07-23 Thread Alex Hogan
x27;$key') VALUES ('$value')"; $result = mssql_query($sql); } } I keep getting an invalid object 'registration' error. However registration is the name of the table. I'm guessing it's someplace

[PHP] Function with Optional Arguments

2004-07-21 Thread Alex Hogan
Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth]){ some stuff here } alex hogan * The contents of this e-mail

RE: [PHP] Limitation to URL params on Include()?

2004-07-14 Thread Alex Hogan
[snip] > ... > $block=new Block($header,$content,$link,$andsuch); > $block->display(); > ... [/snip] That's very cool... Thank you... alex hogan * The contents of this e-mail and any files

RE: [PHP] Limitation to URL params on Include()?

2004-07-14 Thread Alex Hogan
L generated > by the called page. read() and > fopen() will get the output of that page and make it > available to you for your own processing. OK... alex hogan * The contents of this e-mail and any files

[PHP] Limitation to URL params on Include()?

2004-07-14 Thread Alex Hogan
the parameter values are record sets. What happens is that I get the first three params and then nothing. Any ideas? alex hogan * The contents of this e-mail and any files transmitted with it are confidential a

[PHP] Vienna anyone

2004-07-14 Thread Alex Hogan
Does anyone on this list live in Vienna? If so please contact me off list. alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use

RE: [PHP] PHP Hosting

2004-07-09 Thread Alex Hogan
> Don't you require Windows 3.1.11 for proper network support > :) - at least 3.1 was stable. Poke fun all you want.., Everyone knows the real OS was Warp! ;-) *onward flamewar soldiers* alex hogan **

[PHP] Getting Server time

2004-06-10 Thread Alex Hogan
When I'm using the time() function am I getting the time on the server? If not how can I get the time from the server regardless of whether or not its in the same time zone as the client. alex hogan

[PHP] Strtotime() weirdness

2004-06-01 Thread Alex Hogan
Does anybody know of any peculiarities in the strtotime() function? If I enter any date before 1 Jan 1970 I get a -1 returned. alex hogan * The contents of this e-mail and any files transmitted with

RE: [PHP] Online Testing Application

2004-06-01 Thread Alex Hogan
think small enough, they worry too much on the lesson and not enough on the objectives that make up the lesson and how they can be made into expressions that will transcend lessons, courses, etc... alex hogan * T

RE: [PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
#x27;m a little brain dead this morning. If I have something like this what I'll want to do is to identify the point in the array where I can force the selected to be the default based on the previous search. >Make Selection $n"; } ?> Is there

[PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
selection to the appropriate location. alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is

RE: [PHP] 0 == null ?

2004-05-10 Thread Alex Hogan
ny language null is of no > value equaling nothing? > So how can it equal 0? You can use is_null instead. If(is_null($var)){ do something } Else{ do something different } alex hogan ** The contents of

[PHP] Creating an assoc array from two arrays

2004-04-23 Thread Alex Hogan
Hi All, I am looking through the manual and I think I may be blind or something, but how can I create an associative array from two arrays. What I have is two arrays that look like this; Array1([0]=>Spider, [1]=>Monkey, [2]=>Cards) Array2([0]=>26.3, [1]=>0.65, [2]=>62.07) I want to combine them

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
> What's in your array? $array1[0] = 'firstname'; $array1[1] = 'lastname'; $array1[2] = 'tkt_title'; I got that fixed. Thanks. alex hogan ** The contents of this e-mail and any files tra

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] I do have one question though. I ran your code and it only returns the first letter for that element in the array. For instance fieldone returns as f and tableone returns as t. The output looks like this; SELECT f,f,f FROM t,t. [/snip] Never mind I found it. It should be; $query = "SELEC

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] > $query = "SELECT "; > $start = true; > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds[$i]; > $start = false; > } else { > $query .= ", " . $flds[$i]; > } > } > $query .= " FROM "; > $start = true; > foreach ( $

[PHP] Logic problem

2004-04-20 Thread Alex Hogan
Hi All, I am having a logic problem. (insert jokes here) I am trying to create a function that will allow me to pass any number of fields and tables into a blanket query. I am getting an error; Unexpected foreach. I have tried placing the loop in several different places and am getting the same

RE: [PHP] ADOdb Operator question

2004-04-08 Thread Alex Hogan
nd > when I don't. This is an explanation that's in the manual. $conn->Open("Provider=SQLOLEDB; Data Source=localhost;Initial Catalog=database; User ID=user; Password=password"); http://www.php.net/manual/en/ref.com.php alex hogan > -Original Message-

RE: [PHP] Using WinNT login

2004-04-08 Thread Alex Hogan
Thanks guys... alex ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessar

[PHP] Using WinNT login

2004-04-08 Thread Alex Hogan
Hi All, Is it possible to use the users WinNT network login for a php app? If so can someone point me in the direction for a tutorial or directions. Thanks, alex hogan ** The contents of this e-mail and any files transmitted

RE: [PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
I guess I deserved that one... alex hogan > -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 9:40 AM > To: Alex Hogan; PHP General list > Subject: Re: [PHP] Limiting an array to unique values > > From: "Ale

RE: [PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
Thanks... Exactly what I needed. alex hogan > -Original Message- > From: joel boonstra [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 9:30 AM > To: PHP General list > Subject: Re: [PHP] Limiting an array to unique values > > On Tue, Apr 06, 2004 at 0

[PHP] Limiting an array to unique values

2004-04-06 Thread Alex Hogan
array? alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily

RE: [PHP] Displaying a money datatype from mssql - Solution

2004-04-02 Thread Alex Hogan
unt,2)' it returned; Total Amount 0.00 Solution: The solution was in the query; SELECT cast(totalamount as numeric(10,2)) as totalamount This returns the proper formatting; Total Amount 123.50 alex hogan ** The contents of t

RE: [PHP] Displaying a money datatype from mssql

2004-04-01 Thread Alex Hogan
> [snip] > My last resort would be to go into the db and do a conversion there but > I > really don't want to do that. > How can I convert these to represent a readable dollar figure? > [/snip] > > start with http://www.php.net/number_format I tried that and it converted the values to 0.00. I kn

[PHP] Displaying a money datatype from mssql

2004-04-01 Thread Alex Hogan
Analyzer they come up; Price .7500 Total Amount 25.5000 My last resort would be to go into the db and do a conversion there but I really don't want to do that. How can I convert these to represent a readable dollar figure? alex hogan ***

[PHP] CGI Error

2004-03-23 Thread Alex Hogan
few references to it, but nobody seems to have an explanation. alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is

RE: [PHP] Parsing recordsets - only first row returned

2004-03-18 Thread Alex Hogan
> Wow... you're totally missing the point of a database when you store data > like this. Not my db... > So how many times does the while() loop execute? Once >How many rows is your query actually returning? Just one. >What does the output actually look like and what should it look like. 9

RE: [PHP] Parsing recordsets - only first row returned

2004-03-18 Thread Alex Hogan
little present from MS Outlook. Glad to hear your headache is gone though. > $entire_recordset = mssql_fetch_array($result); > > foreach($entire_recordset as $row) > { > // looping code goes here > } Thanks... alex hogan **

[PHP] Parsing recordsets - only first row returned

2004-03-18 Thread Alex Hogan
x = 0; $num > $x; $x++) { $avg[] = $total[$x] / $i; echo ""; echo $avg[$x]; } } Thanks, alex hogan ** The contents of this e-mail and

RE: [PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
> $row is an entire array. you don't explode an entire array, you only > explode the contents of an element of an array. > > print_r($row) will give you some clues. > > you'll need to access a specific element within the array. like: > > $thearray = explode('__', $row[0][0]); That was it... Tha

[PHP] Array to String conversion error

2004-03-16 Thread Alex Hogan
$i++; } } When I call the function I get; Notice: Array to string conversion in \WWW\mypath\srvyclass.inc.php on line 40 Array question 1 What am I missing? alex hogan ** The

RE: [PHP] Re: Loosing redirect in if...else

2004-03-12 Thread Alex Hogan
> (a) if you're using any values sent via the URL string (e.g. > cf=0), you need to > use $_GET, not $_POST; Some of the information is coming from a form and the info from the url is to call the different questions. They are all on one page in a switch statement. > (b) empty() will also evaluat

RE: [PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
>$_SESSION['selloction'] = '0'; > >1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. > If you want to set a session variable (and keep it set) when you do a > redirect > you need to the close the session first. Thanks..., alex *

[PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
Hi All, I know this may be a bad time..., that whole top posting vs. bottom posting debate has got me riveted, (especially after getting a monitor full the other day), but I have a question. I have a page that displays a survey. 11 questions all separated in a switch statement on a page na

RE: [PHP] Screen Res

2004-03-11 Thread Alex Hogan
re is a link that explains taking javascript vars and putting them into php vars. http://www.iwdp.co.uk/javascript_to_php.htm HTH, alex hogan > -Original Message- > From: res0b8b6 [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 10, 2004 10:58 PM > To: [EMAIL PROTECTED] >

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> That cured 9 but it still freaks on 10. It returns the error for the > entire > loop count. > [/snip] > > Because $paging might be turning the integer you need into text? Maybe? I found it. In that sql statement I'm using SELECT DISTINCT In the sql statement that I'm using to get my recor

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> Try this > > $query = "SELECT DISTINCT q.questions > FROM SG_Questions as q, SG_QuesRef as r > WHERE r.pos_id = '$pos' AND r.sic_id = '$sic' AND > r.cat_id > = '$cat' AND r.ques_id = q.ques_id"; > $result = mssql_query($query) or die("Can not execute query $q

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> What does mssql_num_rows($query) return? 105 alex ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The vie

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
$result, $i); $row = mssql_fetch_array($result); ...etc... alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is a

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
>PLEASE STOP TOP POSTING! Sorry Didn't mean to don't even know exactly what it is > Are you selecting all of the records at once, or just a few at a time? I am returning a few records at a time.

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
There are 10+ rows of data. Actually I should say there are over 100 rows of data returned and broken up into sets of 10 records each. (approx. 103 total records) alex hogan > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 09, 200

[PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
_seek(): Bad row offset in [snip] on line: x The line in question is the one above. Why does it work fine until it reaches 9? Why can't the offset go above 8? I searched google and came up with several of the top hits that had this very error on their pages. Very nice....

[PHP] Pagination & MSSQL

2004-03-09 Thread Alex Hogan
$bgcolor = "#FF"; } else{ $bgcolor = "#F2F7FF"; } echo "$name\n"; } Something wrong with my syntax? alex hogan P.S. OP is origin

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
My mistake. Good one on the spelling I can't believe I missed that one.... alex hogan > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 12:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables insid

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
ndensintion..., maybe I can return the favor sometime. alex hogan > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 11:49 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables inside a function > > On Tuesday 09 Ma

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
Don't you need to set a return? Return $blah; At the bottom of your function block. alex hogan > -Original Message- > From: Nathan Croker [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 07, 2004 6:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Variables inside

RE: [PHP] Re: php/mssql character limit?

2004-03-08 Thread Alex Hogan
Hi Ben, The setting in the php.ini is; mssql.textlimit = 4096 Reset that value to what you want. I have mine set to 400. Valid range 0 - 2147483647 alex hogan > -Original Message- > From: Ben Ramsey [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 10:30 AM >

RE: [PHP] Returning only a row count of 1?

2004-03-05 Thread Alex Hogan
Yep..., it's Friday brain has left the building.... alex hogan > -Original Message- > From: Richard Davey [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 1:46 PM > To: PHP General list > Subject: Re: [PHP] Returning only a row count of 1? > &g

RE: [PHP] Returning only a row count of 1?

2004-03-05 Thread Alex Hogan
Dohhh, Forget I asked alex hogan > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 1:43 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Returning only a row count of 1? > > On Saturday 06 March 2004 03

[PHP] Returning only a row count of 1?

2004-03-05 Thread Alex Hogan
lttotalcount); I only return a count of 1. Am I missing something? I checked the manual and archives and have come up empty. alex hogan ** The contents of this e-mail and any files transmitted with it are confi

RE: [PHP] Necesito una función

2004-03-05 Thread Alex Hogan
If I understand you correctly I think you can use, getenv() of get the IP address of the user. alex hogan > -Original Message- > From: :: n a s s a t :: Depto Tecnico [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 8:02 AM > To: php-ayuda > Subject: [PH

RE: [PHP] Re: Loop Oops....

2004-03-03 Thread Alex Hogan
> you can only concatenate string with scalars (actually only strings, but > php do some conversions...) > if $questions is an array, you cant do that, and if its a string, you > cant foreach it > didnt you mean *VALUES (1, '$question', 1)"; ? > > > maybe im

RE: [PHP] Re: Loop Oops....

2004-03-03 Thread Alex Hogan
Well that fixed the error from coming up, but now the values in the db are empty. I don't even get "Array". alex hogan > -Original Message- > From: Andre Cerqueira [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 03, 2004 9:34 AM > To: [EMAIL PROTECTED

[PHP] Loop Oops....

2004-03-03 Thread Alex Hogan
x27;, 1)"; $result = MSSQL_QUERY($insert_query) or die("Can not execute query $insert_query. "); The value in the db is either "Array" or part of the string but not the whole string. I know the error is creating most of the problem. I can't see what I'm do

[PHP] Survey code

2004-03-02 Thread Alex Hogan
I need to take some surveys that contain complicated question answer schemes. Does anyone know of a good survey script (preferable), or some good tutorials they can point me to? I would like to find something that is free;-> alex ho

RE: [PHP] Unexpected ";"

2004-02-19 Thread Alex Hogan
You also forgot to close your "if statement". while ... and ... { if (($pic_num + 1) <= $thumb_num) { $tab = ((($pics * $page) - 1) + $pic_num); } alex > -Original Message- > From: Paul Furman [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 11:33 AM > To: [EMAIL

RE: [PHP] Unexpected ";"

2004-02-19 Thread Alex Hogan
Did you close your loop? while ... and ... { if (($pic_num + 1) <= $thumb_num { $tab = ((($pics * $page) - 1) + $pic_num); } } alex ** The contents of this e-mail and any files transmitted with it are confidential

RE: [PHP] Nested Loops

2004-02-19 Thread Alex Hogan
tch_array($result)){ if ($pdate != $row[0]) { print "" . $row[0]"; $pdate = $row[0]; } print "" . $row[1] . ""; } Results; Date 1 Item one Item two Item three Date 2 Item four Item five Item six ... etc It produces the results that I was looking

RE: [PHP] Nested Loops

2004-02-18 Thread Alex Hogan
Using print_r($var) shows that the vars are returning the right values, and where they're supposed to. Right in between the error messages. Doh. alex ** The contents of this e-mail and any files transmitted with it are con

  1   2   >