hi,
i was able to read from the file, thanks for your help, but one problem it gives me
the first 2 chars as garbage values and then proceeds to print out the enter file. so
how can i proceed to advance the file pointer. any suggestions.
regards,
roslyn
-
D
That did it thanks
"Andrey Sosnitsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello, CrossWalkCentral.
>
> You wrote 23 ñåíòÿáðÿ 2002 ã., 2:05:38:
>
> So, explode() requires a seperator as a first argument.
> You code is
>
> $date= "10-01-2002";
> list
Any one have any information on selecting a rake of dates from a mysql
database?
my current query reads.
$result = mysql_query("SELECT * FROM CWC_Memory");
I neeed to select where date is between todays date and todays date +10.
Any help would be realy great thanks in advanced.
--
PHP
you have 2 spaces between My and Documents in those, not to mention that if
you are going to set $filename to be the path/file name, you may as well use
it in your fopen() call as well.
other than that is actually looks correct, although - you don't have < or >
around your HTML tag, you should us
hi, the error is on line5. the error is: Parse error: parse error in
/var/www/html/learn/frames.php
html
regards,
roslyn
Beau Lebens wrote:what exact error are you getting, and what line is it on etc?
beau
// -Original Message-
// From: roslyn jose [mailto:[EMAIL PROTECTE
what exact error are you getting, and what line is it on etc?
beau
// -Original Message-
// From: roslyn jose [mailto:[EMAIL PROTECTED]]
// Sent: Monday, 23 September 2002 1:07 PM
// To: [EMAIL PROTECTED]
// Subject: RE: [PHP-DB]opening and reading from file
//
//
//
// hello again,
Hello, CrossWalkCentral.
You wrote 23 ñåíòÿáðÿ 2002 ã., 2:05:38:
So, explode() requires a seperator as a first argument.
You code is
$date= "10-01-2002";
list ($day, $month, $year) = explode("-", $date);
echo "$year-$month-$day";
See PHP manual at http://www.php.net/manual/en/function.explode.
hello again,
i tried what u told me but im still getting the same error at the fopen(.). any
other bright ideas. please help. thanx alot
regards,
roslyn
Beau Lebens wrote:just use
$filename = "C:\\Documents and Settings\\roslyn\\My Documents\\note.txt"; //
note double-slashes
$contents
just use
should work. your parse error is probably because of the "\" in your
filename, you need to escape them with another "\".
HTH
Beau
// -Original Message-
// From: roslyn jose [mailto:[EMAIL PROTECTED]]
// Sent: Monday, 23 September 2002 12:54 PM
// To: [EMAIL PROTECTED]
// Sub
HI,IVE BEEN TRYING TO PRINT THIS CODE, BUT KEEP GETTING AN ERROR:
THE ERROR I GOT WAS THIS:Parse error: parse error in /var/www/html/learn/frames.php
COULD SOMEONE PLS HELP ME OUT EHRE, I JUST WANT TO PRINT THIS FILE, THATS ALL.
THANKSREGARDS ROSLYN
John Holmes wrote:Try $_POST['field_1']
Yeah, that too =)
On Sun, 22 Sep 2002 22:02:31 +, John Holmes wrote:
> From manual page on mysql_db_query():
>
> Note: This function has been deprecated since PHP 4.0.6. Do not use this
> function. Use mysql_select_db() and mysql_query() instead.
>
> ---John Holmes...
>
>> -Original
>From manual page on mysql_db_query():
Note: This function has been deprecated since PHP 4.0.6. Do not use this
function. Use mysql_select_db() and mysql_query() instead.
---John Holmes...
> -Original Message-
> From: Jason Morehouse [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September
$result = mysql_db_query($db,"$SQL",$cid) or die (mysql_error());
...should give you and idea.
On Sun, 22 Sep 2002 12:05:19 +, Brandon Boyce wrote:
> Below is the code I used to try to insert info into a mysql database, the
> form posts to itself. After I hit the submit button it isn't echo
What if
$date="10-02-2002";
I tried it this way and the explode causes problems with the - in it
What would be the best way to deal with this should i just parse out the -?
"Andrey Sosnitsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello CrossWalkCent
Hi,
1. Problem (Uploads)
Have a look at your php.ini, max_upload_size is 2 MB per default, you may
wish to increase this. Not sure if phpMyAdmin has another parameter to
configure this...
2. Problem (pics messed up)
Seems to be some magic quotes problem. In your php.ini, check
magic_qoutes_gpc a
Hiya,
So on the net I ask for a dump of my database using myPHPadmin, get a
2mb sql file. Put it in my local copy of myphpadmin and it wont accept it.
If I remove some of the lines then it works so I suppose its something to do
with the size. Can this be fixed? Is it to do with timeouts?
Below is the code I used to try to insert info into a mysql database, the
form posts to itself. After I hit the submit button it isn't echoing the
indication that information has been added, and when I check the database
there isn't anything there. help please!
Insert Link
Add Link
Not sure how to do this but I have a table which looks like:
CREATE TABLE cm_sessions (
session varchar(255) NOT NULL default '',
ipaddy varchar(30) NOT NULL default '',
host varchar(255) NOT NULL default '',
pages longtext NOT NULL,
referrer varchar(255) NOT NULL default '',
hck varch
Hi All!
I'm searching for Datagrid component for php and mysql. Something like java
ones.
Does anyone knows one?
Thanks
Paolo
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alex Shi wrote:
>Can MySQL table be converted to Access or Excell format?
>
>Alex
>
>
>
yes
go
http://www.phpwizard.net/projects/phpMyAdmin/
corto
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
i want to encode a string that users enter with mysql password function. but
sometimes this code works sometimes don't. mysql warns me:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in
the code is:
$result=mysql_query("select password(".$_POST[
could be a register globals issue?
Peter
---
Excellence in internet and open source software
---
Sunmaia
www.sunmaia.net
tel. 0121-242-1473
---
-Original Mes
Hello CrossWalkCentral,
Sunday, September 22, 2002, 7:06:18 AM, you wrote:
Try this
$date= "10 01 2002";
list ($day, $month, $year) = explode(" ", $date);
echo "$year-$month-$day";
C> I am having problems coverting the followign date format. Does any one have
C> any insight on this.
C> $date=
23 matches
Mail list logo