Look up htmlentities() in the php manual and see if it'll work for you.
Hugh
- Original Message -
From: "Merlin" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 30, 2006 1:28 AM
Subject: [PHP] Outputting text "
Hi there,
I would like to output following text with php:
How can I do that
AM
Subject: Re: [PHP] please help me I try to post my question to Php.net
2-3times
Hugh Danaher wrote:
If you want to preserve the blank spaces then try;
str_replace(" ", " ", $contents); // is html for blank space.
HTH
HTD
no he don't:
qote:
> read text file
If you want to preserve the blank spaces then try;
str_replace(" ", " ", $contents); // is html for blank space.
HTH
HTD
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 15, 2006 10:26 PM
Subject: [PHP] please help me I try to post my question to Php.net 2
Suresh,
You could use the link to pass your variable to the next page, or to the
same page:
Instead of
$count=0;
use
if (!isset($_GET['count'])) $count=0;
Then for your link use
print "http://www.whatever.com?count=$count>link to new
page"
or use
print "link to same
page"
if you
Philip,
You'll often get an error call on a line when there is a problem on the
previous line. Say, you forgot to end a line with a semicolon, then it will
error the next line.
Hugh
- Original Message -
From: "Philip W." <[EMAIL PROTECTED]>
To:
Sent: Saturday, February 04, 2006 11:1
Use php's ftp commands.
Hugh
- Original Message -
From: "Dave" <[EMAIL PROTECTED]>
To:
Sent: Saturday, January 29, 2005 11:11 AM
Subject: [PHP] Permissions on uploaded image don't allow for over writing
PHP List,
The Situation:
I am building a content management system where users
Chris,
I've done something like this to update website's static pages. Basically,
in a php script I've replaced all of the "print" statements with "$line.= "
statements to accumulate all the items you want printed into one long
string. I've then ftp'ed this string, along with the name of the h
Ross,
Try something like this in your form:
$description
You can then edit the contents of the cell
Hope this helps.
Hugh
- Original Message -
From: "Ross Hulford" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, January 18, 2005 12:15 AM
Subject: [PHP] Textarea and Php
Is there a way to add and
Bruno,
This often occurs when there is no closing bracket " } " for a conditional
statement or a loop.
hth
Hugh
- Original Message -
From: "Bruno Mattarollo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 2:51 AM
Subject: Re: [PHP] parse error, unexpected $
Chris,
It looks like your data in date_year is not in a format that supports a
simple DESC sort. Look into getting the column formatted in -mm-dd
order (see the mysql manual for this). Read the data in your column, format
it, pump it back into the database, then change the column type to 'dat
Gloria,
Glad to help, but I'd need to see the code that failing.
Hugh
- Original Message -
From: "Gloria L. McMillan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 4:53 PM
Subject: [PHP] Problem Display of data
> Hi, again.
>
> I got one suggestion but it did no
My bad:
while (!feof($fp))
instead of what I wrote earlier.
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Matt Palermo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 10:59 PM
Subject: Re: [PHP] delet
Matt,
Try something like:
I didn't check this before posting so there could be some syntax issues, but
the flow is what you need. Open a file for reading, read it line by line to
find a text phrase, accumulate the lines (less the one with the phrase) in a
new variable, close the file, open it aga
try something simpler and see if it passes:
$SelectQuery="SELECT SUM(GiftSubscriptions) AS GiftSubs FROM Registration";
$Result = mysql_query($SelectQuery) or die("Something died in here!
".mysql_error());
- Original Message -
From: "Kurosh Burris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTE
Levi,
Very easy to do exactly what you want using php
1. write your link to a php page (described below) which includes the items
you want stored appended to the link "go to next page"
2. create a php page which contains the following:
Easy enough, but you'll need a form if you want user supp
Scott,
try changing:
print "\t\t$col_value\n";
to:
print "\t\tmailto:".$col_value.";>$col_value\n";
Hope this helps.
Hugh
- Original Message -
From: "Scott Thompson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 8:53 PM
Subject: [PHP] Adding a URL
> Hi,
>
Sounds like a Windows configuration issue and not a php issue. There's an
'open using' (or some such) option buried in the windows file menu that will
let you change this.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29,
JP,
Instead of::
global $nome;
global $email;
global $linguagem;
global $browser;
try:
$nome=$_POST['nome'];
$email=$_POST['email'];
$linguagem=$_POST['linguagem'];
$browser=$_POST['browser'];
Hugh
- Original Message -
From: "J. P." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday
conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result))
{
print "FTP connection has failed!";
print "Attempted to connect to $ftp_server ";
exit;
}
// upload the file
$fp=tmpfile();
fwrite($fp, $file_stream);
rewind($
Thanks Jason, I'll try that, and let you know the results. Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 11:48 AM
Subject: Re: [PHP] File Upload and ftp transfer problem
> On Fr
I'm trying to get the following script to ftp transfer an uploaded image file so as to
get around a file permission problem. The upload portion of this works without
problem, the ftp portion doesn't spit out any errors either, but the file transfered
is just the name of the uploaded temp file a
Emanuele,
Some parts of the world use the coma as the separator between whole numbers
and decimals (e.g. Germany & France) and php is formating the number
according to this style. I surmise that the numbers stored in your database
have been stored with comas separating the thousands from the hundr
Charles, it sounds like you want the most recent 9 articles ("...order set
to 1 so it shows up first when ..."), so why not something like "select *
from article_table order by id desc, limit 9" [assumes id is int not null
auto_incremented].
You could also increment the value in the field something
try two backslashes to escape php special characters
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 12:33 AM
Subject: [PHP] Ereg sass
I'm not sure why, but I can't include a period in my eregi statement:
[A-Za-
//When converting an image from gif to jpeg or png, you need to create an
intermediate image the same size as you want output. The following should
work, but it's not tested.
hope this helps,
Hugh
- Original Message -
From: "Patrick Teague" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
--
> function ResizeJPG($src) {
>
>global $full_img_url;
>//code below
>
> }
>
> ResizeJPG($src);
> --
>
> Thanks for your help!
> Nate
>
>
> "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL
In the receiving page, change your link from an tag to an then see what the error message says.
Hugh
- Original Message -
From: "Nate" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 2:55 PM
Subject: [PHP] Function or GD problem?
> Function or GD problem...
> I
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 11:37 PM
Subject: Re: [PHP] str_replace
> I just though up a better idea,
> put your conditional statements in your in
Mo,
"(we haven't found, in our initial research, a way to do this)"
You could format your variables before they're needed in the link
something like:
if(isset($x)) $x_link="&x=$x";
if(isset($y)) $y_link="&y=$y";
etc.
then your link would look like the following
someplace.com
"slug=1" is
if the header and footer info come from your config.php file, then you have
to get to that file before it's parsed by the server. Perhaps, splitting
config.php into three files (header.php, config.php and footer.php), then
when you want to print just call the middle file.
if(isset($_GET['print'])
In further thought on this, I'm not sure that $_POST['skill'] is an array.
Hugh
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 8:47 PM
Subject: [PHP] Checkboxes
> Hi
>
> I am trying to get results form checkboxes on a form.
The following is completely untested but might yield the results you want.
It assigns a value to the skill array, prints the post var, and then (I
hope) advances the array pointer to the next array element:
Good luck, hugh
if (count($_POST['skill'])>0)
{
for ($i=0;$i".$_POST['
if your system suports the commands, try imagecreatetruecolor() instead of
imagecreate(),
and imagecopyresampled() instead of imagecopyresized(),
hope this helps,
Hugh
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003
Kevin,
first, change your URL statement to: http://.../test.php?test=1 // the $
is not needed.
second, use $test=$_GET['test'] to get the transferred value into $test.
then, echo $test and see if it works.
Hugh
- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To:
echo""; // in this statement you are
asking that a number be a variable in php and that is not permitted.
try:
for ($i=0;$i<=10;$i++)
{
echo ""; // this way your select name is
"var_name[1]" and not 1
also,
echo "$productCode";
try instead,
echo "$productCode; // no needed here and t
some obvious errors:
$submiited on =date(1y-m-d'); // typo on submittedon and the date
format seems off, maybe you're looking for date('y-m-d') .
$query="insert into articles"
(date,submitted,status,title,lead,body,submitted by)
// if the field name is submitted by then you nee
simply:
$var1=99;
$var2=0;
$result=$var1*$var2; multiplication by zero is ok
if ($var2!=0) { //division by zero is bad "!=" means not equal
$result=$var1/$var2;
}
use brackets in complex equations
$result=$var1*(1+$var2);
hugh
- Original Message -
From: "Adriaan Nel" <[EMAIL PROTECTED
You might try changing to php?>
something about short tags
hugh
- Original Message -
From: "Karl James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 10:14 PM
Subject: [PHP] help needed with code!!
> Can anyone give me some pointers on why im note seeing
> An
Anthony,
Oh, I forgot to close the file, and it's an important step!
fclose($fp);
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 7:22 PM
Subject: [PHP] newbie: contents will not output
> I'm trying to test the
Anthony,
Try:
$file_to_open="http://www.weather.com";;
$fp=fopen($file_to_open,"r");
$contents=fread($fp,1); //reads to eof or ~10K whichever comes first
print $contents;
Hope this helps.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED
something like:
print "";
while ( statement )
{
$i++;
if ($i==1) print "";
print "";
your image code;
print "";
if ($i==4)
{
print "";
unset($i);
}
}
if ($i==1) print "";
if ($i==2) print "";
if ($i==3) print "";
print "";
might work
Tony,
You might want to try the online php manual, I hear it's very good.
You should be able to do all of the tasks you desire. Look for "image" in
your search.
Hope this helps.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March
John,
I reread your post, and spent a bit of time to rewrite my last post. This
should be more appropriate for your needs. you'll need to add a few lines
yourself to complete it. Let me know if it works.
hugh
";
$temp=fgets($fp,100);
$card_color=trim(preg_replace("Card Color:","",$temp));
ech
Actually you can input .GIF files but you can't output in that format on
most php-gd installs. The following script shows most of the steps you're
going to need to get an image resized. This script resizes files already
stored online but it can be changed to deal with a temp file.
Hope this helps
depending on how the text file is organized, this can be an easy task or
impossible. But, here goes:
If a line in the text file contains all the info about the card and is
organized routinely and separated by a special character ("," , ; or tab,
then you should be able to do something like the fo
get your field info from a mysql search then do:
print "".stripslashes($array_result['field'])."";
Hope this helps,
Hugh
- Original Message -
From: "Mirco Ellis" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 6:27 AM
Subject: [PHP] populat
move_uploaded_file();
- Original Message -
From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 10:33 PM
Subject: [PHP] I'm lost: text file upload
> Jason, I've already been looking at:
>
> http://www.php.net/manual/en/function.move-u
Rob,
create a mysql table containing usernames and passwords then do something
like the following:
Hope this helps,
Hugh
";
print "log in information";
print "Input your name: ";
print "Input your password: ";
print "";
print "";
}
else
{
call_user_func('mysql_log_in',$db, $table, $user,
and I wonder...
> On Wednesday 05 March 2003 13:37, Hugh Danaher wrote:
> > Help,
> > I've moved my upload script from one host to another, and what worked
once,
> > isn't working now. In the new site's phpinfo file I see that
file_uploads
> >
Help,
I've moved my upload script from one host to another, and what worked once, isn't
working now. In the new site's phpinfo file I see that file_uploads is set to "no
value" and in the old it was "on." What do I tell my system administrator to do to
get this feature enabled?
Thanks for any
Add the mysql_error() function to your script and run it again. Could give
you some hint at what is wrong.
$result = mysql_query($query,$connection) or die("Query
failed".mysql_error());
- Original Message -
From: "Diksha Neel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Ma
perhaps you are parsing out the spaces before inserting the vars in the
database?
- Original Message -
From: "Alberto Brea" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 7:58 AM
Subject: [PHP] Spaces collapsed in database
Hi, list
I had certain information in
try ereg_replace(",","",$value);
- Original Message -
From: "Jim Long" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:17 AM
Subject: [PHP] strip comma from $value
> Hi,
>
> I've figured out the way to solve my problem is to get rid of the commas
> before I
A basic html input command using an image will enable you to send the
coordinates of the mouse to the next script.
your x,y variables will become $coordinate_x,$coordinate_y
- Original Message -
From: "Minghua Yao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28,
Diksha,
A quick google search shows that "buttons" are likely a javascript thing,
not an html or php thing. Also, I agree with Jason Wong in that and tags should be in your script too.
- Original Message -
From: "DIKSHA NEEL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, Feb
Diksha,
It's very late in phpland perhaps all the coders have gone out for coffee.
However, perhaps "button" isn't what you want, try radio, submit or
checkbox.
Also, do a google search on html and button to see what's out there.
Cheers,
Hugh
- Original Message -
From: "DIKSHA NEEL" <[EMAIL
General builds of the GD library don't contain gif support. Visit the GD
site to see what they say about gif support. If you're building a graph
then use png; if an image use jpg.
Hugh
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday,
Alex,
You should either use png or jpg rather than gif. The most common builds of
the gd library support those image formats--go to the GD Library site to
find out why. The support of ttf fonts should be taken up with your host.
When testing whether the code in your image creation file works, us
Alex,
Easy to do what you want. Check out the "image" functions in the php
manual. There are some font limitations, specifically dealing with
alternate characters, but you'll find out what works and what doesn't soon
enough.
Hugh
- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
echo("| %s | %s | %s | %s | %s |", $array[id], $array[username],
$array[password], $array[status], $array[notes]);
try
echo "| %s | %s | %s | %s | %s |".$array[id]." ".$array[username]."
".$array[password]." ".$array[status]." ".$array[notes];
dots not comas between variables.
Hope this helps.
Hu
You could use the mail() function to automatically send an email to your
user. In the email could be an html page with the same form they'd filled
out plus some hidden input fields which would tell you that they are
updating their stored information. With this, your user gets confirmation
of what
If your customer views these items as different products then store them as
separate records in the same table.
My $0.02
Hugh
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 18, 2003 11:55 AM
Subject: [PHP] Multiple sizes for products
Hi all,
Al,
Something like the following should enable you to display a list of
whatever, then click on the record id to edit the record. This is a portion
of code which does the display, you'll need another portion to display the
record for editing.
Hugh
snip from street.php
Click on an ID number to ed
Try,
$Query="INSERT into calendar (meeting_name, meeting_place, meeting_date,
meeting_note)
values
('$meeting_name','$meeting_place','$meeting_date','$meeting_note')";
Hope this helps,
Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesda
Devin,
I did a 10 question quiz for a local museum which involved using radio
buttons and automatic advance to the next question. At the end I summed the
correct answers and gave a score. I've wanted to shorten the whole thing
and use a mysql table, but...
The following snip should give you a bit
Nah, I didn't get it either.
- Original Message -
From: "Roger Lewis" <[EMAIL PROTECTED]>
To: "Martin Towell" <[EMAIL PROTECTED]>
Cc: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 10:36 PM
Subject: RE: [PHP] test
> Martin,
> I'm sending too [EMAIL PROTECTED] also.
you could start with something like:
$old_string="44 55 99 111";
$new_string=ereg_replace(" ","",$old_string);
echo $new_string;
should display
445599111
There are other regular expression aids listed on the page at:
http://www.php.net/manual/en/function.ereg
Eric,
When the page gets reloaded it "forgets' the variables passed to it from the
previous page. Try putting the log in information and anything else needed
in hidden fields in your form.
Hugh
- Original Message -
From: "eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, De
If you have control of the pages the visitor just left, then you should be
able to modify the links there and pass forward a variable similar to the
following.
Then on your receiving page you can check the value of $var and do something
with this info.
Hope this helps,
Hugh
- Original Mes
Shams,
Most database actions you want your user to do should be limited to them
writing to one record and/or updating that one record. If instead you want
to update information on several records, then you'd need a statement like:
$table="your_table_name";
$query=mysql_query("update $table set col
select
> database.");
>
> $sql = "UPDATE user
> SET
> name = '$name',
> lname = '$lname',
> mobil = '$mobil',
> email = '$email',
> url = '$url',
> WHERE id= '$id'
>
> ";
>
> $result =
please post lines 20 and 21, get rid of all @, the comma after url='$url'
and show your most recent code. Others have posted and given you good
advice, you should incorporate their suggestions.
hugh
- Original Message -
From: "Ben C." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wedn
try
$sql = "UPDATE $table_name SET name = '".addslashes($name)."', lname =
'".addslashes($lname)."', mobil = '".addslashes($mobil)."', email =
'".addslashes($email)."', url = '".addslashes($url)."', WHERE id= $id ";
// mysql needs single quote marks ( ' ) around input values that are not
numbers
why
'.$table.'
and not
'".$table."'
with what you've got now, I believe you are looking for
.table name.
instead of
table name
and if your table name is only one word, a good practice I'm told, ditch the
' and " marks entirely
and just
put
if (!isset($blocker))
{
your form goes here
within your form add
print "
end your form
}
With this, your input form is on the page when the page first loads (and
$blocker is not set), but disapears when the data is submitted and the page
reloads. Even if the us
Yes I did. Thanks.
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 2:30 AM
Subject: Re: [PHP] Test links?
> On Sunday 01 December 2002 15:33, Hugh Danaher wrote:
> > Not sure how to supre
Not sure how to supress the warning message that PHP automatically does
when you haven't got a valid URL though.
should be able to surpress errors by adding an * before the result variable
*$fp = fopen($linkdata['linkurl'],"r");
Hope this helps--or even works for this particular problem.
Hugh
mp and offset). Finally, if
you're planning on storing the data in a database table, each table will
need to be created on the fly--it can be done, but if you're struggling with
this, it'll take you some time to get the back end working.
Hope this helps,
Hugh
- Original Mes
Floyd,
if you are using mysql then you can use the mysql_list_fields to get the
names of the mysql table's column (field) names, then do mysql_num_fields to
get the number of columns (fields), then fill the columns with whatever
using a while loop.
I've attached a php page that fetches this info fr
Did you register just to plug this?
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 9:02 PM
Subject: [PHP] OT- "Private Registrations" for Domains
> Has anyone heard of or used somthing like this, just received this notice
from my reg
Jim,
Regarding "undefined function: imagegif()," It could be that your build of
the "GD Library" doesn't include gif support. You can try replacing this
function with imagejpg() or imagepng(). Imagepng() will likely be faster
and sharper than imagejpg().
Hugh
- Original Message -
From: "J
Jim,
on the calling page change
echo "\n";
to
echo "something here\n";
Now, when you click on the link, the error message should show instead of
the broken box.
Hugh
- Original Message -
From: "Jim Hatridge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:2
Tom,
It sounds like the file you want is online someplace. So, perhaps it's
fread() that you want to use. With it, you can get the html output of a
page.
Hugh
- Original Message -
From: "Tom Woody" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 9:28 AM
Subje
Just do ereg_replace(" ","+",$var) on the receiving end and be done with it.
- Original Message -
From: "Bob Eldred" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 11:24 PM
Subject: Re: [PHP] plus sign has changed to space after POST
> I don't believe it has
Good lord they're at it again!
- Original Message -
From: "MICHAEL OSHODI" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 10:51 PM
Subject: [PHP] REPLY NEEDED
ASSISTANCE
WE ARE MEMBERS OF A SPECIAL COMMI
Try:
number_format()
Hugh
- Original Message -
From: "Sascha Cunz" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 5:37 PM
Subject: Re: [PHP] Subtracting Money
Hi Stephen,
> I'm having a problem. I need to subtract
John,
Google search turned up nada. Perhaps it's just a typo.
Hugh
- Original Message -
From: "@ Edwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 10, 2002 11:08 PM
Subject: Re: [PHP] tag
>
> "John Meyer" <[EMAIL PROTECTED]> wrote:
>
> > I'm doing some PHP wo
Stephen,
after your line:
>$query = "SELECT * FROM orders WHERE orderid = '$orderid'";
you should add:
mysql_query($query);
in your code line you've just set your variable--you haven't asked mysql to
do anything.
Hope this helps.
Hugh
- Original Message -
From: "Steve Jackson" <[EMAIL
Paul,
Got any spaces or lines above the "
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 9:53 AM
Subject: [PHP] Am I blind? simple 15 line code producing error
> Perhaps I am blind but I have the following simple code that gets me
> errors:
> session_start();
> require_once ("config.inc
Bryan,
I don't think the variable has any value before assignment--it isn't zerro
nor is it null. Check the manual for isset() and empty()'
Hope this helps.
Hugh
- Original Message -
From: "Bryan McLemore" <[EMAIL PROTECTED]>
To: "PHP - General" <[EMAIL PROTECTED]>
Sent: Sunday, November
What you need to do with the input number is to do an ereg_replace() and
eliminate the commas from the string, then use the string variable where
needed. Then, when you want to display the variable, use the
number_format() function.
Hope this helps,
Hugh
- Original Message -
From: <[EMAIL
IFF they just left one of your other sites, then you should be able to pass
a variable in the other site's header such as:
php.net/function-name?variable=from_somewhere_I_own
if the variable isn't set, then they came from a site you don't own.
or you could send them to a unique function-name wh
Thanks Edwin, I'll forward your notes to my new host. I also checked the
archives and find that there's an extension=mysql.so snip that needs to go
in the php.ini file, and I'll forward this to my host too.
Thanks,
Hugh
- Original Message -
From: "@ Edwin" <[EMAIL PROTECTED]>
To: <[EMAIL P
Help!
I am getting the following error message for :
Fatal error: Call to undefined function: mysql_connect() in
/home/www/test.somename.org/aux/db-mod.php on line 34
I have used this call successfully on php v4.0.6, and am now trying it on a new
install (which someone else did, as I haven't
>From reading your post, I believe you've successfully gotten the file upload
to work and now you're interested in using uploaded files (but with smaller
dimensions) on your webpage. What you'll need to do is create a separate
file named resize.php which includes only the following code.
On your
You might also want to add a "quality" factor to the imagejpeg() function if
the image "as is" looks a bit ratty.
$factor="100" // or another suitable number between 100 and 0
imagejpeg($im, "test/im.jpg",$factor);
hope this helps.
Hugh
- Original Message -
From: "Andrew Chase" <[EMAIL PR
Thanks Richard,
I changed from using to graph and now get my graph, on a page of its own,
without any error messages. Works just fine, or will, when I change how it
gets its data. However, I do want to have the graph display on a page with
other information so I'm back to wanting to use some so
f this doesn't help you have to post your code (graphit.php) here so we
can
> look at it.
>
> /Joakim
>
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 05, 2002 10:05 AM
> > To: php
> > Subjec
try double \\ to escape the special characters used by php for variables and
what not. I think I read it here on a previous post.
Hope this helps
Hugh
- Original Message -
From: "Beverly Steiner" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Saturday, June 29, 2002 7:58 AM
imagepng() should work. you can save the file on your server then call it
up wherever you need it.
The manual has more info on using image functions just type in image.
hugh
- Original Message -
From: "Campano, Troy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 200
1 - 100 of 237 matches
Mail list logo