[PHP] help with statement

2009-04-15 Thread Terion Miller
st Timeliness. Report Moderator Abuse Here: http://www.freecycle.org/faq/faq/contact-info Or Email Your Complaint to: f...@freecycle.org or i...@freecycle.org -------- Twitter? http://twitter.com/terionmiller Faceb

[PHP] Help on how to grab data from a page?

2009-04-10 Thread Terion Miller
g Free the List !! www.freecycle.org Over Moderation of Freecycle List Prevents Post Timeliness. Report Moderator Abuse Here: http://www.freecycle.org/faq/faq/contact-info Or Email Your Complaint to: f...@freecycle.org or i...@freecycle.org Twitter? http:

Re: [PHP] How can I echo a javascript var in an email subject line? Possible? (Yes!)RESOLVED

2009-04-10 Thread Terion Miller
Twitter? http://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/15420

Re: [PHP] How can I echo a javascript var in an email subject line? Possible?

2009-04-08 Thread Terion Miller
On Wed, Apr 8, 2009 at 12:50 PM, Michael A. Peters wrote: > Terion Miller wrote: > >> >> >>javascript is client side. >>php is server side. >>To use something client side in a server side script, the web page >>has to send it to the ser

Re: [PHP] How can I echo a javascript var in an email subject line? Possible?

2009-04-08 Thread Terion Miller
javascript is client side. > php is server side. > To use something client side in a server side script, the web page has to > send it to the server from the client. > > The best way to do what you want to do is probably to do the work count > server side, but if you really want to use what javascr

[PHP] How can I echo a javascript var in an email subject line? Possible?

2009-04-08 Thread Terion Miller
ycle.org Twitter? http://twitter.com/terionmiller ---- Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="Terion Miller's Facebook profile">

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
> > The chmod in the script just ensures that the file you uploaded is given > the correct permissions. Turn on all errors and warnings for the script > so you can see where the problem is. > > > Ash > www.ashleysheridan.co.uk > > Thanks everyone, I figured it out, it was the directory permissions

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan wrote: > On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: > > I have this script that is no longer working to upload files, it goes > thru > > the motions and says the file is uploaded but then there is NO file in > t

[PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
7;][$x], $uploadfile); chmod($uploadfile, 0666); } } } Thanks Terion Happy Freecycling Free the List !! www.freecycle.org Over Moderation of Freecycle List Prevents Post Timeliness. Report Moderator Abuse Here: http://www.freecycle.org/faq/faq/contact-i

[PHP] Syntax checker? Character replacing

2009-03-06 Thread Terion Miller
I have this and think maybe something is off, because if there is an amp (&) in the location then it only displays a comma , and nothing else: if (isset($_SERVER['QUERY_STRING'])) {$Page .= ($_SERVER['QUERY_STRING']? '?'. str_replace("&","&",$_SERVER['QUERY_STRING']) : '');} is that wrong?

[PHP] (SOLVEDV) Re: Problems with displaying results

2009-03-05 Thread Terion Miller
://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 a

Re: [PHP] Re: [PHP-DB] Re: Problems with displaying results

2009-03-05 Thread Terion Miller
On Tue, Mar 3, 2009 at 2:16 PM, Ashley Sheridan wrote: > On Tue, 2009-03-03 at 11:08 -0600, Terion Miller wrote: > > On Tue, Mar 3, 2009 at 10:32 AM, Shawn McKenzie >wrote: > > > > > Terion Miller wrote: > > > > I have two queries one pulls out wh

Re: [PHP] Whats the correct syntax for using query results in a new query

2009-03-03 Thread Terion Miller
On Tue, Mar 3, 2009 at 2:51 PM, Ashley Sheridan wrote: > On Tue, 2009-03-03 at 14:36 -0600, Terion Miller wrote: > > On Tue, Mar 3, 2009 at 2:20 PM, Ashley Sheridan < > a...@ashleysheridan.co.uk>wrote: > > > > > On Tue, 2009-03-03 at 14:09 -0600, Terion Miller

Re: [PHP] Whats the correct syntax for using query results in a new query

