Richard Davey wrote:
Just a quick question - but does anyone know how to get the ms value
back from MySQL that tells you how long it took to run your query?
That value is not returned at all. Go with the wrapper...
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
gordon stewart wrote:
Can someone point me in the right direction to some
tutorials ( *EXAMPLES* ) to do the following
functions (or point mer to an appropriate forum - see
above)..
http://us2.php.net/manual/en/
:- Open a file insert into an array/variable. (im
trying to figure that one out
Jeff Oien wrote:
How do I convert this
9/8/2001
(which is Month/Day/Year)
to this
20010908
(YearMonthDay - with leading zeros)
echo date('Ymd',strtotime('9/8/2001'));
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals
From: Khalid Judeh [EMAIL PROTECTED]
i have a problem connecting to mysql db, i use the following code to
connect to the db:
$DBConn = mysql_connect(localhost, myusername,mypassword) or
die(Could not connect to database, . mysql_error());
mysql_select_db(db1, $DBConn);
and i get the
From: Aaron Wolski [EMAIL PROTECTED]
I have input for where users can enter order numbers in which to search
the database to find results matching their entry.
To enter multiple order numbers they can comma separate like:
1,34,21,34,54
What I need to do is take those numbers and make a
From: Eric Gorr [EMAIL PROTECTED]
When I visit test1.php with the url:
http://domainpath/test1.php?name=billpwd=henry
I see the output:
user = 'bill'
ID= 41699d4461e8fe3a71243bb3cb1c2298'
You were remembered and are now being redirected to the home page. If
this fails for some reason
From: Marek Kilimajer [EMAIL PROTECTED]
Matt Chatterley wrote:
In addition to protecting against SQL Injection, has anyone here
experimented with detecting and recording attempts at injection?
I've been pondering checking strings which come directly from user input
for
sql keywords
Since I'm fresh back from php|cruise, I thought I'd comment and ask for
comments on what it takes to give a good technical presentation. I'm
planning on writing about this topic in my next php|architect column, so be
aware that anything said here may appear in it.
This is in no way a jab at any
From: Chris Shiflett [EMAIL PROTECTED]
3) Typing Code: Don't type code during your presentation.
Why not? From my experience, people appreciate live demonstrations of the
techniques you're discussing.
Yeah, live demos are great, but I don't want to sit there and watch you type
all of your
Jonathan Duncan wrote:
I am getting blank pages (or partial blank pages if my HTML comes before the
PHP) instead of errors. I know there are errors on the page because I have
specifically put parse errors in my code to see if the server would give me
errors, but instead all I get are blank
webmaster wrote:
how is the best way to keep from getting the
submit button from comming through with the variables
Don't name it?
Just remember that users can send _any_ variable they want through a
form... blindly looping through and accepting $_POST as a whole is
probably a bad idea.
--
From: Brian Dunning [EMAIL PROTECTED]
I have a timestamp field that updates itself with NOW() every time I
update the record. I don't want that to happen - I want it to remain as
the original creation timestamp. How do I prevent this from happening?
Set it equal to itself or use a DATETIME
From: Richard Davey [EMAIL PROTECTED]
I'm sure this is blindingly simple, but could anyone tell me how to
get an ereg_replace() to return a string where all characters OTHER
than alpha-numerics have been stripped out?
$output = ereg_replace('[^a-zA-Z0-9]','',$string);
The ^ is NOT (when the
From: Brian Dunning [EMAIL PROTECTED]
I'm trying to set a datetime field to 24 hours in the future...
NOW()+6000, which worked on a timestamp field, only gives 12 seconds in
the future. Algebra suggested I try NOW()+720 which is invalid.
field = NOW() + INTERVAL 1 DAY
or
field =
From: Jonathan Villa [EMAIL PROTECTED]
Is there a way to get the name of the form once it's submitted
like $_POST['form1'] or something.
No. You'd have to use javascript to set a variable upon submission and then
find that variable.
---John Holmes...
--
PHP General Mailing List
From: Adam Williams [EMAIL PROTECTED]
Hi, I was wondering if I can get some help with either a str_replace or a
regex. I have some data and it always begins with $$ but it can end with
any letter of the alphabet. so sometimes its $$a and sometimes its $$b
and sometimes $$c all the way to
From: Alex Hogan [EMAIL PROTECTED]
I am parsing data returned from a field that looks like this;
6-8-3-5-10-9-6__7-5-9--etc...
Wow... you're totally missing the point of a database when you store data
like this.
The code below parses out the data they way I want it but only returns the
From: Jonathan Villa [EMAIL PROTECTED]
I want to be able to submit the page to another page vs PHP_SELF. On
that page I want to be able to validate the form, and if it fails,
return the user to the previous page. Now that's easy, but the catch is
that I want to retain/repopulate their field
Shane McBride wrote:
Actually all form validation is done before the form action takes place, so
that way we do not loose input.
I think you're missing the point. Client side validation is extremely
easy to bypass. If that's all you're relying on, you're in trouble.
--
---John Holmes...
Amazon
Benjamin wrote:
Henry Grech-Cini wrote:
1) Do not redirect if the page is visited as the result of a POST
Why is that? I do it all the time and it seems to work fine. I have
read through all the emails for this thread and didn't find anything
mentioned. Am I doing something wrong?
No,
From: BEOI 7308 [EMAIL PROTECTED]
My ISP's PHP is 4.2.0, and the fmod function was not available before
4.2.0
My question : is there a replacement to fmod, or what can i do to do a
fmod without it ?
Read second comment here: http://us2.php.net/fmod
---John Holmes...
--
PHP General
Will wrote:
Hello All,
I am having a problem. When I log into a forum it says Page Cannot Be
Displayed I looked at my logs and did not find anything.
I did a search everywhere and found nothing.
As did your web server, apparently. :)
So what page are you trying to load? It obviously doesn't
Marc Greenstock wrote:
I have a table with all the star signs, in the table are the fields
'Name','From','To'. Both the 'From' and 'To' are an integer of the relevant
dates eg in the 'Gemini' row I have:
Gemini, 521, 621 (521 means May 21st, 621 means June 21st). I hope I'm
explaining my self ok.
Sheni R. Meledath wrote:
Can any body provide me with a regular expression (as per the latest
standards) to check the validity of an email address.
This is covered over and over and over, 100s of times (literally) in the
manual. Look through the comments in either of the regular expression
From: Ben Ramsey [EMAIL PROTECTED]
Finally, your system must be Linux (or other unix-type system) for this
to work correctly. If it's Windows, you can use the task scheduler, but
I don't think it'll execute the PHP script.
Sure it will. Just put the program to run as something like this:
From: [EMAIL PROTECTED]
Basically, prospective teachers/students, can sign up for more info etc.
Currently, that info is captured, and the site admin people are
E-mailed...
all good so far..
What they've asked for, is that when they reply to the enquiry, they are
reminded to chase up the
From: Juan Cortabitarte [EMAIL PROTECTED]
I need to send a newsletter and I need to know all mail addresses of the
undelivery mails to update the database.
Any suggestion? Do I need to parse the maillog?
If you're using the basic mail() function in PHP, you're not going to get
any data back
From: Lucas Gonze [EMAIL PROTECTED]
On Friday, Feb 20, 2004, at 13:52 America/New_York, Pablo Gosse wrote:
If by terminate the connection you mean stop sending back information
to
the browser, then perhaps you should look into output control
functions:
From: Lucas Gonze [EMAIL PROTECTED]
Nice bit of PHP obscurantia, John.
That's what I'm known for! :)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Justin French wrote:
Hi all,
I'm building a CMS that does heavy parsing of a HTML shorthand plain
text to XHTML strict, in a similar way to Textile
http://www.textism.com/tools/textile/.
1. Parse the text on demand into HTML -- the parsing script is to
heavy/slow for this.
2. Store both the
joel boonstra wrote:
On Fri, Feb 20, 2004 at 10:35:11AM +1100, Justin French wrote:
1. Parse the text on demand into HTML -- the parsing script is to
heavy/slow for this.
2. Store both the plain (shorthand HTML) text and parsed XHTML versions
of each field -- the problem with this being that
From: Ryan A [EMAIL PROTECTED]
Theres a date_of_birth field there that has the values in this format
-MM-DD, the client wants me to
print out the age of the person from that...looking in the manual
(http://se.php.net/manual/en/function.date.php)
I think I will need to use mktimebut
From: Stuart [EMAIL PROTECTED]
I have a custom error handler class that's working well. My problem is
that I can't find a way to find out whether a particular error has been
suppressed using the @ prefix. Is there a way to do this with a custom
handler?
Next time start here
From: John Taylor-Johnston [EMAIL PROTECTED]
I want to create a language option, so the resulting html is in French or
English, depending. But passing variables like this doesn't work:
?php include (../_phpcode/byname.php?lang=fr); ?
echo $lang; // 'fr'
Warning: main(): Failed opening
From: Mike Mapsnac [EMAIL PROTECTED]
I search on php.net. How to declare php function as type boolean?
I tried the following declaration;
function booolean check_ip_remote()
boolean check_ip_remote()
But both declaration are wrong. I got the error messages
Unless this is something new
From: Donpro [EMAIL PROTECTED]
1. I upgraded to PHP 4.3.4
2. I upgraded to MySQL 4.0.17
3. Restarted Apache; I even rebooted!
When I run phpinfo() in my web browser, it shows:
Client API version: 3.23.58
What's going on ???
That's usual, as far as I can tell. That just means PHP is
From: John Taylor-Johnston [EMAIL PROTECTED]
I can do this, but want to understand how to while it: Or should I?
$tempslices = explode(\r\n, $pizza);
foreach ($tempslices as $singleslice)
{
echo a href=\http://www.foo.org$singleslice\;$singleslice/a ;
}
Still learning :)
From: Chris Bruce [EMAIL PROTECTED]
I am having trouble with a string becoming truncated at an ''
character. I am passing the variable via a link
(http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then
when I try to grab the incoming value of campaign into a SELECT query,
it
From: Alex Hogan [EMAIL PROTECTED]
What are the rules of thumb for classes and included files?
Can I not include a file in a class function? If I put the include()
outside the class structure everything works fine, but when I put it
inside
the class it freaks.
Am I doing something wrong?
Chakravarthy Cuddapah wrote:
In php I want to know space used (du) by user on a remote system. Can
anyone pls tell me how this can be done.
Just call du through exec().
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP
Marek Kilimajer wrote:
Anders Gjermshus wrote:
Is it possible to get IIS 6 to show php sources. ( phps files )
Is it possible to set a custom 404 handler in IIS? Than you can set it
to a php page, in the php page parse the request URI and highlight_file().
Good catch; never thought of that. It
Anders Gjermshus wrote:
Is it possible to get IIS 6 to show php sources. ( phps files )
No. I've never seen any way to do this with IIS.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP
From: Ford, Mike [LSS] [EMAIL PROTECTED]
Mind you, there are exceptions: exit(), for example, is a language
construct
but requires the parens (at least, that's what the fine manual appears to
say, and I've not tested it without!).
Only if you want to pass an exit value, i.e. exit(101);
From: Richard Davey [EMAIL PROTECTED]
Personally I use a file called common.inc which is basically
my global include file - it has nothing but variables I need set (no
functions, etc - they are held elsewhere) and files I need to include.
It sits at the root of my project and is included on
From: Richard Davey [EMAIL PROTECTED]
JWH I hope you are also denying access to .inc files otherwise we could
view
JWH your file as plain text.
Please.. try ;)
I used to call the file common.php until we had a rather large debate
about the correct naming convention for PHP include files on
From: Donpro [EMAIL PROTECTED]
I have a script that allows the user to browse his/her local hard drive
for
a file and email it as an attachment. Text files come through OK but any
binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a
red
X in my browser and Adobe will
From: Angelo Zanetti [EMAIL PROTECTED]
I have a query which returns only 1 row, which of the following would be
the
best to get the value from the resultset:
mysql_result()
mysql_fetch_field()
mysql_fetch_row()
the resultset only returns 1 column, so basically its only 1 field i get
from
From: Samuel Ventura [EMAIL PROTECTED]
I have 3 files in nested subdirectories
(1) /test.php
(2) /subdir1/test.php
(3) /subdir1/subdir2/test.php
if I call (3) it loops forever in (2) trying to
including itself.
Is this a bug or a feature?
A feature?
You make a request for (3). The
From: Alex Hogan [EMAIL PROTECTED]
Are you saying that it's better not to use relative paths on
include(...)'s,
require(...)'s and their (x)_once(...) cousins?
That seems awkward to me.
Why would I want to hard code a path, even if I was including additional
functionality from another
Richard Davey wrote:
include $dir/file.php
vs.
include($dir/file.php)
Both work just fine. The manual includes examples of both methods. So
which do most people consider the right way ?
If you use echo, then you should use include().
If you use print, then you should use include .
Unless you
From: Lowell Allen [EMAIL PROTECTED]
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the case, since the redirect occurs
From: Marco A. Ortiz [EMAIL PROTECTED]
I want to ask you, how I must setup my PHP.INI file, to send e-mail from
my
Web Site if my SMTP server requires authentication. Otherwise, I want to
know if exits some kind of public SMTP sever that I could use.
If your SMTP server requires
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change it
to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my MySQL table:
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like Friday, May 5, 2004
I thought it was supposed to be year first, followed by month and day,
as in the
Paul Furman wrote:
If you start with one index.php then use that to include additional
files, it should accept any file, even with no extension. At least it
works that way for me.
Just be careful with that. Remember that the files can be requested on
their own, also. If you have database.inc
From: Cameron B. Prince [EMAIL PROTECTED]
I'm creating some strings from array elements obviously. The issue is, the
array elements don't always exist depending on which function you are
running. And when they don't, the server log is full of undefined index
errors. Is there a way I can avoid
- Original Message -
From: Paul Furman [EMAIL PROTECTED]
Totally ignorant need for clarification... Should I set up a counter for
loops $integer++ or if I'm going through something, the while function
knows to just go through those and fills in array numbers accordingly?
[snip]
From: Paul Furman [EMAIL PROTECTED]
So when assigning values to an array inside a loop, it knows to advance
to the next but then if I want to print those out at the same time, it's
complaining
while ($file = readdir($fh)){
if (strstr ($file, '.jpg')){
$pictures[] = $file;
craig wrote:
craig mailto:[EMAIL PROTECTED]
on Friday, February 06, 2004 2:24 PM said:
if (is_array($project))
foreach ($project as $project_id = $value) {
$fields[] = $project_id;
$values[] = $value;
}
}
you're missing a curly brace after the if ().
my bad, that's what you get
From: Vivian Steller [EMAIL PROTECTED]
i want this function simply call the method of another class with
SomeClass::$method(...) but i'm getting into trouble (bit heavy
programming!:) passing the arguments (stored as Array in $params) to the
SomeClass::$method([arguments]) method...
further,
From: Vivian Steller [EMAIL PROTECTED]
Vivian Steller wrote:
Hello,
as you know there is a new callback function __call($method, $params) in
php5. the __call() method of an object is called, if the method named
$method is not declared in this class.
i want this function simply
From: Brian Dunning [EMAIL PROTECTED]
Subject: [PHP] How to search for a date
A date? Well, you could try Friendster or orkut to find date, or... oh
wait...
Sorry this is such a basic question - but I couldn't find it online.
I have a date field in MySQL: -00-00. I'm trying to insert or
From: John McKerrell [EMAIL PROTECTED]
INSERT INTO mytable (dateField) VALUES (CURRENT_DATE);
For MySQL you're still going to need NOW() instead of CURRENT_DATE
though surely?
No. He has a DATE column, so why use NOW() which includes time informatin.
Quote: CURRENT_DATE and
From: Shaunak Kashyap [EMAIL PROTECTED]
My inclination would be to just use the DB, have linked tables with
languages and pieces of text in various languages. A single query could
get a full language preference setting for a site, and a little array
munging could turn it into a usable set
From: Angelo Zanetti [EMAIL PROTECTED]
is there ever a certain situation where you would have something at the
top
of your page before session_start();? If so why would it be before
session_start();?
Sure, there could be. It just wouldn't be able to output anything unless you
were using
From: Chris Bruce
Is there a php function that escapes single quotes
in Mysql queries?
addslashes()
mysql_escape_string()
mysql_real_escape_string()
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Jochem Maas [EMAIL PROTECTED]
alternatively (actually this looks like the easier way to do it!) use
preg_replace(), with the 'e' modifier tagged onto the end of the
replacement expression: the 'e' modifier causes the expression to be
evaluated as PHP.
From: Alex Hogan [EMAIL PROTECTED]
I have a printer friendly page and I want to get rid of the referring url
at
the bottom of the page. How can I do this? I can't seem to find any
reference to this in the archives.
This is controlled by the browser; there's no way for PHP to change it.
From: John Nichel [EMAIL PROTECTED]
If all the OP wants to do is echo out the file, then why not just use
the file() function. Then each line is loaded up into an array element,
and you've saved yourself a bit of cpu. And your example above
doesn't address the OP's claim that it is not
From: Reem M. [EMAIL PROTECTED]
I have installed Apache 2.0.43 (win32) on my XP machine, together with
PHP 4.2.3. I have configured the server to recognise PHP, local
directories
etc.
Apache starts - no errors, and will accept PHP documents from my
browser. But when I run my PHP pages,
Renan G. Galang wrote:
I just need a confirmation, when the getdate()
function is invoked inside a PHP script, the date
returned will be the server hosting the pages' date
and not the client requesting the page, right? or
am i wrong in my assumption? Thanks guys.
Yes, you are not wrong in
Matt Hedges wrote:
Can someone help me with the following? Preferably someone other than the
wise ass below?
Of course...
thanks
matt
Burhan Khalid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Matt Hedges wrote:
Hello,
I have a page where users can enter in information about
Ryan A wrote:
I am getting everything except the 3 variables($admin,$site,$lic), heres my
function:
***
include_once('PRO-Config.php');
echo $admin; // This was a test to see if I am getting the value from the
include..I am.
function sendEmail()
{
[snip]
Admin: $admin
Site: $site
From: John Schulz [EMAIL PROTECTED]
After reading the manual entry on $_SERVER predefined variables, I'm
unclear on the difference between 'SCRIPT_FILENAME' and 'PATH_TRANSLATED'.
Results from a test script, run from a few different locations on my
webserver, were always the same for these
From: Justin Patrin [EMAIL PROTECTED]
What you need to understand is that the string parsing for variables
only happens when the string is actually in your script. When you
dynamically create a string (or get it from a DB) it's just a string of
characters in memory and is *not* parsed.
To
From: Maciek Hofstede [EMAIL PROTECTED]
I have one problem,
i can't use 'text mode' exp:
echo blah;
end 'image function'?
exp: imagepng($rys);
Any idea?
I've had my coffee now and I'm still confused. What are you trying to do?
I'm going to try more coffee.
---John Holmes...
--
From: Admin - CpanelPlus [EMAIL PROTECTED]
I Need to access certain data in a Page protected by user login.
I have written a script with socket functions which connect to port 80
and automates what any browser does.
That's Ok .. Now I have the Data What I wanted in a variable.
But I am also
From: Chris Bruce [EMAIL PROTECTED]
I am trying to write a function that would compare one table to a
number of other tables in Mysql and remove any duplicates found. This
is for tables of email addresses where I want to remove any dups found.
Example:
Master list - compare to list1, list2,
From: Chris Bruce [EMAIL PROTECTED]
Mysql 3.23.54.
My first thought was to load the output from the tables into an array
and they use a foreach and in_array to create a list of dups, but I
wanted to see if there was an easier way.
Ah, in that case, my other query won't work. :)
This
From: Ryan A [EMAIL PROTECTED]
I am having all the pics upload to one
common directory (member_pics) so what do you suggest I name the pictures?
uniqid() and md5() would come in handy here.
Another question related to this, I am restricting the uploaded files to
be
jpg,png and gif for
From: Mike Mapsnac [EMAIL PROTECTED]
Is there a way to find out the execution time of php program?
If you start a task at 10:00 and finish at 10:15, how long did it take?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
I'm having a brain fart here:
---file.php
$myvar = Hello!;
$stuff = file_get_contents(file.html);
echo $stuff;
---file.html
b$myvar/b
Any ideas why when $stuff is echoed I get $myvar and not Hello?
It's because you're echoing the contents of a variable, not evaluating
it.
From: Chris [EMAIL PROTECTED]
$sql = SELECT * FROM agentdb WHERE ((OfficeID 214) and
(agentdb.agent_id 1115421) and (agentdb.agent_id 100) and
agentdb.agent_id 333)) ORDER BY RAND() LIMIT 1;
It does however seem to favor one agent more than the others.
Does anyone have any
From: Dave Carrera [EMAIL PROTECTED]
Wherever I put sleep(1), notice the comments, in the func all it dose is
wait 10 seconds then shows the full output and not each result 1 at a time
to the screen.
Are you running this over the web or on the command line? Even though your
script is
From: Michael Hill [EMAIL PROTECTED]
I have a bunch of news items in a database. All of them have a date
associated with them. I am trying to make a function that queries the db
and tells me which months have newsitems in them(if any at all), and how
many each of the months have.
You should
From: Denham Eva [EMAIL PROTECTED]
Parse error: parse error, unexpected $end
Please can someone help!
You need an editor that does source code highlighting. If you had that, you
would not have encountered this error because you'd have noticed the
unterminated string here
$query = insert into
From: Daniel Perez Clavero [EMAIL PROTECTED]
Warning: fread(): supplied argument is not a valid stream resource in
c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on
line 13
I´ve got a form that calls a module to insert data. IT WAS WORKING before
I
switched the
From: Pietuka Krustins [EMAIL PROTECTED]
Is there something like __autoload() of PHP5 in PHP4?
After using PHP5 for a month, I just can't stand writing those
never-ending
includes and requires. Any ideas how to simulate an __autoload()? I am not
afraid of a little overhead.
For those who
From: [EMAIL PROTECTED]
class clsfTreeNode
{
//member variables
var $fName;
var $fData;
var $includedFiles;
//constructor
function clsfTreeNode( $fileName )
{
$this-$fName = $fileName;
$this-$fData = file_get_contents($this-$fName);
$this-ParseFile();
You have an extra $ sign
chunk_split();From: Benjamin Trépanier
I am using the chunk_split(); function to separe a
long long text on differents pages.
At this time, I can split the string into x sections of
2000 characters.
Now I need to show only the first 2000 .
when user click on page #2, it's reloading and
From: Radwan Aladdin [EMAIL PROTECTED]
So where are the errors?
In your code or database, I'm sure of it.
In other words, why don't you tell us what error message your getting, the
line number, etc.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
From: Gerard Samuel [EMAIL PROTECTED]
You're absolutely correct. I jumped the gun way too early.
My experience with replacing with amp; is that if the content already
contains entity content, for example nbsp;
Running str_replace will mess them up.
Depends how you define mess them up... If
From: Radwan Aladdin [EMAIL PROTECTED]
I made that.. but there is something strange!!
It's strange you can't follow instructions...
I SELECTED field from the database.. but it is not showing what it
contains!!
This is what is shown on the screen :
UPDATE accounts SET
From: Radwan Aladdin [EMAIL PROTECTED]
But I mean by $RightLoginTime = 'LoginTime';
the selected field from the database (LoginTime).. First I selected the
LoginTime from the database and now I'm trying to name a variable for it
to
use it..
So what is the correct code?
You end up with
From: motorpsychkill [EMAIL PROTECTED]
I'm not sure if this has been covered (I searched the archives) but does
anyone know if there is a size limit on what a session can store? What is
this dependant on?
I think you already got your answer. I'd just like to say that if you have
to ask this
Montagna, Dan wrote:
I've got the code for a drop down list and the drop down box displays--but
with no info in it. The underlying table is populated so I could use some
advice on what might be wrong from here
SELECT
?
include(includes/db.php);
MYSQL_CONNECT(HOST,USER,PASS) OR
unkno me wrote:
Does anyone know what function is needed to make
graphic chart like those line / pipe char? Any
example?
The easy, simple way is to just have PHP control the width of an image
and stretch it. So if you had a 1x1 blue pixel image, you could stretch
it 100 pixels for 100% and 50
Jason Giangrande wrote:
UPDATE link SET hits = hits+1 WHERE website_link = '$link'
$link is the website link that was clicked on.
The query works fine. The problem is if $link is a website that does
not exist in the database mysql_query(); still returns true even though
nothing was updated.
From: Craig Jackson [EMAIL PROTECTED]
This would require something like the equivalent of eval in javascript.
Does PHP have that capability?
Yes. Oddly enough it's called eval(). Imagine that...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Paul Furman wrote:
You can also define your include dir in php.ini or if running as an
apache mod in an .htaccess file.
I had luck with the include approach:
include 'c:/_Paul/web/phplib/utilities/dirfile.php';
echo scandir();
I guess it'd be more wise to put in my php.ini to
401 - 500 of 2745 matches
Mail list logo