[PHP] help with statement

2009-04-15 Thread Terion Miller
...@freecycle.org Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= 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: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge

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

2009-04-10 Thread Terion Miller
Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt

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

2009-04-08 Thread Terion Miller
Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt=Terion Miller's Facebook profile/a

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 javascript

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 mpet...@mac.com 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 server from the client. The best way

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

2009-03-30 Thread Terion Miller
Your Complaint to: f...@freecycle.org or i...@freecycle.org Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's

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 a...@ashleysheridan.co.ukwrote: 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

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 ...now

[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(,amp;,$_SERVER['QUERY_STRING']) : '');} is that wrong?

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 a...@ashleysheridan.co.ukwrote: On Tue, 2009-03-03 at 11:08 -0600, Terion Miller wrote: On Tue, Mar 3, 2009 at 10:32 AM, Shawn McKenzie nos...@mckenzies.net wrote: Terion Miller wrote: I have two queries one pulls out which users

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

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

[PHP] Problems with displaying results

2009-03-03 Thread Terion Miller
. Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png

[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 nos...@mckenzies.netwrote: 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: $query = SELECT

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

2009-03-03 Thread Terion Miller
. Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0

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 a...@ashleysheridan.co.ukwrote: 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= SELECT WorkOrderID, CreatedDate

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 a...@ashleysheridan.co.ukwrote: 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.ukwrote: On Tue, 2009-03-03 at 14:09 -0600, Terion Miller wrote: I'm trying

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 results. */for the

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

2009-02-24 Thread Terion Miller
Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt=Terion Miller's Facebook profile/a Laurence J. Peter - If two

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: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http

[PHP] syntax

2009-02-24 Thread Terion Miller
Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt=Terion Miller's Facebook profile/a Vince Lombardi - Winning is habit

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 yours

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 William Shakespeare

Re: [PHP] Two troublesome fields (Resolved)

2009-02-23 Thread Terion Miller
. Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt

[PHP] Two troublesome fields

2009-02-19 Thread Terion Miller
of Freecycle List Prevents Post Timeliness. Twitter? http://twitter.com/terionmiller Facebook: a href=http://www.facebook.com/people/Terion-Miller/1542024891; title=Terion Miller's Facebook profile target

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=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt=Terion Miller's Facebook profile/a George Burns - I would go out with women my age, but there are no women my age. On Wed

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=_TOPimg src= http://badge.facebook.com/badge/1542024891.237.919247960.png; border=0 alt=Terion Miller's Facebook profile/a Emo Philips - I was the kid next door's imaginary friend. On Thu, Feb 19, 2009 at 2:31

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 is I have a

[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

[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] 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 Shakespeare

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

2009-02-05 Thread Terion Miller
On Mon, Feb 2, 2009 at 4:18 PM, Chris dmag...@gmail.com wrote: Edmund Hertle wrote: 2009/2/1 Terion Miller webdev.ter...@gmail.com This is how it was originally written: if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != true){ header (Location: LogOut.php

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-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: ?php //start session session_start(); //db connection include

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 rich...@php.net wrote: I have errors on Including E_NOTICE ? -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated

[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

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 'user' and

[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] 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 a...@ashleysheridan.co.ukwrote: On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote

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 nos...@mckenzies.netwrote: 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 to see if 0 rows are returned? You can

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` WHERE

[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: a href=Welcome.php?AdminID=?php echo $_SESSION['AdminID']; ? target=mainFrameHome/a I thought the whole purpose of

[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

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

2009-01-30 Thread Terion Miller
; $_SESSION['user']=$UserName; $_SESSION['AdminID']=$AdminID; header ('Location: Main.php'); exit; } else { On Fri, Jan 30, 2009 at 4:20 PM, Terion Miller webdev.ter...@gmail.comwrote: Think I'm setting this in the wrong place...someone help ...where do I set

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

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 =

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

2009-01-29 Thread Terion Miller
) 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 nos...@mckenzies.netwrote: Terion Miller wrote: Hi Again Here is the query

Re: [PHP] Re: Programming general question

2009-01-28 Thread Terion Miller
together. Good way to learn OOP is to learn something about design patterns... -- Terion Miller webdev.ter...@gmail.com píse v diskusním príspevku news:37405f850901271518r21f5f73j44841e864de5c...@mail.gmail.com... I googled this and didn't find an answer my question is how do you know when

[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

[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 webdev.ter...@gmail.comwrote: Not sure

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

2009-01-28 Thread Terion Miller
, Jan 28, 2009 at 3:18 PM, Terion Miller webdev.ter...@gmail.com 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 the user from the session, I

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 christoph.bo...@gmail.comwrote: 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

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 nos...@mckenzies.netwrote: 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 Andrew :( I think I'm just

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 nos...@mckenzies.netwrote: Terion Miller wrote: On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie nos...@mckenzies.net wrote: Shawn McKenzie wrote: Terion Miller wrote: Well I'm stuck I have the AdminID but now I can't seem to use

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 webdev.ter...@gmail.comwrote: On Wed, Jan 28, 2009 at 4:00 PM, Shawn McKenzie nos...@mckenzies.netwrote: Terion Miller wrote: On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie nos...@mckenzies.net wrote: Shawn McKenzie wrote: Terion

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
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 AdminID(admin,

[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

[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

[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? link rel=stylesheet type=text/css href=inc/styles.css ?php include 'inc/dbconnOpen.php' ; ini_set('error_reporting', E_ALL); ini_set('display_errors', true); $sql = SELECT *

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 somewhere different on the page maybe

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 pa...@quillandmouse.comwrote: 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.

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 webdev.ter...@gmail.comwrote: On Wed, Jan 7, 2009 at 8:28 PM, Paul M Foster pa...@quillandmouse.comwrote: 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

[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 webdev.ter...@gmail.comwrote: I am still struggling with getting my sessions and logins to pull just

[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

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

2009-01-07 Thread Terion Miller
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* Frank Terion Miller webdev.ter...@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 blindspot...@comcast.netwrote: Terion Miller webdev.ter...@gmail.com wrote in message news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... $result=mysql_query($query) or die('Queryproblem: ' . mysql_error() . 'br

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 webdev.ter...@gmail.comwrote: On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak blindspot...@comcast.netwrote: Terion Miller webdev.ter...@gmail.com wrote in message news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com

[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

[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

[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

[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*

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:37 AM, Jim Lucas li...@cmsws.com 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 sent by (output started at C:\Inetpub

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore jaymo...@accu-com.com 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 C:\Inetpub\Xampp\htdocs

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 gm...@colin.guthr.ie 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 been your

[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] 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 daniel.br...@parasane.netwrote: On Fri, Dec 12, 2008 at 16:54, Terion Miller webdev.ter...@gmail.com wrote: $query = SELECT * FROM importimages WHERE Category='Obits' ; $result = mysql_query ($query); $arr = mysql_fetch_row($result

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 webdev.ter...@gmail.comwrote: 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 webdev.ter...@gmail.com wrote: $query = SELECT * FROM importimages WHERE Category

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 daniel.br...@parasane.netwrote: On Fri, Dec 12, 2008 at 18:03, Terion Miller webdev.ter...@gmail.com 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

[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

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 Everyone, I am wondering if using a framework such as one of these may

[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

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__)); // to show dB

[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

[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

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

Re: [PHP] SQL syntax?

2008-12-05 Thread Terion Miller
, 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 .= AdSize AS Ad_Size, CPM AS CPM_Rate, ; $sql .= ORDER BY StartDate DESC; :) Terion Miller wrote: On Fri, Dec 5, 2008 at 3:57 PM, Allan

Re: [PHP] SQL syntax?

2008-12-05 Thread Terion Miller
BY StartDate DESC; I just removed extra commas from CPM_Rate and workorderform Terion Miller wrote: ah...I also though it was because I didn't have a statement like where adsize = adsize or something but I tried that and got the same error I have been getting ... You have an error in your SQL

[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? ?php include(inc/dbconn_open.php);

[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] 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 the problem (thought I had messed the code up) so

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 php-general@lists.php.net Subject: Re: [PHP] question about corrupt db

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 Message- From: Terion Miller [EMAIL PROTECTED] Sent: Monday, December

[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] Help with understanding an error

2008-11-24 Thread Terion Miller
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: Can anyone help explain what I need to do to fix

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
window.close(); /script ?php exit(); } ? On Mon, Nov 24, 2008 at 11:32 AM, Wolf [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

Re: [PHP] Invalid Arguements

2008-11-20 Thread Terion Miller
/select but your saying it should be select name=BannerSize[] On Wed, Nov 19, 2008 at 8:14 PM, Jim Lucas [EMAIL PROTECTED] wrote: Terion Miller wrote: Actually it did at one point have bannersize[#] # being the numbers 1-however many were there I've since gotten rid

[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,

Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
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: Terion Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday

Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
, 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 (isset($_POST['BannerSize'])){$BannerSize = implode(',',$_POST['BannerSize']);} else

  1   2   >