2009-03-03 Thread Terion Miller
On Tue, Mar 3, 2009 at 2:20 PM, Ashley Sheridan wrote: > On Tue, 2009-03-03 at 14:09 -0600, Terion Miller wrote: > > I'm trying to use the AdminID that returns from query #1 in the WHERE > > AdminID = AdminID from Query 1 > > > > $sql= "SELE

[PHP] Whats the correct syntax for using query results in a new query

2009-03-03 Thread Terion Miller
($i=0; $ihttp://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="Terion Miller's Facebook profile"> Joe DiMaggio - "Pair up in threes."

[PHP] Re: [PHP-DB] Re: Problems with displaying results

2009-03-03 Thread Terion Miller
On Tue, Mar 3, 2009 at 10:32 AM, Shawn McKenzie wrote: > Terion Miller wrote: > > I have two queries one pulls out which users to use and the second pulls > > those users orders > > Looks something like this but is only pulling the first record: > > > > &g

[PHP] Problems with displaying results

2009-03-03 Thread Terion Miller
nly half way as it only displays the first record in the table. Thanks Terion Happy Freecycling Free the List !! www.freecycle.org Over Moderation of Freecycle List Prevents Post Timeliness. Twitter? http://twitter.com/terionmiller

Re: [PHP] syntax

2009-02-25 Thread Terion Miller
> >> >> SELECT something FROM tbl_name >>-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col; >> >> Taking that and changing it so it works for you would result in the >> following. >> >> $query .= " WHERE DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= `stamp`"; >> >> Try that and let us know your

Re: [PHP] syntax

2009-02-24 Thread Terion Miller
> > Nobody has asked to confirm, but what format is `stamp`? > > Unix Timestamp, MySQL Timestamp, MySQL Date stamp??? > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V >by Willi

Re: [PHP] syntax

2009-02-24 Thread Terion Miller
> Has nothing at all to do with php. > > http://dev.mysql.com/doc/refman/5.0/en/datetime.html > http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html > > Yeah guess I posted to the wrong list should of been on the php-db list maybe but thanks for the suggestions Marc I'll be trying yo

[PHP] syntax

2009-02-24 Thread Terion Miller
r.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="Terion Miller's Facebook profile&

Re: [PHP] omg help...insane simple query won't work I must be blind (RESOLVED)

2009-02-24 Thread Terion Miller
Timeliness. Twitter? http://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>ht

[PHP] omg help...insane simple query won't work I must be blind

2009-02-24 Thread Terion Miller
r.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="T

Re: [PHP] Two troublesome fields (Resolved)

2009-02-23 Thread Terion Miller
iness. Twitter? http://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.91924796

Re: [PHP] Two troublesome fields

2009-02-19 Thread Terion Miller
://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="Terion Miller's Facebook profile"> Emo Philips - "I was the kid next door&#x

Re: [PHP] How should I ....--its a date/timestamp issue (RESOLVED)

2009-02-19 Thread Terion Miller
://www.facebook.com/people/Terion-Miller/1542024891"; title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 alt="Terion Miller's Facebook profile"> George Burns - "I would go out with women my a

[PHP] Two troublesome fields

2009-02-19 Thread Terion Miller
appy Freecycling Free the List !! www.freecycle.org Over Moderation of Freecycle List Prevents Post Timeliness. Twitter? http://twitter.com/terionmiller Facebook: http://www.facebook.com/people/Terion-Miller/1542024891"

Re: [PHP] How should I ....--its a date/timestamp issue

2009-02-18 Thread Terion Miller
> > > > What are your suggestions folks on how to go about setting a date on a > form > > > so that a user can not set a start date prior to the current days date? > > > I've been looking around php.net but is it a javascript thing in the > > > validation I should be dealing with, basically as it i

[PHP] How should I ....--its a date/timestamp issue

2009-02-17 Thread Terion Miller
What are your suggestions folks on how to go about setting a date on a form so that a user can not set a start date prior to the current days date? I've been looking around php.net but is it a javascript thing in the validation I should be dealing with, basically as it is I have a form and a user c

[PHP] going blind for looking...need eyes

2009-02-06 Thread Terion Miller
Need eyes on this query, it is not inserting, I am going to highlight what/where I thought the problem is (there is no " )but when I add the " it then changes the syntax coloring on the rest of the code in my editor which makes me wonder if I'm wrong... argh. and either way it's not inserting ...

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
Just use a session_start() before any output to the server, and the > sessions array will be available to your code. > > > Ash > www.ashleysheridan.co.uk > > Ah ha...and now I know why my O'reilly book Web Database Applications with PHP was so inexpensive... :) it's outdated...oops...

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > Edmund Hertle wrote: > >> 2009/2/1 Terion Miller >> >> This is how it was originally written: >>>>> if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != >>>>> &g

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Terion Miller
> > > Better yet, use a IDE the does code highlighting. This would point you to > the problem rather quickly. > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V >by William Shak

Re: [PHP] Blank page of hell..what to look for

2009-02-02 Thread Terion Miller
I just use error_reporting(E_ALL); that would include the E_NOTICE right? On Mon, Feb 2, 2009 at 11:27 AM, Richard Heyes wrote: > > I have errors on > > Including E_NOTICE ? > > -- > Richard Heyes > > HTML5 Graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.org (Updated January

[PHP] Blank page of hell..what to look for

2009-02-02 Thread Terion Miller
Is there a certain thing that should be suspected and looked at first when getting the php blank page of hell I have errors on and nothing is being output anywhere to lead me in the right direction, I have a VariableReveal script (one of you provide and THANK YOU IT HAS BEEN A LIFESAVER) But it

Re: [PHP] Re: More questions about SESSION use

2009-02-02 Thread Terion Miller
> Show the code where your session vars are written and I would prefer using > isset() instead of empty() if you want to check if this var is set or not. > > -eddy > Hi All, here is the index page where users login and the sessions are set: 0) { $_SESSION['AdminLogin'] = true; $_SES

Re: [PHP] Weird url passing what does it mean, am I hacked?

2009-02-01 Thread Terion Miller
On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan wrote: > On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: > > > > > > On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan > > wrote: > > > > On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:

[PHP] Weird url passing what does it mean, am I hacked?

2009-02-01 Thread Terion Miller
I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large

Re: [PHP] Re: More questions about SESSION use

2009-02-01 Thread Terion Miller
> > > > This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != true){ > > header ("Location: LogOut.php"); > > $_SESSION['user']=$UserName; > > $_SESSION['AdminID']=$AdminID; <--*I added this one originally the > > script only used '

[PHP] More questions about SESSION use

2009-01-31 Thread Terion Miller
So now I have SESSIONs set: user, AdminID, AdminLogin but I'm trying to use them without showing them in links...currently the pages only load if I make the links like this: Home I thought the whole purpose of having/using Sessions is to not have to pass variables in url's, but if I remove the s

Re: [PHP] Re: Session won't pick up one variable (SOLVED)

2009-01-31 Thread Terion Miller
thanks got it fixed: if (!empty($_POST['UserName']) && !empty($_POST['Password'])) { $UserName = $_POST['UserName']; $Password = $_POST['Password']; } *<---was missing a curly bracket..oi syntax* $msg = ''; if (!empty($UserName)) { $sql = "SELECT `AdminID`,`UserName` FROM `admin` WHE

Re: [PHP] Re: Session won't pick up one variable

2009-01-31 Thread Terion Miller
On Fri, Jan 30, 2009 at 5:44 PM, Shawn McKenzie wrote: > Terion Miller wrote: > > Well I changed it because it's not a post since its not coming from a > form > > is this closer? > > > > if (!empty($UserName)) { > > > > Why are you doing this? Only

[PHP] Re: Session won't pick up one variable

2009-01-30 Thread Terion Miller
); exit; } else { On Fri, Jan 30, 2009 at 4:20 PM, Terion Miller wrote: > Think I'm setting this in the wrong place...someone help ...where do I set > the AdminID session > > if (isset($_POST['UserName'])) {$UserName = $_POST['UserName'];} else

[PHP] Session won't pick up one variable

2009-01-30 Thread Terion Miller
Think I'm setting this in the wrong place...someone help ...where do I set the AdminID session if (isset($_POST['UserName'])) {$UserName = $_POST['UserName'];} else {$UserName = '';} if (isset($_POST['Password'])) {$Password = $_POST['Password'];} else {$Password = '';} $msg = ''; if (!empty($Us

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
uot;; It returns adminID = 7 (my number is 20) username= tmiller (this is correct) it's the only query I can get to return anything but it's the wrong adminID can someone explain what can be making that happen On Thu, Jan 29, 2009 at 2:48 PM, Shawn McKenzie wrote: > Terion Miller wro

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
Hi Again Here is the query and code I tried: $sql = "SELECT * FROM workorders WHERE AdminID = (SELECT AdminID FROM admin WHERE UserName = '" . mysql_real_escape_string($_SESSION['user']) . "')"; $result2 = mysql_query ($sql); $row2 = mysql_fetch_assoc ($result2); $printrow = p

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
Hi Guys! Well I tried the INNER JOIN and still can not get it to echo the AdminID so I know it isn't working, (what kind of things should I think about that could make it not work) so far the only query that did work and return the AdminID was my original I believe it was referred to as "hosed" qu

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Terion Miller
> > > Your post made perfect sense to me about the INNER JOIN , I looked it up >> but it is not returning the AdminID, maybe my syntax is wrong? >> >> $query = "SELECT admin.AdminID , workorders.AdminID >> FROM admin >> INNER JOIN >> workorders >> ON Admi

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Terion Miller
I'm not sure what you mean by trim the posts, please explain so I can spare folks from redundant text. Your post made perfect sense to me about the INNER JOIN , I looked it up but it is not returning the AdminID, maybe my syntax is wrong? $query = "SELECT admin.AdminID , workorders.AdminID

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Terion Miller
On Wed, Jan 28, 2009 at 4:12 PM, Terion Miller wrote: > > > On Wed, Jan 28, 2009 at 4:00 PM, Shawn McKenzie wrote: > >> Terion Miller wrote: >> > On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie > >wrote: >> > >> >> Shawn McKenzie wrote: >

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Terion Miller
On Wed, Jan 28, 2009 at 4:00 PM, Shawn McKenzie wrote: > Terion Miller wrote: > > On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie >wrote: > > > >> Shawn McKenzie wrote: > >>> Terion Miller wrote: > >>>> Well I'm stuck I have the AdminID

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Terion Miller
On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie wrote: > Shawn McKenzie wrote: > > Terion Miller wrote: > >> Well I'm stuck I have the AdminID but now I can't seem to use it to pull > >> workorders with that AdminID . I couldn't get your block to work

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Terion Miller
I just read it 3 times and I don't understand it. On Wed, Jan 28, 2009 at 3:22 PM, Christoph Boget wrote: > > Well I'm stuck I have the AdminID but now I can't seem to use it to pull > > workorders with that AdminID . I couldn't get your block to work Andrew > :( > > I think I'm just not using it

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Terion Miller
Wed, Jan 28, 2009 at 3:18 PM, Terion Miller > wrote: > > Not sure if I'm wording this right, what I am trying to do is look in two > > tables, match the ID to use to pull information > > > > Here's my code but it's not right, although it is picking up t

[PHP] Re: Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Terion Miller
Wow I got it !! Well I now have the AdminID variable to work with!! If I wasn't so tired and brain dead from marathoning this project because I'm so so So SICK of it, I would get up and do the happy dance On Wed, Jan 28, 2009 at 2:18 PM, Terion Miller wrote: > Not sure if I&#

[PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Terion Miller
Not sure if I'm wording this right, what I am trying to do is look in two tables, match the ID to use to pull information Here's my code but it's not right, although it is picking up the user from the session, I will also post what my variable debugging lists: $query = "SELECT admin.Admi

Re: [PHP] Re: Programming general question

2009-01-28 Thread Terion Miller
s > are mainly used in OOP programming, where they cooperate together. Good way > to learn OOP is to learn something about design patterns... > -- > > > "Terion Miller" píse v diskusním príspevku > news:37405f850901271518r21f5f73j44841e864de5c...@mail.gmail.com... >

[PHP] Programming general question

2009-01-27 Thread Terion Miller
I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several things together ( I know infantile coder language I use..but I'm a baby still in this) Can someone explain objects and arrays in pla

[PHP] Need Help resolving the "undefined variable" and "getting property of non-object" errors

2009-01-27 Thread Terion Miller
Hello All, I am having problems resolving errors with some images causing the Undefined variable and getting property of non-object errors, I am trying to make a copy function so that an order can be viewed then resubmitted as a new order with minimal changes if needed. Here's my code: --could it b

Re: [PHP] Re: Php and CSS where to put it

2009-01-12 Thread Terion Miller
Resolved! Thanks! On Mon, Jan 12, 2009 at 12:38 PM, Michelle Konzack < linux4miche...@tamay-dogan.net> wrote: > Hello Terion, > > Am 2009-01-12 10:42:10, schrieb Terion Miller: > > I have this code and the css seems to not work in IE at all, do I need to > > put it

[PHP] Php and CSS where to put it

2009-01-12 Thread Terion Miller
I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? xCount ORDER BY RAND() LIMIT 3"; $result = mysql_query($sql); echo " "; while ($row = mysql_fetch_array($result)) { echo " {$row['title']}{$row['blurb']} {$ro

[PHP] Re: can a session be used in a query?

2009-01-08 Thread Terion Miller
SOLVED: Thanks everyone I got it working it was the loop...took it out and now it works like a charm!! Is there a way to mark things solved? On Wed, Jan 7, 2009 at 1:46 PM, Terion Miller wrote: > I am still struggling with getting my sessions and logins to pull just the > allotted data tha

Re: [PHP] Re: can a session be used in a query?

2009-01-08 Thread Terion Miller
On Thu, Jan 8, 2009 at 8:21 AM, Terion Miller wrote: > > > On Wed, Jan 7, 2009 at 8:28 PM, Paul M Foster wrote: > >> On Wed, Jan 07, 2009 at 08:29:42PM -0500, Frank Stanovcak wrote: >> >> > because you so nicely didn't make fun of me...that much :) >>

Re: [PHP] Re: can a session be used in a query?

2009-01-08 Thread Terion Miller
On Wed, Jan 7, 2009 at 8:28 PM, Paul M Foster wrote: > On Wed, Jan 07, 2009 at 08:29:42PM -0500, Frank Stanovcak wrote: > > > because you so nicely didn't make fun of me...that much :) > > I keep it in it's own file and just use it as in include to probe where I > need to. > > > > --code foll

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
On Wed, Jan 7, 2009 at 4:13 PM, Terion Miller wrote: > > > On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak > wrote: > >> >> ""Terion Miller"" wrote in message >> news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... >>

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak wrote: > > ""Terion Miller"" wrote in message > news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... > > >> >$result=mysql_query($query) or die('Queryproblem: ' . my

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
; What I normally do is upload a blank php page with the same name as the one > I am working on, load it up, and then upload the page with all the code and > refresh. > > I never really looked into why this was, but it's not that big of a hassle > for me. *shrug* > > Fra

[PHP] can a session be used in a query?

2009-01-07 Thread Terion Miller
I am still struggling with getting my sessions and logins to pull just the allotted data that each user is allowed... I have the session working, and can echo it to see that .. what I'm having problems with is this : I want to pull the data specific to each user ..right... so far I either get all d

[PHP] Help with a Search Function

2008-12-23 Thread Terion Miller
Hey Everyone, been steaming right along for a couple days but now I'm stuck on writing a search function, could you all take a look at it and see what it could be, I will mark the line throwing the error in red, I did try just commenting out that line and searching for a record by OrderID that I kn

[PHP] still can't get a login with session working ... is there another way to mask the url parameter?

2008-12-18 Thread Terion Miller
Still this won't pass the session to the next page is there a way to pass parameters in the url but mask them? maybe that would be easier, since I do have code that works passing the adminID on the url ... can a parameter be hashed after the fact? I tried echo-ing the fields on the next page a

[PHP] error flashing on redirect

2008-12-17 Thread Terion Miller
I am working on the login script I have been troubling over, and when I hit submit it throws an error and even though I have error reporting E_All on because its on a redirect or something I can see the error for only a split second so I can't catch it to figure it out (does this make sense?) how w

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore wrote: > Terion Miller wrote: > >> I am working from home today and getting this error with my copy of my >> project: >> *Warning*: Cannot modify header information - headers already sent by >> (output started at >&

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:37 AM, Jim Lucas wrote: > Jay Moore wrote: > > Terion Miller wrote: > >> I am working from home today and getting this error with my copy of my > >> project: > >> *Warning*: Cannot modify header information - headers already se

[PHP] header modify errors

2008-12-15 Thread Terion Miller
I am working from home today and getting this error with my copy of my project: *Warning*: Cannot modify header information - headers already sent by (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31) in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* o

Re: [PHP] Resource ID# 5 and Resource id #5 8561 errors....help

2008-12-12 Thread Terion Miller
On Fri, Dec 12, 2008 at 5:08 PM, Daniel P. Brown wrote: > On Fri, Dec 12, 2008 at 18:03, Terion Miller > wrote: > > > > Well I did some changes and I must be learning because although I have > the > > same error I don't have new ones... > > so now the code i

Re: [PHP] Resource ID# 5 and Resource id #5 8561 errors....help

2008-12-12 Thread Terion Miller
On Fri, Dec 12, 2008 at 4:52 PM, Terion Miller wrote: > > > On Fri, Dec 12, 2008 at 4:02 PM, Daniel P. Brown < > daniel.br...@parasane.net> wrote: > >> On Fri, Dec 12, 2008 at 16:54, Terion Miller >> wrote: >> > >> > $query = "SELECT *

Re: [PHP] Resource ID# 5 and Resource id #5 8561 errors....help

2008-12-12 Thread Terion Miller
On Fri, Dec 12, 2008 at 4:02 PM, Daniel P. Brown wrote: > On Fri, Dec 12, 2008 at 16:54, Terion Miller > wrote: > > > > $query = "SELECT * FROM importimages WHERE Category='Obits' "; > > $result = mysql_query ($query); > > > > $arr = my

[PHP] Resource ID# 5 and Resource id #5 8561 errors....help

2008-12-12 Thread Terion Miller
Hey there, okay I ran into these and need some tips, pointers etc... First I was getting the Resource ID#5 error with this query: $query="SELECT * FROM importimages WHERE Category='Obits'"; $result = mysql_query($query); so then I read how mysql_query returns a resource, so I tried this: $query

Re: [PHP] Re: Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-12 Thread Terion Miller
On Thu, Dec 11, 2008 at 4:25 PM, Colin Guthrie wrote: > 'Twas brillig, and Terion Miller at 11/12/08 14:56 did gyre and gimble: > >> Hey Everyone, I am wondering if using a framework such as one of these may >> make my life easier, which do any of you use and what has

Re: [PHP] Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-11 Thread Terion Miller
On Thu, Dec 11, 2008 at 9:22 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: > > > On Thu, Dec 11, 2008 at 10:15 AM, Eric Butera <[EMAIL PROTECTED]>wrote: > >> On Thu, Dec 11, 2008 at 9:56 AM, Terion Miller <[EMAIL PROTECTED]> >> wrote: >> > Hey Ev

[PHP] Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-11 Thread Terion Miller
Hey Everyone, I am wondering if using a framework such as one of these may make my life easier, which do any of you use and what has been your experience with the learning curve of them? I just put Cake on my local server, basically I want to know which is easiest? LOL... Terion

[PHP] how to not show login info in the url ...what am I looking for?

2008-12-09 Thread Terion Miller
So I have this login information passing parameters in the url to the next page (this is on a intranet app) which I thought was no big deal until a wise crack graphics guy decided to hack it because he could by changing the ?adminID= until he got one that worked...he didn't do anything except aler

Re: [PHP] SQL syntax?

2008-12-05 Thread Terion Miller
te "; > $sql.= "FROM workorderform "; > $sql .= " WHERE WorkOrderID = WorkOrderID ORDER BY StartDate DESC"; > > > I just removed extra commas from CPM_Rate and workorderform > > > Terion Miller wrote: > > ah...I also though it was because

Re: [PHP] SQL syntax?

2008-12-05 Thread Terion Miller
uot;; $sql .= " WHERE WorkOrderID = WorkOrderID ORDER BY StartDate DESC"; On Fri, Dec 5, 2008 at 4:14 PM, Allan Arguelles <[EMAIL PROTECTED]>wrote: > Umm.. I meant you need to put > > $sql .= "FROM workorderform "; > > between these: > > $sql .= &q

Re: [PHP] SQL syntax?

2008-12-05 Thread Terion Miller
On Fri, Dec 5, 2008 at 3:57 PM, Allan Arguelles <[EMAIL PROTECTED]>wrote: > > > > > $sql = "SELECT WorkOrderID AS Work_Order_ID, DATE_FORMAT(StartDate, > '%b. > > %e, %Y %l:%i %p') AS Start_Date, > > DATE_FORMAT(EndDate, '%b. %e, %Y %l:%i %p') AS End_Date, "; > > $sql .= "Advertiser AS

[PHP] SQL syntax?

2008-12-05 Thread Terion Miller
Hi I am having problems (yep me again) with my sql, I have looked and tried different things (ASC, DESC, etc) but it same error: Here is the error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY StartD

[PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-05 Thread Terion Miller
I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to do with it What does everyone prefer? Terion who is ac

Re: [PHP] Will not report errors what can I do

2008-12-05 Thread Terion Miller
On Fri, Dec 5, 2008 at 12:08 PM, Robert Cummings <[EMAIL PROTECTED]>wrote: > On Fri, 2008-12-05 at 10:40 -0500, tedd wrote: > > At 3:19 PM + 12/5/08, [EMAIL PROTECTED] wrote: > > > > $result = mysql_query($query) or die(report($query,__LINE__ > ,__FILE__)); > > >> > > >> //==

[PHP] Will not report errors what can I do

2008-12-04 Thread Terion Miller
Hey everyone I am still fighting the same problem that my script isn't working and its not reporting errors, when you click to "view" the work order it doesn't do anything, I have all kinds of error reporting turned on but nothing, do I have them syntax wrong? 'OK' ){ header ("Location: LogOu

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
On Mon, Dec 1, 2008 at 4:20 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Mon, 2008-12-01 at 15:53 -0600, Terion Miller wrote: > > On Mon, Dec 1, 2008 at 3:40 PM, Wolf <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > -Original Me

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
On Mon, Dec 1, 2008 at 3:40 PM, Wolf <[EMAIL PROTECTED]> wrote: > > > -Original Message- > From: Terion Miller <[EMAIL PROTECTED]> > Sent: Monday, December 01, 2008 4:23 PM > To: Micah Gersten <[EMAIL PROTECTED]> > Cc: PHP General > Subject: R

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Terion Miller wrote: > > could a corrupt db make php pages stop functioning? > > My pages no longer go anywhere, I went back found the original scripts > and > > still it didn't fix th

[PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts and still it didn't fix the problem (thought I had messed the code up) so it has to be something external of the code its doing this locally on my box and on the live server.

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
[EMAIL PROTECTED]> wrote: > > Terion Miller <[EMAIL PROTECTED]> wrote: > > Can anyone help explain what I need to do to fix this: > > > > Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid > > MySQL result resource in * > >

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
ns of php already in place, so please save all the snarky comments about how stupid I am, I don't need them, lists are supposed to be helpful not hurtful. On Mon, Nov 24, 2008 at 11:32 AM, Wolf <[EMAIL PROTECTED]> wrote: > > Terion Miller <[EMAIL PROTECTED]> wrote: >

[PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*: mysql_num_rows(): supplied argument is not a valid MySQL result

Re: [PHP] Invalid Arguements

2008-11-20 Thread Terion Miller
120x240 940x30 - Pencil Ad but your saying it should be On Wed, Nov 19, 2008 at 8:14 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Terion Miller wrote: > >> Actually it did at one point have ban

Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
ed, Nov 19, 2008 at 1:59 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Ashley Sheridan wrote: > >> On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote: >> >>> I am still getting the Invalid arguement error on this implode: >>> >>> if (isse

Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
the var_dump as suggested I get: *Parse error*: syntax error, unexpected '<' in * C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136* On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > Taking this back on-list... > > > From:

[PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
I am still getting the Invalid arguement error on this implode: if (isset($_POST['BannerSize'])){$BannerSize = implode(',',$_POST['BannerSize']);} else {$BannerSize = "";} I have moved the ',', from the beginning to the end of the statement and nothing works is there any other way to do this, bas

  1   2   >