I am having a problem with reseting my query results. I want to take
$results and have it spit it out line by line - but twice. I have found that
after the first time through, it just spits out 15 (in this case) more blank
lines.
Any help? (My code is below)
Th
I have a quirky problem that should be a breeze for someone who is smarter
than I.
I have a script where I am registering a HTML form post variable as a
session variable and then echo it. In the real script I use it in a MySQL
query, but for the sake of this post, here is the "script":
$user1 = $
I am having a bit of a problem with pathinfo. I am looking for a way to
generate a URL from within an included class that would return the URL for
the script that called the class. Pathinfo returns the class file. Is there
a way to get what I need?
Thanks in advanced,
Jed R. Brubaker
--
PHP
/public_html/pic/picture.php on line 12
Isn't imagecreatfrompng() a built in function? Anyone run across something
like this or a suggestion?
Thanks for the help!
Jed R. Brubaker
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ext is always black.
Something strange: If I just type in a randomly selected color, it works!
Is there some reason that the values in my variables wouldn't be passing?
Thanks in advance,
Jed R. Brubaker
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You know, I am not sure if this will help, but I have a problem very similar
to this in my debugger.
When I run a script check through my WIN32 PHP module, I get errors related
to imagecreate() functions. In a current project I use imagecreatefromjpeg()
functions and get the same problems.
Fortuna
I think phpMyAdmin has a "Inset Data From Text File" function that can work
with delimited text output.
Check it out: http://www.phpmyadmin.net/
"J Morton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all --
>
> Summary: Using PHP, need to go from ACCESS -> MySQL. (Millions o
Worked perfectly - thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, total newbie when it comes to arrays, and I could really use some
help. I sure this will be an easy one for you veterans out there.
Here is the array ($code):
array(2) {
["total"]=>
int(1)
["assign"]=>
array(1) {
[1]=>
array(3) {
["type"]=>
string(10) "Transcript"
g?
Thanks.
"Rob Adams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Okay, total newbie when it comes to arrays, and I could really use some
>
rked beautifully. Thanks to all of you who got me going in the
right direction.
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Okay, total newbie when it comes to arrays, and I could really use some
> help. I sure this will be an easy one for
Hi! I am trying to loop through two different database calls with two for
statements, one embedded in the other.
for ($i; $i < $codeset_rows; $i++)
{
$codeset_row = $this->database->fetch_array($codeset_query);
$codesys_query = $this->database->query("select
Well duh. Thanks so much!
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> See changes below.
>
> Cheers,
> Rob.
>
> On Sat, 2003-10-18 at 14:57, Jed R. Brubaker wrote:
> > Hi! I am trying to loop through two different databas
Is there a way to preserve URL variables and have a link simply add a new
variable to the end?
I am tabulating data and I have URL variables defining which dataset to view
and in what way to view it. I would now like to set the SQL statement up
with a limit and add some "Previous", "Next" commands
Thanks!
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote:
> > Is there a way to preserve URL variables and have a link simply add
> > a new variable to the end?
>
>
Hey - this one should be simple.
I am parsing some data and have $_GET variables in the URL stipulating on
which record to start and how many records to display (these then get basses
to the limit command in my database query).
So here is the catch. I am trying to make a page navigation menu (we
I have just tacked a varible on to the end of the string, but I
don't want to be redundant.
Thanks again.
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote:
> > I am tr
I was hoping that some of you would be able to give me some advice.
I have started creating a web application that makes heavy use of URL GET
variables in order to solve a problem that I have had with POST in the
past - namely, having to refresh the document and repost the variables when
you use
Does PHP have an equivalent to PERL's chop - that is, a way to get rid of
the last character in a string?
"Hello World" to "Hello Worl"
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one should be simple.
I am wondering if there is a simple way in which to stop the processing of a
file.
The current example is a program that checks to see if the user is logged
in. In the past I have done something like this:
if ($loggedIn != true) {
echo "You are not logged in.";
}
e
Found it!
Just use exit();
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This one should be simple.
>
> I am wondering if there is a simple way in which to stop the processing of
a
> file.
>
> The current example is a program
Hey all! Glad you are here.
I have a question that is confusing me a bit. I am trying to output a string
that is pulled from a database that I don't have control over.
Everything is great, except that the string needs to be all on one line with
no line breaks (for Javascript's sake). Is there a f
Hi all! I have a quite a brain puzzler here that I would love to hear some
people's feedback on.
I have inherited a PHP system that is definately on the strange side. I am
stuck with the situation of either adding to the beast, or simply
reprogramming the entire site.
The one technique that I hav
Hi all. As the subject suggests, I am using PHP4 and am having something
going on that I don't think should be.
Presume the following code
class Foo {
function Foo () {
return "Bar";
}
}
$foo = new Foo;
echo $foo;
$foo comes out as an object. Does this have to be done in two line
Hello all. I am looking to create script will detect the page from which the
user just came so that after they do something on the current page (login)
it will send them back to the page they wanted. I was thinking about
$_SERVER['HTTP_REFERER'], but php.net says:
'HTTP_REFERER'
The address of th
Thank you all for the great feedback.
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all. I am looking to create script will detect the page from which
the
> user just came so that after they do something on the current page (login)
&g
Hi all! I could use some perspective on a project that I am currently
working on.
I am trying to utilize OO to make my PHP easier, but I keep running into
problems that revolve around the stateless nature of the web.
Consider the following: I have a login class that is instantiated at the top
of
t; <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> put something in your script like
>
> if($_SESSION['authed'] == true)
> $user = new User($_SESSION['userId']);
>
>
> or something similar.
>
> Jason
>
>
> "Jed R. Brubaker&
Is there anything that says I can't instantiate the login class into the
$_SESSION ? Pros, cons?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't know - is it?
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > -Original Message-
> > > The real reason for having the login class like this is to eliminate
> > > database calls. I thought I could have one session variable that said
yo
> > > uwere logged
Hi all!
I am trying to do something really simple, but my error is outside of my
expertise (hopefully not for long!).
Code:
-
$this->lVertical = "images/box/".$template."_lVertical.gif";
$borderWidth = imagesx($this->lVertical);
Apologies. I need to be using getimagesize(). I thought it was only for file
sizes.
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi all
Quick question here. Has anyone run into trouble with a variable reference
to a class object?
Here is the code:
$_SESSION['database'] = new Database;
$this->db = &$_SESSION['database'];
Everything goes screwy after a call like this.
Thanks in advance!
--
PHP General Mailing List (http://www.
As far as I can tell there is not an easy way yet to create packages in
PHP5.
It seems the following is the best option:
include('classes/help/Search.inc');
// Inside Search.inc and in the same "package"
include('OtherClass.inc');
include('AnotherClass.inc');
Is there a better way?
Thanks!
-
Oh - and naming conventions.
Do you define the class?:
class help.Search {
}
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> As far as I can tell there is not an easy way yet to create packages in
> PHP5.
>
> It seems the following i
:
--
Do you define the class?:
class help.Search {
}
--
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Out of curiosity, how would you prefer it?
>
> the way you mentioend is basically how i do though.
>
Alex,
You suggestion about the config file is interesting, but while I go and
re-read your post, I am wondering how you would avoid class name conflicts.
Point and case, the only reason I am going after packages is because I have
a search class that is used for something else, and I want to not
Hi all!
I am creating a function that will remove punctuation from a string,
however, I am wondering if PHP has a function somewhere that will do the
same.
Right now my approach is to cycle through an array of punctuation and remove
the items.
Anything already exist?
Thanks!
--
PHP Genera
Hi all.
I was wondering if any of you have experience with searching through a
database for user provided search terms.
I was hoping that maybe I could get some insight into how to better approach
what I am doing. Are there any great articles or example classes that I
could look at? Please let me
Hi all.
I was wondering if any of you have experience with searching through a
database for user provided search terms.
I was hoping that maybe I could get some insight into how to better approach
what I am doing. Are there any great articles or example classes that I
could look at? Please let me
Hi all.
I was wondering if any of you have experience with searching through a
database for user provided search terms.
I was hoping that maybe I could get some insight into how to better approach
what I am doing. Are there any great articles or example classes that I
could look at? Please let
I am thinking like JavaBeans. Here is what I have going on:
I have a series of rather database intensive queries that I would like some
class to cache and provide access for page loads. I don't care how the
information is stored, but I am trying to minimize the database call down to
only once a
I have been having all kinds of problems with the mail() function in PHP. I
realize that there are problems inheritly, but I think I am still trying to
track down the problem.
My latest theory is that PHP isn't set up to work with the right mailing
program. I know that our system is supposed to
So as I am not an administrator, and all I have to go on is phpinfo (unless
anyone has some suggestions), should I be seeing some trace of qmail in the
phpinfo?
That is why I posted. I apologize if I didn't make it clear. I have read all
about mail, and even used the fantastic Lemos MIME proble
Can this be done when the file already exists?
cleong at organic dot com says
29-Mar-2000 04:36
rename() doesn't seem to overwrite files on NT. The behavior is an
OS-dependent side-effect I guess.
on the PHP site @ http://us2.php.net/manual/en/function.rename.php
So this this true, or is there
Hi all - I am looking at using a dbm-style cache system and was wondering if
anyone has any recommendations from the plethora of systems listed here:
http://us2.php.net/manual/en/ref.dba.php
Is there a favorite?
I know if probably depends on what I want to do, so in short, I am looking
to create
But wouldn't that mean that the email that is being sent to my client would
be blank as well?
"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> On 09/27/2004 12:27 PM, Jed R. Brubaker wrote:
>> I have run into a pro
Hi all -
I could use a lead on a problem. I just don't know where to start.
I have a PHP script that populates a database table. No big deal. It creates
mailing labels. However, a weird things keeps happening - every once in a
while, a query is run twice. It is the same query, same information,
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all -
>
> I could use a lead on a problem. I just don't know where to start.
>
> I have a PHP script that populates a database table. No big deal. It
> creates mailing lab
Hey all -
I was hoping that I could get some advice! I am setting up a site that will
be quazi-portal-ish in nature. As such, a lot of different people in a lot
of different departments will be making contributions and editing parts of
the site.
I have never done something like this before, but I
Hello all - this problem is so wierd that I don't even know where to start.
Hopefully you all can give me a couple leads.
I have some reporting systems going on in various places on the server -
mail() is called when a user does this or that. These scripts are farily
simple, so I am next to cer
Hello all,
As I am trying to take my PHP code in a more enterprise direction with
strict model/logic/view layers, I have been working with DAOs and the
matching VOs.
So I am running into a problem that I could really use some direction on:
DAO/VO works great with single tables, but I tend to m
52 matches
Mail list logo