I do not know if the question has been answered, but how are you opening
the session? Are you using session_start() or are you using
session_register()?
Rick Dwyer wrote:
On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote:
How is $item_id created? You've not shown that in your PHP script
Richard wrote:
It's a wise choice to go with $_POST, unless your form is a GET form,
in which case use $_GET. $_REQUEST has the potential to open your
script(s) up to security issues.
I am not sure what the security issues are you are referring to as the
$_REQUEST superglobal contains
According to the PHP manual using the same expression, Never cast an
unknown fraction to integer, as this can sometimes lead to unexpected
results. My guess is that since it is an expression of floating
points, that the result is not quite 8 (for whatever reason).
Therefore, it is rounded
In order to make this as sql server independent as possible, the first
thing you need to do is not use extended inserts as that is a MySQL
capability. If you are insistent on using the extended inserts, then look
at the mysql_info() function. That will return the number of rows inserted,
etc. on
Try putting tick marks (`) around the field and table names. So your
SQL query would then look like:
INSERT INTO `history` (`v_id`, `hour`, `visits`, `date`) VALUES (45, 0,
59, '2010 01 27');
This is a good practice to get into. The problem is that MySQL allows
you to create tables and
Actually, the syntax is just fine. I personally would prefer it the way
you mention, but there actually is nothing wrong with the syntax.
The ,'$date1'. is not correct syntax, change it to ,'.$date.'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
:
On Fri, Feb 12, 2010 at 8:27 AM, Joseph Thayne webad...@thaynefam.org wrote:
Actually, the syntax is just fine. I personally would prefer it the way you
mention, but there actually is nothing wrong with the syntax.
The ,'$date1'. is not correct syntax, change it to ,'.$date.'
My
Yeah, I am a lot more descriptive now. I ran into it quite a bit when I
was first starting out.
James McLean wrote:
On Fri, Feb 12, 2010 at 9:31 AM, Joseph Thayne webad...@thaynefam.org wrote:
As for the backticks, they are required because of MySQL, not because of
phpMyAdmin. The issue
in phpmyadmin but not in php page
On Fri, Feb 12, 2010 at 09:44:47AM +1030, James McLean wrote:
On Fri, Feb 12, 2010 at 9:31 AM, Joseph Thayne webad...@thaynefam.org
wrote:
As for the backticks, they are required because of MySQL, not because of
phpMyAdmin. The issue was not that phpMyAdmin
This is actually a javascript issue rather than a PHP issue. What is
happening is that the action of the form is what is being submitted.
The action never changes. What you need to do is have the javascript
change the action as well as submit the form (which means you will need
to move it
or submit_x is set.
Joseph
Ashley Sheridan wrote:
On Fri, 2010-02-05 at 14:33 -0600, Joseph Thayne wrote:
This is actually a javascript issue rather than a PHP issue. What is
happening is that the action of the form is what is being submitted.
The action never changes. What you need to do
It will continue to use the max number which of course will cause an error.
Joseph
Parham Doustdar wrote:
Hello there,
A friend called me today and was wondering what happens if the ID colomn of
an MYSQL database, set to autoinc reaches the int limit. Will it return and
begin choosing the
That is incorrect. What will happen is as follows:
1. The value will be incremented by 1 causing the value to be greater
than the maximum integer allowed.
2. MySQL will see this as a problem and truncate it to the closest value.
3. MySQL will then try and insert the new row with the
Bruno Fajardo wrote:
You don't need to use output buffering at all. You only need this
mechanism if your script needs to output stuff before the
session_start() or setcookie() functions get executed.
Output buffering is also used if you need to output something before
the headers are sent
You should be able to use either an absolute or relative path. In the
code below, the path specified is absolute (it starts with /). If you
want it to be relative to your current directory, change the line to:
$uploads_dir = 'uploads'; or $uploads_dir = '../uploads';
So basically, it all
If you are wanting to save the information as a PDF (formatted the same
as the HTML page), check out tcpdf at www.tcpdf.org. It is fairly
simple to implement and can interpret an HTML page causing it to be
saved as PDF.
Joseph
Ben Miller wrote:
Hello - I have an application I'm building
When used in PHP, an absolute path does not go off the web root. In
Premise 3 below, an absolute path of /upload will NOT bring up the
directory /home/prof3ta/projects/moodle/htdocs/upload but rather
simply /upload In Windows terms, an absolute path would be
C:\upload versus
PHP cannot create a folder structure on your local machine. I don't
think Javascript or VBScript can either. Your best bet is with the zip
files. Windows users have it fairly simple actually (as much as I hate
to admit it) as all they would have to do is right-click and Extract.
You can
If the site can be a few minutes behind, (say 15-30 minutes), then what
I recommend is to create a caching script that will update the necessary
files if the md5 checksum has changed at all (or a specified time period
has past). Then store those files locally, and run local copies of the
Check the following link for help on integrating with Vim:
http://vim.wikia.com/wiki/PHP_manual_in_Vim_help_format
Kim Emax wrote:
Hello
Roberto wrote on 2009-12-09 17:08:
Hi all,
I've just written a small tool for Emacs that will allow to browse PHP
documentation directly from within
20 matches
Mail list logo