>I am working on some scripts that will allow for uploading of files that
>will then be stored in a database with the ability to be listed and
>searched.
>
>What im wondering, is if I have a user upload a file in txt, or doc
>format if there is an easy way to read that file, store the information
>
> As to which is faster is does not really matter as the speed of echo
> print and heredoc is dictated by the connection speed to the
> requesting client. If this is a factor in your overall operation you
> can use output buffering to save the contents and output them at the end of
> your script.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I am working on some scripts that will allow for uploading of files
that will then be stored in a database with the ability to be listed
and searched.
What im wondering, is if I have a user upload a file in txt, or doc
format if there is an easy way
> > Warning: Wrong parameter count for fgets() in
> I had this error on of my scripts, any ideas on this part?
Well, I typed "fgets" into the "search for" field on a page at php.net,
left the "in the" field set to "function list", and clicked the little
non-descript arrow to the right of that, and
> Warning: Wrong parameter count for fgets() in
I had this error on of my scripts, any ideas on this part?
How come this error occur?
--
Thank you,
Louie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a form where I have to check whether user is submitting a PO Box
as an address. I wrote the following using eregi, but it returns true
even when the field is not Po Box. How do I go about doing this
properly?
if(eregi("^Po Box$", $address)){
$error_message_custom = "You cannot use a PO BO
It did help and I altered the script a bit. It now reads as:
$count = 0;
//get file size function
function fsize($file) {
$a = array("B", "KB", "MB");
$pos = 0;
$size = filesize($file);
while ($size >= 1024) {
$size /= 1024;
$pos++;
}
return round($size,2)." ".$a[$pos];
}
//loop throu
Hi,
Monday, July 7, 2003, 11:33:38 PM, you wrote:
SK> Hi, again!!
SK> I'm looking for opinions as to which is better/faster, print or heredoc.
SK> print makes the code layout look nice and eazy to debug, where heredoc IS faster
but makes the code look like a nightmare with everything jammed aga
I just wonder, how do you make it fuzzy? I mean the image? On my book, its
all plain but how about making it fuzzy?
--
Thank you,
Louie
-Original Message-
From: Miranda, Joel Louie M
Sent: Tuesday, July 08, 2003 10:55 AM
To: 'Ralph'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Image verific
> Hi, again!!
I thought I saw this post once already.
> I'm looking for opinions as to which is better/faster, print or heredoc.
Well, like the guy said before, it sounds like you've
pretty much already made up your mind.
I don't use heredocs everywhere, but when I have a fairly large block of
I was wrong about the post, I addedd the header on the global fields on my
code.
Header("Content-Type: image/png");
session_start();
$new_string;
session_register('new_string');
Image verification is now working, hahaha! Yahoo!!
Php the best!
--
Thank you,
Louie
-Original Message-
Fr
Are you talking about number_format()?
http://www.php.net/number_format
or substr():
http://www.php.net/manual/en/function.substr.php
-Original Message-
From: Brenton Dobell [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 7:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Forgotton Com
One way to get around having to edit backslashes is to echo using single
quotes. For example:
echo '' . $variable .
'';
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 06, 2003 3:48 PM
To: Sparky Kopetzky
Cc: PHP General
Subject: Re: [PHP] print vs.
Well, does post has anything to do with this? I have this code running on a
post and I just hide it as a variable and pass it over to another post I
have a session that has only on 2 codes w/c is first.php and second.php
--
Thank you,
Louie
-Original Message-
From: Miranda, Joel Louie
Hey all, Im new to this list and fairly new to php,
anyways I had a command to get a variable of numbers eg.
14.39287376585639584673
I used to know a command to strip the variable back to 4 digits eg 12.3
But for the life of me i cant remember the command, can anyone please help,
ive tried look
> STOP SPAMING the list.
http://www.php.net/mailing-lists.php
Has some basic guidelines for list useage.
(To the OP, [ANN] or [ANNOUNCEMENT] is a kinder tag.)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.appelsiini.net/~tuupola/php/peardoc2/index.html
http://www.phpkitchen.com/staticpages/index.php?page=2003041204203962
you might sign up for the pear mailing lists and ask these specific
questions:
http://pear.php.net/support.php
-Original Message-
From: [EMAIL PROTECTED] [m
Ralph,
That's what I did on first.php code I wonder why.
-- first.php --
session_start();
session_register('new_string');
Header("Content-Type: image/png");
$new_string;
$im = ImageCreate(200, 50);
$white = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
sran
http://www.oscommerce.com
-Original Message-
From: Noah Solodky [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] a recommended FREE PHP shopping cart
Hello
can any one recommended a FREE PHP /MYSQL shopping cart,,that they
have
set up
-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 7:02 PM
To: 'Miranda, Joel Louie M'; [EMAIL PROTECTED]
Subject: RE: [PHP] Image verification problem..
You should register session for 'new_string' after assigning a value to
it.
So try placing
sessio
You should register session for 'new_string' after assigning a value to
it.
So try placing
session_start();
session_register('new_string');
after the rest of your first.php code.
That should work.
-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED]
Sent: Monday,
Im trying the image verification thing I think everything goes well for the
generation of the image but when it comes to verifying the text when I typed
in any text it just generates and process the form, but when I leave it
blank it says the error. I think the session variables for $new_string is
After upgrading from 4.2.3 to 4.3.2 apache fail to load with an error:
"Invalid command 'php_admin_value', perhaps mis-spelled..."
php_admin_flag also fails.
I tried with and without php.ini.
php was compile with --with-apxs --with-mysql --with-gd --with-xml
--with-iconv --with-gettext --with-mcr
Here are some sites for you to get started:
http://www.zend.com/developers.php
http://www.phpcomplete.com/tutorials.php
http://www.evilwalrus.com/articles.php
And for books, here are some excellent books I've come across:
Programming PHP
By Rasmus Lerdorf
Web Application Development with PHP 4.
On Mon, 7 Jul 2003 23:37:58 +0100, you wrote:
>On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote:
>> On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>>
>> >I want to write a function (as I have written in several other languages) that
>> >obtains it's arguments dynamically (using func_get
> fetchinto?
> On Mon, 2003-07-07 at 14:42, phpu wrote:
> > 10x but i am new to php and i do not know how to dump all of the
results
> > into an array can you help me with this one please?
$sql="select * from cate order by name asc";
$resurs=mysql_query($sql);
while ($row=mysql_fetch_array($r
Here's a tutorial on doing this:
http://codewalkers.com/tutorials.php?show=15
-Original Message-
From: phpu [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 3:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Table trouble
Hello
I need help.
I'm querying a database then printing the resu
Here is a site you might want to look at:
http://polar-lights.com/en/
-Original Message-
From: Jim McNeely [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 4:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php arrays into flash
I know a lot more about php than about flash (which is pro
I fixed the problem; now works with Safari. =)
Richard Baskett wrote:
Do you realize that link does not work with the Safari browser? it just
shows up blank :(
Rick
When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one
>elseif (eregi("a-ZA-9", $v_tel_filter)) {
>echo "'$v_tel_filter' Telephone Number Contains words";
>
>} else {
>
>im looking how to verify numbers alone and dash "-" can that be possible? I
>have tried using "a-ZA-9" but did not work.
/^[\-\d]+$/ should match a string of just digits and dashes.
Hey ralph, its you again! :) thanks, its now working..
> if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
> "0123456789-") != strlen($v_tel_filter)){
> echo "'$v_tel_filter' Telephone Number Contains words";
> } else {
I'll check on the syntax for strrpos, thanks!
--
Thank you,
Louie
Here is one of doing this:
if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
"0123456789-") != strlen($v_tel_filter)){
echo "'$v_tel_filter' Telephone Number Contains words";
} else {
}
-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED]
Sent: Mo
elseif (eregi("a-ZA-9", $v_tel_filter)) {
echo "'$v_tel_filter' Telephone Number Contains words";
} else {
im looking how to verify numbers alone and dash "-" can that be possible? I
have tried using "a-ZA-9" but did not work.
any ideas?
thanks,
louie
--
Thank you,
Louie
--
PHP Gene
Jim McNeely wrote:
I know a lot more about php than about flash (which is probably sad) but
does anyone know how to take info in an array and pass it into an array
in flash? I think they have arrays, but the only thing I can seem to
find in flash to get info from php is the loadvariable actionsc
Jim,
The key words are "implode" on the PHP side and "split" on the Flash side.
Here's an example:
The data is returned from PHP like so, after doing the connect, select,
etc. to produce an array of 7 dates for back issues ... no claim that this
is optimal code.
if( $result && mysql_num_rows(
don't know about loading it directly in flash, but you could always create a
javascript array in the page that loads the flash module and then have flash
read it or javascript enter it into the flash module.
Jim lucas
- Original Message -
From: "Jim McNeely" <[EMAIL PROTECTED]>
To: <[EMAIL
I know a lot more about php than about flash (which is probably sad)
but does anyone know how to take info in an array and pass it into an
array in flash? I think they have arrays, but the only thing I can seem
to find in flash to get info from php is the loadvariable actionscript
step. I looke
> "Paul Chvostek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote:
> > >
> > > if ($_POST["imgList"] = ""){
> >
> > You're *assigning* a variable in this condition.
On Mon, Jul 07, 2003 at 04:02:21PM -0600, Micah Montoy w
so far i have:
$sql="select * from cate order by name asc";
$resurs=mysql_query($sql);
while ($row=mysql_fetch_array($resurs))
{
echo ".$row[1].";
echo ".$row[2].";
echo ".$row[3].";
}
how can i put all of this together?
echo "";
- Original Message -
From: "Michael A Smith" <[EMAIL P
10x but i am new to php and i do not know how to dump all of the results
into an array can you help me with this one please?
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 1:19 AM
Subject: Re
Safari is the new Mac-Browser by Apple.
Its using the KHTML-component from Konqueror (Linux).
Thomas
On Mon, 07 Jul 2003 18:06:29 -0400 [EMAIL PROTECTED] (Robert Samuel White) wrote:
> Hello,
>
> I was just alerted of the issue by another fellow with a way excellent
> website at saturn5.com
On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote:
> On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>
> >I want to write a function (as I have written in several other languages) that
> >obtains it's arguments dynamically (using func_get_arg()) and then assigns to that
> >argument. Think
try that
if (!isset($_POST["imgList"]) || empty($_POST["imgList"])){
for the comparison.
Thomas
On Mon, 7 Jul 2003 16:02:21 -0600 [EMAIL PROTECTED] (Micah Montoy) wrote:
> How do I specify it that I just want to check to see if the form field was
> blank and if so, inform the user? I know I
Alternately, you could place code similar to this in your first form.
echo ""
When you first access this form it would output:
And when returning, assuming that your edit button is on a form posting
the data:
> You could save all of the form data in session variables, when they
> click edit re
On Jul 7, 2003, "Steve Keller" claimed that:
|At 7/8/2003 03:30 AM, Hiren Mehta wrote:
|
| > Thnx alot guys You have been of great help :D
|
|And don't forget this list! There are a lot of really talented people on
|this list, so if you're trying to figure something out and haven't been
|able
Hi all,
I have a question which I'll try to convey as best as I can. I want to
change the referer variable so when I do a:
header("Location: $location");
the log files on the resulting location have the information in the referer
environment variable that I have set, not what was originally in t
On Jul 8, 2003, "phpu" claimed that:
|Hello
|I need help.
|I'm querying a database then printing the results in a table. I want the result to be
in a table with 2 columns per row.
|something like that
|
|
|-- row 1 -- r
I'd just dump all of the results into an array and do something like this:
echo "\n";
for($i=0; $i\n";
for($j=0; $j<2; $j++)
{
echo "\t\t".$array[$i]."\n";
$i++;
}
echo "\t\n";
}
echo "\n";
On odd numbered arrays you'll end up with an empty cell. Most browsers wil
On Jul 7, 2003, "Micah Montoy" claimed that:
|Well, I redid the code a bit but it is still blowing up with the same error
|message. I also did the echo bit and it returned "Resource id #10". What
|ever that is. At least I know its returning something. But when I did
|mssql_row_nums($result), i
Hello,
I was just alerted of the issue by another fellow with a way excellent
website at saturn5.com :-)
I wish I could help you! But I have never heard of the Safari browser
and without using it or getting more information about what is causing
your problem, I cannot do anything!
It is kno
At 7/8/2003 03:30 AM, Hiren Mehta wrote:
> Thnx alot guys You have been of great help :D
And don't forget this list! There are a lot of really talented people on
this list, so if you're trying to figure something out and haven't been
able to find an answer on your own, don't hesitate to ask
No there are no real pre-requisites to learning PHP. You should be
comfortable working with the OS that you're used to, but that goes without
saying. PHP is an almost ideal beginner's language. Knowledge of Linux is
certainly not required. There are PHP installers for Windows and Mac that
are p
Hello
I need help.
I'm querying a database then printing the results in a table. I want the result to be
in a table with 2 columns per row.
something like that
---- --
-- row 1
How do I specify it that I just want to check to see if the form field was
blank and if so, inform the user? I know I could do this with JavaScript
but I need to be able to do correct conditions.
thanks
"Paul Chvostek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, Jul 0
Thnx alot guys You have been of great help :D
Regards,
Hiren Mehta
- Original Message -
From: "Ray Hunter" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 3:26 AM
Subject: Re: [PHP] New to PHP
> If you are on developing on linux then that would be good
Only if you are planning on using PHP & MySQL on Linux. If you are going
the windows direction, then you don't need too.
good luck
"Hiren Mehta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you suggests any pre-requisites before starting off with the books?
> Someone told me
If you are on developing on linux then that would be good.
however, i strongly encourage gaining knowledge of programming concepts
if that is what you are doing with php. Having a solid foundation of
programming concepts will help you in php and any other language.
--
BigDog
On Mon, 2003-07-07
Do you realize that link does not work with the Safari browser? it just
shows up blank :(
Rick
When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has opened
for us. - Alexander Graham Bell
> From: "Robert Samue
Well, I redid the code a bit but it is still blowing up with the same error
message. I also did the echo bit and it returned "Resource id #10". What
ever that is. At least I know its returning something. But when I did
mssql_row_nums($result), it returned the value 0. I'm not sure if this is
w
Do you suggests any pre-requisites before starting off with the books?
Someone told me it would be much better if I learn Linux first
Hiren
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Hiren Mehta" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, July 08,
There are many great books to help get you started. Infact.. believe it or
not.. for the complete newbie "PHP for Dummies" is a great chioce. It's
very well written and starts with no assumptions about your skill level.
But if you do happen to have some programming experience try "PHP and MySQL
Submit code that we can review. there is not enough info here for you to
recieve a complete response to your question.
--
BigDog
On Mon, 2003-07-07 at 15:11, Noah Solodky wrote:
> Help!
> I am receiving the same posting TWICE
> how do I configure things to just get one copy of postings??
>
-
here is what you can do:
1. buy a php book and go throw the basics.
2. read the php manual because it has tons of information.
3. write any type of program that you can to get familiar w/ language.
4. get a fundamental understanding of programming, object oriented
programming
Just my $0.02 for ya
Hi Hiren,
PHP is a great choice, there are a wealth of tutorials on the
Internet!!! I would recommend a great book for people like yourself...
PHP Fast and Easy by Julie Meloni... You can visit her website at
http://www.thickbook.com
I have both of her PHP books, and out of the 8 books on PHP he
If i am not mistaken your phpinfo is picking up the bundled mysql
package that comes with php.
You should still be able to connect to mysql. However, if you downloaded
the zip file instead of the installer then you should have a
php_mysql.dll file that you can put in your path that php should pick
On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote:
>
> if ($_POST["imgList"] = ""){
You're *assigning* a variable in this condition.
--
Paul Chvostek <[EMAIL PROTECTED]>
it.canadahttp://www.it
Anyone see why this will not stop executing the script when any of the
conditions are true.
thanks
if ($_POST["imgList"] = ""){
die ("Missing information for uploading. - The Image
List is empty. Please go back and enter in at least one file.");
}
elseif ($_POST["cat_nameID"] && $_POST["new_cat
At 7/7/2003 04:09 PM, Apollo (Carmel Entertainment) wrote:
> Well, lets see. I want free advertising too. How about I go to all the
lists I
> am member of and send emails like John from Rekall did "announcing"
widgets or
> services my company does. How will you react to that?
Your level of read
Hi I am new to PHP and would like to learn more about it. Which would be the best
place to start with besides the manual and what would you suggest is a pre-requiste
for learning PHP.
Thanks
Regards,
Hiren
IntrestingI have created 4 products that sell and a few scripts for free
(which helped me learn php) plus I co-webmaster for 2 sites that sell
scripts, around 40 of them totallycan i advertise for each of them here
one by one or do i have to do it by website or all 44 at once??
I know the
If you had actually read the reply, you would have seen that Steve
was commenting on your declaring the list an "open-source" list, not
saying it was fine for John to send his email to this list (or any
other list).
--- "Apollo (Carmel Entertainment)" <[EMAIL PROTECTED]> wrote:
> Well, lets see.
Help!
I am receiving the same posting TWICE
how do I configure things to just get one copy of postings??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, lets see. I want free advertising too. How about I go to all the lists I
am member of and send emails like John from Rekall did "announcing" widgets or
services my company does. How will you react to that? We all have something to
sell or advertise. Opensource or non-opensource, if you are ch
I have set up a new development machine on my windows xp using APACHE
version 2.0.46. Next, I set up PHP version 4.3.2 and MySQL version
4.0.13.
Then, when I tested the installation, phpinfo() lists my CLIENT API
VERSION for MYSQL as 3.23.49.
1. Is this normal?
2. If not, what have I done wron
You could save all of the form data in session variables, when they
click edit re-populate the form fields with the session data.
>>> "Artoo" <[EMAIL PROTECTED]> 07/07/03 04:00PM >>>
Anyone know where I can view some sample code that does the following?
When the user clicks on SUBMIT, they are ta
Anyone know where I can view some sample code that does the following?
When the user clicks on SUBMIT, they are taken to a confirmation screen
which they can click an EDIT button or SUBMIT button. If they click on the
EDIT button they are taken back to the first form. How do you repost the
data th
At 7/7/2003 03:07 PM, Apollo (Carmel Entertainment) wrote:
> If you are charing for your product and your source is not open, you
have no place on
> opensource lists.
Just out of curiosity, where did you get the idea this is an "open source"
mailing list? There are plenty of commercial PHP prod
Hello
can any one recommended a FREE PHP /MYSQL shopping cart,,that they have
set up themselves??
thanks so much
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just a quick message to let everyone know that after ten months I have
finally released the first official open source version of eNetwizard
Matrix Server, my sophisticated content management system and
application server. All it needs is PHP, MySQL, and Apache. Full
instructions are included
On Mon, 7 Jul 2003 21:01:40 +0100 (BST), Graham Rule wrote:
>The only place that they are
>available is to PHP scripts run in the relevant directory.
Which means that if a hacker finds a cross script hack in one of those
directories (ie, if you have a security hole in one of your php
scripts), t
Are you trying to find out who is currently logged on locally? Who
the webserver is running as? If you want to know who is logged in
locally, you can use whoami from the command line (or via exec,
passthru, or system). You can also check out
http://www.sysinternals.com for some neat comand line too
On Mon, 2003-07-07 at 05:49, E.D. wrote:
> Hi,
>
> I'd like to know which licence has the documentation.
> PHP licence ? free licence ? public domain ? other ?
>
> In other words, I want to include some parts in a commercial product,
> can I ?
>
> Please answer only if you *know*, I can't go wi
On Mon, 30 Jun 2003, Peter Janett wrote:
> This issue seems to be a huge issue, and I've been looking for a good
> solution for quite a long time. My concern is that a shell emulating PHP or
> Perl script run as Apache can read or copy ANY PHP script used with PHP as
> an Apache module.
The reaso
I have used MAS90. If you're using MAS90 you'll need to create an ODBC
connection (http://us3.php.net/manual/en/ref.odbc.php). If it's MAS200 (SQL)
use mssql functions (http://us3.php.net/manual/en/ref.mssql.php). By
installing the MAS90 client software you install the necessary ODBC drivers
assumi
STOP SPAMING the list. Is your product free of charge/ opensource? NO! If you
are charing for your product and your source is not open, you have no place on
opensource lists.
This is 3rd list you are spamming. Somebody block this free-rider from this list.
BTW, MSAccess can be had for less and you
Micah,
Echo your SELECT statement to make certain it reads the way it should.
Test for number of rows returned, or an error - $result probably contains
nothing, that is it's not pointing to an array.
Miles
At 01:23 PM 7/7/2003 -0600, Micah Montoy wrote:
Anyone see what is wrong with this?
//ge
On Mon, 7 Jul 2003 21:07:14 +0100, you wrote:
>check sessions
>if session is not set
>check cookie
>if cookie is not set
>checkip
>if ip is not set
>do a reverse ip check
>if that too comes clean then allow the person a vote
>
>as you can see i am trying my best to make sure that the visitor only
They have it set to "Show all errors except for notices".
-Mike
> -Original Message-
> From: Brian S. Drexler [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 2:18 PM
> To: 'Mike At Spy'
> Subject: RE: [PHP] mail() function
>
>
> Ok, so if it is a command line issue it's not th
I am curious if anyone is using PHP to connect to a MAS 90 or 200
database?? I am interested in any info on this if anyone has any...
THX,
Joe
Micah Montoy wrote:
//get category info
$result = mssql_query("SELECT cat_id, cat_name FROM category WHERE cat_id =
'$cat_name'");
$catID = mssql_result($result,0,"cat_id"); //line 32
$catName = mssql_result($result,0,"cat_name"); //line 33
I'm getting the error:
Warning: mssql_result(): Bad row
Anyone see what is wrong with this?
//get category info
$result = mssql_query("SELECT cat_id, cat_name FROM category WHERE cat_id =
'$cat_name'");
$catID = mssql_result($result,0,"cat_id"); //line 32
$catName = mssql_result($result,0,"cat_name"); //line 33
I'm getting the error:
Warning: mssql
Hey Guys,
I need a little help coz I dont know if i have missed anything in my
"design"
1)
I want to make "rateing/voteing system" (something like the one that is
being used at hotscripts) that will take around 5 parameters via radio
buttons and make sure that the person cant rate/vote more than o
Sparky Kopetzky wrote:
and intercepting it with:
if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); }
However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work.
Anyone know why this doesn't work??
Yes. You are using an assignment operator where you
"Bob G" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Please help I am going quite mad.
> ... The PHP.INI file is in the PHP directory.
the php.ini in your PHP directory is useless
It needs to be in 1 of 3 places...
1) the IIS root directory, meaning where IIS EXE is at,
*n
hi
i'm interested in learning more about the PEAR project, and the
possibility of incorporating
PEAR code in my future projects. i was wondering if anyone can recommend
some good
PEAR tutorials. i also wanted to get an idea as to the percentage of
people who use PEAR
on a regular basis in
Never really thought about that, but the perms are set at 644 for the script trying to
do the actual function.
I ran the command to find the version at command line, but the script that sends mail
is part of a web site (so I am running it through my browser).
-Mike
> -Original Message--
Hi!
I'm passing this url to the script:
http://www.fttta.com/auction.php
and intercepting it with:
if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); }
However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so
this should work.
Anyone know why this doesn't work
Can you run a regular phpinfo() command?
-Original Message-
From: Mike At Spy [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:57 PM
To: [EMAIL PROTECTED]; Mike At Spy
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] mail() function
I can't tell what the version is, but I can tell you th
I've gotten that error message when running PHP from the command line. The script
still works even though it gives me that error though. If anyone figures out what
it's from or how to fix it I'd be interested in their solution.
-Original Message-
From: Mike At Spy [mailto:[EMAIL PROTEC
I can't tell what the version is, but I can tell you that the kernel is:
2.4.7-10
Maybe it has something to do with what identity php or sendmail is running under?
Thanks,
-Mike
> -Original Message-
> From: Adam Voigt [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 1:01 PM
>
1 - 100 of 155 matches
Mail list logo