[PHP-DB] I want to upload
I want to upload a image, from the client, to the server. I use PHP and MySQL and Apache in the server. ¿How can I do it? _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: I want to upload
Here are some articles I found on different forums while on uploading files
etc, these should give you a head start.
use the move_uploaded_file ( string filename, string destination)
-> the one below is great it explains it in a very simple manner:
How do I find the file I just uploaded to the webserver and load it?
No matter where the file is uploaded, php will store certain variables for
you containing information about the file. The full path and filename are
located in the variable with the same name as your file form field.
Let's say you called your file upload field "Picture" and that your Apache
temp directory is /inetpub/tmp/.
In your script, the variable $Picture will contain "/inetpub/tmp/1002.tmp"
where 1002.tmp is the temporary name of the file uploaded. The variable
$Picture_name will contain the origional file name.
Performing a copy ($Picture, "./images/" . $Picture_name); will put the
image, proper name and all, in the images directory under the script root.
If the security on the server will not allow you to use the copy command,
try the file commmands to create and write a new file: (fopen, fread,
fwrite). If the server security will not allow that command either, try
putting the images into a blob or binary field in your database.
->Here is an example of a script i found from some foroum :
$realname was uploaded successfuly to the upload directory";
print "";
copy($_FILES['userfile']['tmp_name'],
"/Library/WebServer/yourURL.com/upload_directory/".$realname);
} else {
echo "Possible file upload attack: filename
".$_FILES['userfile']['name'].".";
}
}
?>
Good luck with it, I my self is a newbie hope it helps you.
GD
"Quique Notelodigo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to upload a image, from the client, to the server.
>
> I use PHP and MySQL and Apache in the server.
>
> ¿How can I do it?
>
> _
> Charla con tus amigos en línea mediante MSN Messenger:
> http://messenger.microsoft.com/es
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: I want to upload
Well its me again ,you can also check this thread i've posted to get some more information: " Help/Advice/Suggestions need to Upload 9 images on one submit button. " GD "Quique Notelodigo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to upload a image, from the client, to the server. > > I use PHP and MySQL and Apache in the server. > > ¿How can I do it? > > _ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.microsoft.com/es > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] header e frames
Como é que faço para ir para a frame _parent utilizando o comando header("pagina.php")
__
Rui Palma
ICQ#: 171381429
Current ICQ status:
+ More ways to contact me
__
RE: [PHP-DB] header e frames
English?
-Original Message-
From: Rui Miguel Palma [mailto:[EMAIL PROTECTED]]
Sent: jeudi 30 janvier 2003 16:30
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [PHP-DB] header e frames
Como é que faço para ir para a frame _parent utilizando o comando
header("pagina.php")
__
Rui Palma
ICQ#: 171381429
Current ICQ status:
+ More ways to contact me
__
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP and ORACLE conection error
"xxx " <[EMAIL PROTECTED]> wrote... :
> hy,
> i'm having a problem with my project
> i have an oracle server on a computer named oracle and in apache htdocs files i have
>a directory special for my project...
>
> 1 in that dir i have a html file named index.html
> here i get the username and the password and post it to the validate.php file
>
> in the validate.php file:
> the first i have is
> header("Cache-control:private"); ?>
> then
>
> 1. i get the variables
> $name=$_POST['username'];
> $password=$_POST['pass'];
>
> 2. i register the variables
> session_register("name") and session_register("password"),
>
> 3. i verify if they can acces to the database
> if( ociplogon($name,$password))
> $ok='true';
> else $ok='false';
oops... You are assigning $ok to a *string* of a readable values 'true'
or 'false'.
> 4. in the body of the validate.php i have a script in order to load a new page
>
>
> var ok=
> if(ok==true)
> window.location.href="good_page.php";
> else
> window.location.href="error.php"
> window.reload();
>
The string $ok is not empty, and thus will always evaluate as TRUE. You
need to assign it the boolean value a few lines above. Not a string.
> well
> that's it
> it works but not finei know it isn't the best way but it worked
> till some days i have any problems but since today i don't know what is happening...
>
> sometimes it works loading the good_page but sometimes it loads the error page
> i think it is something with authentification and session but i need a solution
>quickly...i have no time to rethink all...
>
> if you have a solution or another type of making all i have made send me a reply
> thanks a lot...
> cybercop78
>
> http://www.idilis.ro - Stiri, e-mail gratuit, download,
> SMS, server de counter-strike, hosting gratuit, servicii internet...
> Fii cu un pas inaintea celorlati!
--
Maxim Maletsky
[EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] function needed
Use str_replace
$FQDN = "www.domain.com"
$domain_only =
str_replace(array('www.','.com','.mil','.edu','.org','.gov'),'',$FQDN);
Gary Every
Sr. UNIX Administrator
Ingram Entertainment
(615) 287-4876
"Pay It Forward"
mailto:[EMAIL PROTECTED]
http://accessingram.com
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 8:20 PM
To: Shahar Tal
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] function needed
function get_domain($domain){
preg_match('/^(www.)?([A-Za-z_-]+).+$/',$domain,$arr);
return $arr[2];
}
Shahar Tal wrote:
>Hey
>
>I'm looking and wondering for a function, as i'm trying to do something,
and
>here it is.
>
>I'm using the SSI call :
> .
>to get the domain name I am on. this will output
>
>www.domain.com.
>
>I would like to use PHP in order to take this string, the output, and cut
>the "www." and the ".com" from it, so only the "domain" will remain.
>ofcourse we can also have situations whith ".org" and ".net" and even where
>there's no "www." but the main thing I need is to remove whats
>after the second dot and before the first dot, along with the dots.
>
>I don't mind writing all the posibilities to the function, ie, all the
>possible extenstions that the function may need to cut, I just need it to
>take
>the text from the SSI, and cut everything but the "domain" part, which is
>the address itself.
>
>what would be the best way to do it?
>thank you!!
>
>
>
>
>
--
The above message is encrypted with double rot13 encoding. Any unauthorized
attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP-WIN MYSQL Double results
Please help: I am getting double results when loading an html/php page. I am not duplicating the query nor the while loop. MYSQL console returns single rows, meaning that the data has not been entered into the database twice. Any ideas? Thanks in Advance, Chris Deam -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP-WIN MYSQL Double results
Post your code. > -Original Message- > From: Chris Deam [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 2:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] PHP-WIN MYSQL Double results > > > Please help: > > I am getting double results when loading an html/php page. I am not > duplicating the query nor the while loop. MYSQL console > returns single > rows, meaning that the data has not been entered into the > database twice. > Any ideas? > > Thanks in Advance, > Chris Deam > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: PHP-WIN MYSQL Double results
$row[0] $row[2] $row[1] $row[3]"; } ?> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Storing IP into DB
Hi, I wondered if anyone could help me. I would like to store the user IP only once per multiple visits. The code below store the user IP on every visit which is not my intention. Please I would like to have the IP stored at once upon repetitive visits of the user. Thank Below is my code - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[PHP-DB] Storing IP into DB
Hi, I wondered if anyone could help me. I would like to store the user IP only once per multiple visits. The code below store the user IP on every visit which is not my intention. Please I would like to have the IP stored at once upon repetitive visits of the user. Thank Below is my code - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: [PHP-DB] Storing IP into DB
> I wondered if anyone could help me.
> I would like to store the user IP only once
> per multiple visits.
> The code below store the user IP on every visit
> which is not my intention.
> Please I would like to have the IP stored at once upon
> repetitive visits of the user.
> Thank
> Below is my code
>
>
> $ip_address = getenv ("REMOTE_ADDR");
> $the_date = date("Y-m-D");
> $connect = mysql_connect("localhost", "user", "pass") or die("Cant
Connect!");
> mysql_select_db("ipvisits")or die("Cant Connect To Database");
> mysql_query("INSERT into visitorsips (ip, date) VALUES ('$ip_address',
'$the_date')");
> mysql_close($connect);
Make your 'ip' column UNIQUE in your table and ignore errors.
Or, set a flag in a session or cookie when you save the IP and if that flag
is present on other pages, then don't save the IP.
---John Holmes...
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Re: PHP-WIN MYSQL Double results
Try this:
After this line:
> $prcp = mysql_query($pquery);
add this line:
print_r($prcp);
(For additional info: http://www.php.net/manual/en/function.print-r.php)
What that should do is print the results directly from your query (which are
stored as an associative array) before anything else is done with it. So, if
your query is returning a single row in the MySQL monitor, and you expect it
to return the same thing when called from your script, print_r() should
confirm that for you.
If print_r returns double results, then there's a problem with your query.
If it doesn't then there's a problem further down in your code.
> -Original Message-
> From: Chris Deam [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Re: PHP-WIN MYSQL Double results
>
>
> $pquery = "SELECT
> problem_list.code,freetext,problems.DESC1,stopdate,problem_lis
> t.problem_id
> from problem_list, problems where patient_id='$patid' AND
> problem_list.code
> = problems.code ORDER BY stopdate DESC";
> $prcp = mysql_query($pquery);
> ?>
> ALIGN="CENTER">
>
> while ($row = mysql_fetch_array($prcp)) {
> echo " VALUE=\"$row[4]\">
> $row[0]
> $row[2]
> $row[1]
> $row[3]";
> }
> ?>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Storing IP into DB
> Make your 'ip' column UNIQUE in your table and ignore errors. > Or, set a flag in a session or cookie when you save the IP and if that flag > is present on other pages, then don't save the IP. Or I believe you can use REPLACE INTO... Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP - mysql_info question
I have written a PHP function that uses the MySQL command: LOAD DATA INFILE ... The command returns the result in mysql_info() Records: 42 Deleted: 0 Skipped: 0 Warnings: 5 My question is how do you find out what the 5 warnings are. Does MySQL put them in a log file somewhere and is there a way to display them to my user through PHP. Thanks, Mark. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Storing IP into DB
> > Make your 'ip' column UNIQUE in your table and ignore errors. > > Or, set a flag in a session or cookie when you save the IP and if that flag > > is present on other pages, then don't save the IP. > > Or I believe you can use REPLACE INTO... True. I don't think all databases implement REPLACE, though... so it depends on your config. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: PHP-WIN MYSQL Double results
Okay, I used print_r but now I get "Resource Id #19" no sort of array info. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] SQL: Limit 1 usage?
Currently I have a script that contains this piece of code: $sql = "SELECT MIN(network) AS 'network' FROM accessnums WHERE areacode='$_POST[areacode]' and city='$_POST[cityselected]'"; This works fine and accomplishes what I need. Some requirements changed today and I now need to get more than just "network". In MySQL command line I tried this: SELECT * FROM accessnums WHERE areacode="504" and city="New Orleans" ORDER BY network LIMIT 1; This gives me the exact response I require. However, when plugging it into my php code: $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and city='$_POST[cityselected]' ORDER BY network LIMIT 1"; It can't execute the query. Any suggestions? Jason Wesley Upton - Web Design / Development - Application Development = Bayou Internet.888.30.BAYOUhttp://www.bayou.com = Tel: 318.338.2033 ICQ: 155895142 AIM: jasonwesleyupton Fax: 318.323.5053 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Make thumbnail of a jpg image.
Hi All, Small question: How can I make a thumbnail of a jpg image? Your help is appreciated. Thanks. Rene. === R. Groothuis - Aeqis Gruttosingel 50 2496 HX Den Haag - The Netherlands E-mail: [EMAIL PROTECTED] Tel: +31-15-3618824 Mobile: +31-6-51807877 Fax: +31-15-3618823 -Original Message- From: Chris Deam [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: PHP-WIN MYSQL Double results Okay, I used print_r but now I get "Resource Id #19" no sort of array info. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] SQL: Limit 1 usage?
Your missing a ' before the area code. -Original Message- From: jason wesley upton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] SQL: Limit 1 usage? Currently I have a script that contains this piece of code: $sql = "SELECT MIN(network) AS 'network' FROM accessnums WHERE areacode='$_POST[areacode]' and city='$_POST[cityselected]'"; This works fine and accomplishes what I need. Some requirements changed today and I now need to get more than just "network". In MySQL command line I tried this: SELECT * FROM accessnums WHERE areacode="504" and city="New Orleans" ORDER BY network LIMIT 1; This gives me the exact response I require. However, when plugging it into my php code: $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and city='$_POST[cityselected]' ORDER BY network LIMIT 1"; It can't execute the query. Any suggestions? Jason Wesley Upton - Web Design / Development - Application Development = Bayou Internet.888.30.BAYOUhttp://www.bayou.com = Tel: 318.338.2033 ICQ: 155895142 AIM: jasonwesleyupton Fax: 318.323.5053 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] SQL: Limit 1 usage?
> $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and city='$_POST[cityselected]' ORDER BY network LIMIT 1"; > > It can't execute the query. Any suggestions? Unless it's a typo, you're missing a single quote around $_POST[areacode]... ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] more info about data connection with Microsoft Access Driver
Dear Sirs,
I am working with ms access database and I am using following connection;
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; .. .
I want to learn more for handling data
Where can I find good source for this subject?
Best Regards
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Flash, MySQL & PHP
I've not worked with Flash, so if anyone has experience I'd appreciate their comments. I understand that Flash presentations are developed on a Windows box, using Flash MX (FMX), I also understand that FMX has a scripting language, so it can be used to create forms, display data, etc. My questions are: 1. Can the Flash file be served by any web server, or does it need its own server running on the same machine as the web server? 2. Can PHP feed data to the Flash script, and vice versa? I am assuming it operates much like Javascript, entirely through the browser plug-in. I guess what I'm really asking is whether, after initial development of the Flash file can the the rest be done from a LInux/BSD box with PHP and one of the databases PHP talks to, or is it more efficient, in this case, to go the Microsoft .asp and SQL-Server route. Regards - Miles Thompson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] data inserting problem
Dear Sirs,
I am using following script to insert data into ms access data with php
script
$UserName = "ara";
$Password = "123456";
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");
// Microsoft Access connection string.
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)};
DBQ=C:\\Xitami\\webpages\\sig.mdb");
$sql = "INSERT INTO Users (UserName,Password) values ("
.$conn->qstr($UserName).','//line 20
.$conn->qstr($Password).")"; //line 21
$conn->Execute($sql);
But I am getting following error;
---
Warning: (null)(): Invoke() failed: Exception occurred. Source:
ADODB.Connection Description: Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another. in
C:\XITAMI\webpages\php\temp\AddData.php on line 20
Warning: (null)(): Invoke() failed: Exception occurred. Source:
ADODB.Connection Description: Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another. in
C:\XITAMI\webpages\php\temp\AddData.php on line 21
Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft
OLE DB Provider for ODBC Drivers Description: [Microsoft][ODBC Microsoft
Access Driver] Syntax error in INSERT INTO statement. in
C:\XITAMI\webpages\php\temp\AddData.php on line 22
---
What do I need to do? I presuate any web source which is explaining ms
access data handling
Best Regards
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] SQL: Limit 1 usage?
Doubly wrong PHP syntax.
Try instead:
$sql = "SELECT * FROM accessnums WHERE areacode='{$_POST['areacode']}' and
city='{$_POST['cityselected']}' ORDER BY network LIMIT 1";
Ignatius
- Original Message -
From: "jason wesley upton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 9:42 PM
Subject: [PHP-DB] SQL: Limit 1 usage?
> Currently I have a script that contains this piece of code:
>
>
> $sql = "SELECT MIN(network)
> AS 'network' FROM accessnums WHERE areacode='$_POST[areacode]' and
city='$_POST[cityselected]'";
>
>
> This works fine and accomplishes what I need. Some requirements changed
today and I now need to get more than just "network". In MySQL command line
I tried this:
>
> SELECT * FROM accessnums WHERE areacode="504" and city="New Orleans" ORDER
BY network LIMIT 1;
>
> This gives me the exact response I require. However, when plugging it
into my php code:
>
> $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and
city='$_POST[cityselected]' ORDER BY network LIMIT 1";
>
> It can't execute the query. Any suggestions?
>
>
>
>
> Jason Wesley Upton - Web Design / Development - Application Development
> =
> Bayou Internet.888.30.BAYOUhttp://www.bayou.com
> =
> Tel: 318.338.2033 ICQ: 155895142 AIM: jasonwesleyupton Fax:
318.323.5053
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Flash, MySQL & PHP
flash is server independent. if you call a flash file on another server it is much like calling an image on another server. yes, PHP can feed flash(info from a DB...to keep this on topic). And flash can send back infomation to PHP via get and post variables(not sure about the post). I've run into some issues with the variables not making it through to many DNS hops from flash to PHP mostly with internal->external systems. we tracked usage of a flash move with php and found it easier to install PHP on the machine that flash was running on to get the best results(all Solaris/Apache). and is it really ever more efficient to go the micro$oft route ;-) in fact the flash designer here just sent this to me today as we're getting into lot of projects of this sort http://www.flash-db.com/Board/index.php?board=19;action=display;threadid=3062 hth jeff Miles Thompson <[EMAIL PROTECTED] To: [EMAIL PROTECTED] patico.ca> cc: Subject: [PHP-DB] Flash, MySQL & PHP 01/30/2003 04:09 PM I've not worked with Flash, so if anyone has experience I'd appreciate their comments. I understand that Flash presentations are developed on a Windows box, using Flash MX (FMX), I also understand that FMX has a scripting language, so it can be used to create forms, display data, etc. My questions are: 1. Can the Flash file be served by any web server, or does it need its own server running on the same machine as the web server? 2. Can PHP feed data to the Flash script, and vice versa? I am assuming it operates much like Javascript, entirely through the browser plug-in. I guess what I'm really asking is whether, after initial development of the Flash file can the the rest be done from a LInux/BSD box with PHP and one of the databases PHP talks to, or is it more efficient, in this case, to go the Microsoft .asp and SQL-Server route. Regards - Miles Thompson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] SQL: Limit 1 usage?
Hmm, I trried your syntax and same problem.
I tried it exactly like this: (though i'd like to stress that it worked with the code
labeled ORIGINAL below)
This customer is on network: A. This is Bayou
Internet's network.They should download Dialer A at: http://www.bayou.com/dialer/dialer.exe\";>http://www.bayou.com/dialer/dialer.exe";
elseif ($network == 2):
echo "This customer is on network: B. This is
Surf.net's network.They should download Dialer B at: http://www.bayou.com/dialer/dialer-b.exe\";>
http://www.bayou.com/dialer/dialer-b.exe";
elseif ($network == 3):
echo "This customer is on network: B. This is
Surf.net's network.They should download Dialer B at: http://www.bayou.com/dialer/dialer-b.exe\";>
http://www.bayou.com/dialer/dialer-b.exe";
elseif ($network == 4):
echo "This customer is on network: E. This is Dual.usa
/ @usa's network.They should download Dialer E at: http://www.bayou.com/dialer/dialer-
e.exe\">http://www.bayou.com/dialer/dialer-e.exe";
elseif ($network == 5):
echo "This customer is on network: C. This is
Pop.net's network.They should download Dialer C at: http://www.bayou.com/dialer/dialer-c.exe\";>
http://www.bayou.com/dialer/dialer-c.exe";
elseif ($network == 6):
echo "This customer is on network: D. This is
World.net's network.They should download Dialer D at: http://www.bayou.com/dialer/dialer-d.exe\";>
http://www.bayou.com/dialer/dialer-d.exe";
else:
echo "There has been a data error. This is most likely the programmer's fault.
Blame funding. http://www.bayou.com/dialer/admin/numbercheck.php\";>Ignore
and try again.";
endif;
mysql_free_result($sql_result);
mysql_close($connection);
?>
1/30/2003 3:51:15 PM, "Ignatius Reilly" <[EMAIL PROTECTED]> wrote:
>Doubly wrong PHP syntax.
>
>Try instead:
>$sql = "SELECT * FROM accessnums WHERE areacode='{$_POST['areacode']}' and
>city='{$_POST['cityselected']}' ORDER BY network LIMIT 1";
>
>Ignatius
>
>- Original Message -
>From: "jason wesley upton" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, January 30, 2003 9:42 PM
>Subject: [PHP-DB] SQL: Limit 1 usage?
>
>
>> Currently I have a script that contains this piece of code:
>>
>>
>> $sql = "SELECT MIN(network)
>> AS 'network' FROM accessnums WHERE areacode='$_POST[areacode]' and
>city='$_POST[cityselected]'";
>>
>>
>> This works fine and accomplishes what I need. Some requirements changed
>today and I now need to get more than just "network". In MySQL command line
>I tried this:
>>
>> SELECT * FROM accessnums WHERE areacode="504" and city="New Orleans" ORDER
>BY network LIMIT 1;
>>
>> This gives me the exact response I require. However, when plugging it
>into my php code:
>>
>> $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and
>city='$_POST[cityselected]' ORDER BY network LIMIT 1";
>>
>> It can't execute the query. Any suggestions?
>>
>>
>>
>>
>> Jason Wesley Upton - Web Design / Development - Application Development
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] to connect access mdb
Dear Sirs,
I try to connect my access mdb with following script but I can not succed. I
get following error.
This server is currently overloaded - please try again later
Any idea where is the my mistake. I am using xitami server under windows 98.
Open("Provider=Microsoft,.Jet.OLEDB.4.0; Data
Source=C:\\Xitami\\webpages\\sigorta.mdb");
// SQL statement to build recordset.
$rs = $conn->Execute("SELECT ad FROM baydar");
echo "Below is a list of values in the MYDB.MDB database, MYABLE table,
MYFIELD field.";
// Display all the values in the records set
while (!$rs->EOF) {
$fv = $rs->Fields("ad");
echo "Value: ".$fv->value."\n";
$rs->MoveNext();
}
$rs->Close();
?>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: PHP-WIN MYSQL Double results
Okay, I kinda fixed it. I added the DISTINCT option to the sql query. DISTINCT returns only one row when multiples arre found. What I don't understand is that there is only one row returned in the MYSQL console. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: more info about data connection with Microsoft Access Driver
Hello,
On 01/30/2003 05:31 PM, Qt wrote:
I am working with ms access database and I am using following connection;
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; .. .
I want to learn more for handling data
Where can I find good source for this subject?
You need the latest version of PHP that comes with a patch to support
DSN-less connections.
--
Regards,
Manuel Lemos
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] check box help
Hey can anyone help me out? I am a bit of an amatuer at this. Here is my
problem:
I have an SQL table with a three fields in it. They are ClassTitle,
InstructorName, and CourseDescription. I am setting up a table that lists
the records with a check box in front of it. Then if the user checks the
box, it will give him access to that data(which I have set up in a separate
table). The problem is that I don't know how to name the check box, since
it goes through a while loop. I want the user to be able to check more than
one box, if it is neccessary. But I don't know how to name the check boxes
uniquely (one check box for each record in the table), so that once they are
checked, I can work with it later on the next page. I have inserted a chunk
of the code I am working on for it. Please help me if you can. Thanks.
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
}
Thanks,
Matt
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Make thumbnail of a jpg image.
Check out imagecopyresampled in the php manual at http://www.php.net/manual/en/function.imagecopyresampled.php Rene Groothuis (Aeqis) wrote: Hi All, Small question: How can I make a thumbnail of a jpg image? Your help is appreciated. Thanks. Rene. === R. Groothuis - Aeqis Gruttosingel 50 2496 HX Den Haag - The Netherlands E-mail: [EMAIL PROTECTED] Tel: +31-15-3618824 Mobile: +31-6-51807877 Fax: +31-15-3618823 -Original Message- From: Chris Deam [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: PHP-WIN MYSQL Double results Okay, I used print_r but now I get "Resource Id #19" no sort of array info. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] check box help
Hey can anyone help me out? I am a bit of an amatuer at this. Here is my
problem:
I have an SQL table with a three fields in it. They are ClassTitle,
InstructorName, and CourseDescription. I am setting up a table that lists
the records with a check box in front of it. Then if the user checks the
box, it will give him access to that data(which I have set up in a separate
table). The problem is that I don't know how to name the check box, since
it goes through a while loop. I want the user to be able to check more than
one box, if it is neccessary. But I don't know how to name the check boxes
uniquely (one check box for each record in the table), so that once they are
checked, I can work with it later on the next page. I have inserted a chunk
of the code I am working on for it. Please help me if you can. Thanks.
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
}
Thanks,
Matt
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] check box help
Hey can anyone help me out? I am a bit of an amatuer at this. Here is my
problem:
I have an SQL table with a three fields in it. They are ClassTitle,
InstructorName, and CourseDescription. I am setting up a table that lists
the records with a check box in front of it. Then if the user checks the
box, it will give him access to that data(which I have set up in a separate
table). The problem is that I don't know how to name the check box, since
it goes through a while loop. I want the user to be able to check more than
one box, if it is neccessary. But I don't know how to name the check boxes
uniquely (one check box for each record in the table), so that once they are
checked, I can work with it later on the next page. I have inserted a chunk
of the code I am working on for it. Please help me if you can. Thanks.
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
}
Thanks,
Matt
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] SQL: Limit 1 usage?
Display mysql_error() in your die() statement... so you actually know
why your query is failing instead of a generic, worthless error message.
If you're not getting the statement in your die() function, then the
query is running, but it's not matching any rows.
Also, FYI: Inside of a double quoted string, you can use {$_POST['key']}
or $_POST[key]... both are correct.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: jason wesley upton [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 5:12 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] SQL: Limit 1 usage?
>
> Hmm, I trried your syntax and same problem.
>
> I tried it exactly like this: (though i'd like to stress that it
worked
> with the code labeled ORIGINAL below)
>
>
>
>
> $connection = mysql_connect("","*","*")
> or die("Couldn't make connection...because I hate you.");
>
>
> $db = mysql_select_db("national", $connection)
> or die("Couldn't select database.");
>
>
> $sql = "SELECT * FROM accessnums WHERE areacode='{$_POST['areacode']}'
and
> city='{$_POST['cityselected']}' ORDER BY network LIMIT 1";
>
>
> // ORIGINAL $sql = "SELECT * FROM accessnums WHERE
> areacode='$_POST[areacode]' and city='$_POST[cityselected]' ORDER BY
> network LIMIT 1";
>
> // WORKS just needs tweaking: SELECT * FROM accessnums WHERE
> areacode="318" and city="monroe" ORDER BY network LIMIT 1;
>
>
> $sql_result = mysql_query($sql,$connection)
> or die("Couldn't execute query.");
>
>
> while ($row = mysql_fetch_array($sql_result)) {
>
> $network = $row["network"];
> $areacode = $row["areacode"];
> $cityselected = $row["cityselected"];
>
> }
>
>
>
> if ($network == 1):
> echo "This customer is on network: A.
This
> is Bayou Internet's network.They should download Dialer A at: href=
>
\"http://www.bayou.com/dialer/dialer.exe\";>http://www.bayou.com/dialer/d
ia
> ler.exe";
> elseif ($network == 2):
> echo "This customer is on network: B.
This
> is Surf.net's network.They should download Dialer B at: href=\"http://www.bayou.com/dialer/dialer-b.exe\";>
> http://www.bayou.com/dialer/dialer-b.exe";
> elseif ($network == 3):
> echo "This customer is on network: B.
This
> is Surf.net's network.They should download Dialer B at: href=\"http://www.bayou.com/dialer/dialer-b.exe\";>
> http://www.bayou.com/dialer/dialer-b.exe";
> elseif ($network == 4):
> echo "This customer is on network: E.
This
> is Dual.usa / @usa's network.They should download Dialer E at: href=\"http://www.bayou.com/dialer/dialer-
> e.exe\">http://www.bayou.com/dialer/dialer-e.exe";
> elseif ($network == 5):
> echo "This customer is on network: C.
This
> is Pop.net's network.They should download Dialer C at: href=\"http://www.bayou.com/dialer/dialer-c.exe\";>
> http://www.bayou.com/dialer/dialer-c.exe";
> elseif ($network == 6):
> echo "This customer is on network: D.
This
> is World.net's network.They should download Dialer D at: href=\"http://www.bayou.com/dialer/dialer-d.exe\";>
> http://www.bayou.com/dialer/dialer-d.exe";
> else:
> echo "There has been a data error. This is most likely the
> programmer's fault. Blame funding. href=\"http://www.bayou.com/dialer/admin/numbercheck.php\";>Ignore and
try
> again.";
> endif;
>
>
> mysql_free_result($sql_result);
> mysql_close($connection);
>
> ?>
>
>
>
>
>
>
>
>
>
>
>
> 1/30/2003 3:51:15 PM, "Ignatius Reilly" <[EMAIL PROTECTED]>
wrote:
>
> >Doubly wrong PHP syntax.
> >
> >Try instead:
> >$sql = "SELECT * FROM accessnums WHERE
areacode='{$_POST['areacode']}'
> and
> >city='{$_POST['cityselected']}' ORDER BY network LIMIT 1";
> >
> >Ignatius
> >
> >- Original Message -
> >From: "jason wesley upton" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, January 30, 2003 9:42 PM
> >Subject: [PHP-DB] SQL: Limit 1 usage?
> >
> >
> >> Currently I have a script that contains this piece of code:
> >>
> >>
> >> $sql = "SELECT MIN(network)
> >> AS 'network' FROM accessnums WHERE areacode='$_POST[areacode]' and
> >city='$_POST[cityselected]'";
> >>
> >>
> >> This works fine and accomplishes what I need. Some requirements
> changed
> >today and I now need to get more than just "network". In MySQL
command
> line
> >I tried this:
> >>
> >> SELECT * FROM accessnums WHERE areacode="504" and city="New
Orleans"
> ORDER
> >BY network LIMIT 1;
> >>
> >> This gives me the exact response I require. However, when plugging
it
> >into my php code:
> >>
> >> $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]'
and
> >city='$_POST[cityselected]' ORDER BY network LIMIT 1";
> >>
> >> It can't execute the query. Any suggestions?
> >>
> >>
> >>
> >>
> >> Jason Wesley Upton - Web Design / Development - Application
Development
>
>
>
>
>
>
>
>
>
> --
> PHP Database M
RE: [PHP-DB] check box help
If I understand your question correctly, you really don't have to do much to
accomplish what you're looking to do. If you name your checkboxes as an
array ($myCheckboxes[]) then, when the form data is submitted, all of the
$myCheckboxes[] will be passed as an indexed array called, surprisingly
enough, $myCheckboxes ($myCheckboxes[0], $myCheckboxes[1], etc.). In the
resulting script, you need only iterate over them with a control structure
such as a for() loop.
Hope this helps.
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 4:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] check box help
Hey can anyone help me out? I am a bit of an amatuer at this. Here is my
problem:
I have an SQL table with a three fields in it. They are ClassTitle,
InstructorName, and CourseDescription. I am setting up a table that lists
the records with a check box in front of it. Then if the user checks the
box, it will give him access to that data(which I have set up in a separate
table). The problem is that I don't know how to name the check box, since
it goes through a while loop. I want the user to be able to check more than
one box, if it is neccessary. But I don't know how to name the check boxes
uniquely (one check box for each record in the table), so that once they are
checked, I can work with it later on the next page. I have inserted a chunk
of the code I am working on for it. Please help me if you can. Thanks.
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
}
Thanks,
Matt
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] check box help
Thanks. I tried that, and maybe I am doing something wrong with it, but
it didn't work. What I did was I made a counter variable, $counter and
put it outside the while loop. Then, inside the while loop, when it
makes a checkbox, I named the check box, $CheckBox[$counter], so that it
would put it at that spot in an array. Then on the following page
(which the variables get posted to) I created a for loop to output all
the values of $CheckBox[]. I made the loop from 0 to < $counter, and it
still doesn't output anything. Do I need to initialize the $CheckBox
array or something, if so, how do I do it? Here is the modified code
that I used for this:
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$counter=0;
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
$counter++;
}
//This is the loop code to output the $CheckBox[] array on the following
page:
for($i=0; $i < $counter; $i++) {
echo $CheckBox[$i];
echo "";
}
The output of the following page is just blank. It doesn't output
anything. Please help, and thanks a lot for your response from before.
Matt
-Original Message-
From: Rich Hutchins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:35 PM
To: Matt; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] check box help
If I understand your question correctly, you really don't have to do
much to
accomplish what you're looking to do. If you name your checkboxes as an
array ($myCheckboxes[]) then, when the form data is submitted, all of
the
$myCheckboxes[] will be passed as an indexed array called, surprisingly
enough, $myCheckboxes ($myCheckboxes[0], $myCheckboxes[1], etc.). In the
resulting script, you need only iterate over them with a control
structure
such as a for() loop.
Hope this helps.
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 4:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] check box help
Hey can anyone help me out? I am a bit of an amatuer at this. Here is
my
problem:
I have an SQL table with a three fields in it. They are ClassTitle,
InstructorName, and CourseDescription. I am setting up a table that
lists
the records with a check box in front of it. Then if the user checks
the
box, it will give him access to that data(which I have set up in a
separate
table). The problem is that I don't know how to name the check box,
since
it goes through a while loop. I want the user to be able to check more
than
one box, if it is neccessary. But I don't know how to name the check
boxes
uniquely (one check box for each record in the table), so that once they
are
checked, I can work with it later on the next page. I have inserted a
chunk
of the code I am working on for it. Please help me if you can. Thanks.
if (!mysql_connect($dbserver, $dbusername, $dbpassword)) {
print 'Could not connect to mysql';
exit;
}
$result = mysql_list_tables($dbname);
if (!$result) {
print "DB Error, could not list tables\n";
print 'MySQL Error: ' . mysql_error();
exit;
}
mysql_free_result($result);
$CourseInfo = mysql_query("SELECT * FROM $TableName");
while ($row=mysql_fetch_assoc($CourseInfo)) {
echo "
Course:
";
echo $row["ClassTitle"];
echo "
Instructor:
";
echo $row["InstructorName"];
echo "
Course Description:
";
echo $row["CourseDescription"];
echo "
";
}
Thanks,
Matt
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] passing variables through frames
Does anyone know how to pass a variable to a different frame? For example, I have a navigation frame, and when you click a link, it opens inside a different frame. Can anyone tell me if there is a way to pass variables from the navigation frame to the main frame? Thanks a lot. Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: passing variables through frames
Nevermind everyone... I found out. Thanks "Matt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know how to pass a variable to a different frame? For example, > I have a navigation frame, and when you click a link, it opens inside a > different frame. Can anyone tell me if there is a way to pass variables > from the navigation frame to the main frame? Thanks a lot. > > Matt > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] check box help
On Friday 31 January 2003 11:40, Matt Palermo wrote: > Thanks. I tried that, and maybe I am doing something wrong with it, but > it didn't work. What I did was I made a counter variable, $counter and > put it outside the while loop. Then, inside the while loop, when it > makes a checkbox, I named the check box, $CheckBox[$counter], so that it ^ That should be CheckBox and not $CheckBox (that latter, as per your code, is undefined and is empty). > would put it at that spot in an array. Then on the following page > (which the variables get posted to) I created a for loop to output all > the values of $CheckBox[]. I made the loop from 0 to < $counter, and it > still doesn't output anything. * * "If in doubt, print everything out" (TM). * * print_r($GLOBALS) should give you all you need to know. Or more specifically, to find out what values your forms are returning you can use: print_r($_POST) or print_r($_GET) depending on the 'method' that your form uses. And whilst we're on the subject, you don't seem to have any tags? Some browsers (quite rightly) ignore form elements if there are no tags. > Do I need to initialize the $CheckBox > array or something, if so, how do I do it? No. > Here is the modified code > that I used for this: [snip] > That should be: ... name='CheckBox[$counter]' ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* 1 1 was a race-horse, 2 2 was 1 2. When 1 1 1 1 race, 2 2 1 1 2. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] - Update help
Hello list I've download some patches for PHP 4.0.6. and I dont know how to use it. For example rfc1867.c.diff-4.0.6 file how can I "run" it and do the update? I have PH 7,2 Linux and Apache 1,32 Thank you
[PHP-DB] variable conversion
hi, while creating a php page , how can ipass avalue in a text box or any boxex to another page? i hav created one page wiht text boexes in one file and i hav to send it to another program. i did it with post method and in order to get that value i did like: where fname is the text box name of the previos page. but it is not coming. what should i do. help me.. bis - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: [PHP-DB] Make thumbnail of a jpg image.
On Thu, Jan 30, 2003 at 09:41:37PM -0800, Rene Groothuis (Aeqis) wrote: >Hi All, > >Small question: How can I make a thumbnail of a jpg image? > >Your help is appreciated. Take a look at the following Image manupulation functions in PHP : ImageCreateFromJPEG() ImageCopyResized() ImageJPEG() Peace -- Rajesh : [ GNU/Linux One Stanza Tip (LOST) ]### Sub : Searching for strings in files LOST #172 In order to search for a string in some files, use: grep "string" filename1 [filename2 filename3 ...] This will print out the filename and the lines in the file that contain the string. Type 'man grep' for details. ## : -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
