Greetings All,
What I want to do is create a tab-delimited text file for download from
records in a database.
I am not sure on how to do this.
So what I want to do is as follows.
ON a page a button is clicked.
Script is activated that pulls records from a database.
From these records a
.
However I have not done the part about actually creating a new file in the
text format make sure the results are tab-delimited and then make it
available for download.
Can you help me with that part specifically?
Thanks
Phillip
-Original Message-
From: Phillip S. Baker [mailto
This is not a big thing.
But I am looking at this thinking there is a way to make the code take up
even less lines.
Just want to stick this in my cap for future reference.
for($i=01;$i=50;$i++) {
if (!empty($content)) {
if ($row[$content]==$states[$i])
At 06:05 AM 2/18/2002 Monday, Frank Miller wrote:
Next I say if ($num == 0)
{
echo There are no events scheduled today!;
}
else
{
echo blah, blah, blah;
}
Try this
if (empty($num))
echo Nothing today!;
else
echo blah, blah, blah;
I believe in PHP if a
Okay Gents and Ladies,
I am looking for more information on how best to do this.
I have a MyQSL back end.
It houses a users user_name and password.
I have a secure area of the site that I only want members to view.
The way I have it now is that the user logs in.
If user_name and password
Greetings all,
I am looking for a good tutorial on the net about sessions.
I have found a few but they do not seem to go in much detail about full use.
Can anyone suggest anything?
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hey Gents and Ladies,
I read that sessions can be set to timeout after a certain period of time.
However I have not come across anything that tells me how to do that.
So how do I specify when sessions are to timeout?
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
At 03:21 PM 2/19/2002 Tuesday, Johnson, Kirk wrote:
See session.gc_maxlifetime in php.ini.
Kirk
I assume that the value given is in seconds.
Correct??
Thank you for the response.
Phillip
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
Is there an easy way to pull all the variables after the URL?
Let use say that the page I am looking at is this.
www.somewhere.com/pages.php?id=27color=redbgcolor=green
Now on the page I want a link to have the 3 variables from above.
I know I can do this.
a href=another_page.php?id=?php echo
phpinfo(); is your friend. Insert into a PHP script which has a query
string (the part of the URL after the ?) and look at the environment
variables available and listed in the output generated by phpinfo(). The
variable you're looking for is $QUERY_STRING, but you really should get
familiar
Hey All,
I just converted my login process to sessions.
It works great.
However I am having one annoying issue come up.
The site is a secure site. So each page has an include to check to see if a
validated session is there. If not a login forma appears and so on.
It all works just fine.
Hey All,
Last night I was doing some coding.
I am not sure what happened but has anyone run into this error before.
Method Not Allowed
The requested method POST is not allowed for the URL /index.html.
Apache/1.3.19 Server at nocal.mkp.org Port 80
More data about this.
This ONLY appears with
What is the quick way to generate numbered arrays?
I cannot seem to find it in my documentation.
Looking to generate and populate an array with the numbers 0-23.
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey All,
I want PHP to print out the value of a number in a variable as something
like 01
However whenever I try to I only get 1
Is there a way around this?
Phillip
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
Greetings Folks,
Is there a PHP application out there that handles admin functions to
majardomo email lists?
If so where can I get something like that?
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What exactly are you trying to accomplish here?
In my script I have a login form.
On the valdation script all my session vars are registered.
I run a script to check to see if the username and password are auth.
If they are I then run some scripts to set the values of the various
session
A few things here.
Is this the full code you are using?
First thing however is that you have to specifically assign values for a
session variable.
It is simply not enough to register the session variable.
So if you
session_register(login_username);
And echo $login_username it will print
Greetings Folks,
Is there a PHP application out there that handles admin functions to
majardomo email lists?
If so where can I get something like that?
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am not sure I can articulate this well.
But I will try.
I want to combine either two variables or a variable and string to bring up
the name of a previous variable name to display the data from the first.
So in the first part I will have a listing that will look like
type=radio name=state_1
Is there a way to seed the mt_rand function with numbers and letters to
generate a good password of say 6-10 characters?
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay I have the following code so far.
$sql = SELECT stass_warrior FROM staff_assignments WHERE
stass_pos = $pos_id AND stass_weekend = $initiation;
if (!$query = mysql_query($sql))error(mysql_error());
$query = mysql_fetch_row($query);
$sql = SELECT
At 10:33 PM 4/11/2002 Thursday, Phieu Huynh wrote:
I also try the following code and still have the same problem.
I am runing php4.0.?, solaris(linux)
$dir_name = /export/home/phuynh/php/main/student/upload/;
$dir = opendir($dir_name);
while (false !== ($file_names = readdir($dir))) {
Greetings All,
Here is the problem I am trying to solve, I know it can be done but I am
not clear on how to do it.
I am generating an appointment application.
And I want to dynamically populate pulldown menus from values in a DB.
So if a person picks a day for an appointment in a pulldown
is client-side.
If you need any code let me know.
Good luck!
-Natalie
Yes I knew it was Javascript code, but I also thought PHP was needed to get
the values from the DB.
Either case I do need help with what the code might look like.
Phillip
-Original Message-
From: Phillip S. Baker
Okay here is what I want to do.
Select the field of a database that I want.
Hit submit.
Execute a query of a database based on the said form.
Gather all the data and rows and plug them into an excel generated file.
Display a dialogue box asking the user the save the file.
The saved file being an
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote:
Shouldn't it be:
$result = mysql_query($sql, $link_id);
Actually mysql_query should default to the last database connection opened
if no link identifier has been specified.
So the link identifier to not absolutely required.
Phillip
--
Greetings Gents,
I have an interesting problem I would like some ideas on for a solution.
I cannot seem to find any code examples on the net, though I might not
be looking in the right place really.
I have some articles stored in a MySQL DB.
What I want is if the article is above a certain
James Nunnerley wrote:
Is there anyway to check the size of a file before it starts uploading it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!
I'm not even sure this is a php question!
Nope not a PHP
Greetings Gents,
I am interested in running two versions of of PHP.
I want to see if I can get my boss to buy into migrating to PHP 5.
I want to set it up locally.
Locally I am running apache on a windows XP box with PHP 4.
I would like I would like to be able to set up PHP 5 as well on the
Greetings All,
I have a problem that I usually solve in MySQL pretty easily, but using
PEAR identifiers are not working.
Any suggestions.
I want to loop through a result set in two different while loops that
are not nested.
I am able to do in it MySQl as follows
$sql=Some query;
$result =
Greetings All,
Having trouble figureing out a certain walk through an array.
And I am not finding the help I need in the manual or anything.
I have an associative arr ($arr) With about 20 elements in it.
Ten of which are required. So I have another associative array called
$required, with all
Greetings All,
Having trouble figureing out a certain walk through an array.
And I am not finding the help I need in the manual or anything.
I have an associative arr ($arr) With about 20 elements in it.
Ten of which are required. So I have another associative array called
$required, with all
Greetings All,
Having trouble figureing out a certain walk through an array.
And I am not finding the help I need in the manual or anything.
I have an associative arr ($arr) With about 20 elements in it.
Ten of which are required. So I have another associative array called
$required, with all
Greetigns Gents,
I seem to remember a built in php function that will take a huge block of
text.
Then just spit out X number of characters from it and follow it with an
additional string value.
But I cannot remember what it is.
I seem to remember it being something other than the substr().
I am
Greetings all,
I have a question.
I want to display a group of records pulled form a MySQL db in the following
fashion.
16
27
38
49
510
Now I can easily figure out how to display the records as
12
34
56
78
910
But
Greetings all,
I have a class I use for MySQL connection and functions.
I also have a class that I use to create Paged Results.
The paged results class connects to a DB and uses allot of sql calls to make
this happen. I am noticing that it does allot that the MySQL class does.
What I would
(Mysql class)
fetchAssoc() method with that modified SQL.
On Jan 20, 2005, at 9:17 PM, Phillip S. Baker wrote:
Greetings all,
I have a class I use for MySQL connection and functions.
I also have a class that I use to create Paged Results.
The paged results class connects
Greetings all,
Due to style sheet stuff I need to modify the nl2br (IE create or use a
different function).
I am pulling data from a database and using nl2br, which does the standard.
some text copybr /
br /
Some more copybr /
What I want instead is
pSome text copy/p
psome more text copy/p
Greetings all,
I am pulling records from a MySQL DB.
I am walking through the array using the whole.
if ( $row = mysql_fetch_assoc($result)) {
do{
//Some stuff
}while ( $row = mysql_fetch_assoc($result));
}
What I am wondering is if there is something I can do like.
indices start at 0.
So the best way , in my opinion, to achieve this effect would be:
while(list($id, $someinfo) = mysql_fetch_row($result))
{
//Some stuff
}
Chris
Phillip S. Baker wrote:
Greetings all,
I am pulling records from a MySQL DB.
I am walking through the array using
Greetings all,
I just serached the records and found this topic.
This nearly answers my question but not completely.
I have a search field and a class that I found that will explode queries
into an array based on boolean values and such.
Which is great so I get all the words a person is
I am posting this here, as it is a bug in the application and I awanted to
see if anyone else is using this and has come up with a solution.
If not and after I figure out more in the code what is going on, if I cannot
figure it out I will give you all a block of code. (Oh and I have emailed
the
I was able to figure out the problem.
If there is anyone else out there that is using it and needs the solution
let me know and I will pass it on.
--
Blessed Be
Phillip
Phillip S. Baker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am posting this here, as it is a bug
Greetings People,
Now basically I am trying to set up an easy way to have key value pairs
listed in a DB, and then be able to call the name of the key as a variable
later in the code of the page and list the corresponding value in the DB. I
am almost there. However I just need to figure out
Hey all,
Nevermind this. I just solved it myself.
I found out it does not matter when you decalre a variable as global (other
than I guess before you use it)
So I made my function this way.
function key_value ( $mysql ) {
if ( $sao_row = $mysql - fetchRow() ) {
do {
Greetings all,
I have some PHP code that is inserting records into a DB.
Most of this is auto increment.
However I know there is allot of breaks in the sequencing.
I am wondering if there is some way to write the SQL code to search through
the existing records in the DB and to find where the
Greetings all,
Is there an easy way to pull out the schema of a MySQL for viewing??
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings all,
Is there an easy way to pull out the schema of a MySQL for viewing??
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings all,
I would like to use PHP to make calls from a DB and generate a CSS file.
Anyone have any ideas on doing this?
Will php commands executre from a .css file or is there a different way to
do this??
Blessings
Phillip
+++
IMPORTANT:
Greetings all,
I am running version 4.3.4 of PHP.
Fairly recently. I am trying to call a pretty basic programming tool.
Maybe I am just really tired, or something but I am not getting what is
going on.
Is there something I am missing.
I am pulling a SQL call on a date to get the month. I am
At 09:54 AM 1/30/2004 +, Stuart wrote:
Phillip S. Baker wrote:
I am running version 4.3.4 of PHP.
Fairly recently. I am trying to call a pretty basic programming tool.
Maybe I am just really tired, or something but I am not getting what is
going on.
Is there something I am missing.
I am
Greetings All,
I have the need to find a calender class/script. What I am trying to do is
have a view by month calender that lists all classes for the month. People
can see the names of the classes in the month display and then click on the
link and get the detailed information about the class
Greetings all,
I am runnign into a strange problem.
I am working on a Linux box.
Running PHP 4.2.2
Apache 2.0
And it has MySQl installed on it (not sure of the version.
I ran a quick script to check to make sure the connection to the DB is
working fine as this is a very secure connection (have
Greetings all,
I am runnign into a strange problem.
I am working on a Linux box.
Running PHP 4.2.2
Apache 2.0
And it has MySQl installed on it (not sure of the version.
I ran a quick script to check to make sure the connection to the DB is
working fine as this is a very secure connection (have
Greetings All,
I am generating some variable variables.
I am interested for testing purposes in finding out the names of the
variables that are actually being generated. Since I want to make sure that
that my following conditional statements are working properly and the values
are set.
So is
55 matches
Mail list logo