AW: [PHP-DB] IE6 PHP
After each row div class=cleaner/div .cleaner { clear:both; height:0.625em; font-size:1px; border:none; margin:0; padding:0; background:transparent; } :-P -Ursprüngliche Nachricht- Von: Chris [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. April 2007 09:02 An: elk dolk Cc: [EMAIL PROTECTED] Betreff: Re: [PHP-DB] IE6 PHP elk dolk wrote: Hi all, I have a bunch of thumbnail images that link to larger versions of the images and want to line them up in rows across the screen , using CSS I put them into a separate DIV. To get them to line up horizontally across the window I use CSS to FLOAT each DIV to the left, CSS looks like this: div.float { float: left; } and the HTML : div class=floatimg srcimage.jpg.../br //div Firefox and Netscape show the thumbnails in rows like this: [] [] [] [] [] [] [] [] [] [] [] [] but in IE6 there is a problem , the first row is O.K. but the second ant the third rows are not O.K. it looks like this: [] [] [] [] [] [] [] [] [] [] [] [] please comment Find a css list to ask, doesn't have much to do with php (and definitely not databases :P). -- Postgresql php tutorials http://www.designmagick.com/ -- 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] php with IIS
Hello, the DB list is not for such a question! Please RTM! http://de.php.net/manual/en/install.windows.iis.php regards Mario -Ursprüngliche Nachricht- Von: Harpreet [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. März 2007 16:57 An: php-windows@lists.php.net; php-db@lists.php.net Betreff: [PHP-DB] php with IIS Is there a way to run our PHP pages through Microsoft's IIS? Regards, Harpreet Kaur -- 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] Am I missing something?
Hi, I use somethin as $sql = 'INSERT INTO `text` (`Field`) VALUES (''aaa'')'; Also, check things with var_dump, use mysql_error, echo $sql/$insert and check whether the query is well formed. my best mario On Sat, 2007-01-27 at 19:55 -0600, Alexander wrote: I fixed my code and it shows up fine now. It says it supposedly enters the data when I input the fields but when I check the MySQL database, the info isn't there. Here's the fixed code if you wish to test it: html body ?php function add_to_table( $picture, $thumbnail ) { $picture = mysql_real_escape_string($picture); $thumbnail = mysql_real_escape_string($thumbnail); $user = user; $pass = password; $database = mydata; $link = mysql_connect(localhost, $user, $pass); if(!$link) { echo 'Error in linking'; } $db = mysql_select_db($database, $link); $insert = 'INSERT INTO domains ( picture, thumbnail ) values( $picture, $thumbnail )'; $indata = mysql_query( $insert, $link ); } function write_form() { echo form method='post' action='{$_SERVER['PHP_SELF']}'; echo pEnter url of large picture: input type='text' name='picture' /; echo pEnter url of thumbnail: input type='text' name='thumbnail' /; echo pinput type='submit' value='Add to Database' /; echo /form; } if ( !empty( $_REQUEST['picture'] ) !empty( $_REQUEST['thumbnail'] ) ) { $input = add_to_table( $_REQUEST['picture'], $_REQUEST['thumbnail'] ); if(!input) { echo 'Error\!'; } else { echo 'Data enter successfully\!'; $idreturn = mysql_insert_id($input); echo 'Image inserted to ID ' . $idreturn; } } else { write_form(); } ? /body /html -- mario [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Simple question on auto_increment
Hello, really a mysql question. Pls. help anyway. Is there a simple, common way to implemt the following: Say I have a table with a id autoincrement field. I wish to insert a record but just ist id value, get back the id value, use it to update the record. Do I need three separate mysql queries? Is there some trick I may use? Thanks Regards mario -- mario [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Simple question on auto_increment
WOW! perfect, thanks a lot mario On Mon, 2006-11-13 at 16:16 -0500, Brad Bonkoski wrote: mario wrote: Hello, really a mysql question. Pls. help anyway. Is there a simple, common way to implemt the following: Say I have a table with a id autoincrement field. I wish to insert a record but just ist id value, get back the id value, use it to update the record. Do I need three separate mysql queries? Is there some trick I may use? Thanks Regards mario www.php.net/mysql_insert_id --or-- www.php.net/mysqli_insert_id (of course for your example to work all the other fields would have to be nullable) -- mario [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] database for books question
Hi, you may wish to know that the kind of tools you are asking about are already well developed by members of the Typo3 community. Typo3 is a powerful open source, community developed, GPL licensed, php +mysql based CSM. See at http://www.typo3.org If you look at their Extension Repository (search word: book) you may find at least a couple of interesting things. Indeed, if you some spare time and like to do some programming, it would be nice to have more people who help to improve them. Typo3 is somehow difficult but truly rewarding. regards mario On Sat, 2006-01-21 at 15:32 -0600, Flint Million wrote: Hi, I'm designing a PHP/MySQL site to manage a collection of books. I have so far created the table and inserted some of the data, and created a web interface to access that data. I have a couple of things I'd like to do though, if anyone has ideas. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] OT BibX mysql, and php
Hello, apologies if I am OT. I would like to know if anybody has developed a mysql+php BibTeX bibliography management systems/web interface. I have just seen http://www.rennes.supelec.fr/ren/perso/etotel/PhpBibtexDbMng/, and would like to know whether there is anything else. If you know any and its whareabouts, pls. let me know. Thanks a lot, regards mario -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] HTML Tables in PHP...
On Sun, 2005-09-25 at 13:35, Daryl Booth wrote: $nachricht=The licence doesn't exist please contact us! ; close string! echo open string! table width= now, you need to escape , otherwise you close the string. I am used to do that in the following way, although I don't think it is the most elegant, \694\ and so on height=\501\ border=\0\ align=\center\ cellpadding=\0\ cellspacing=\0\ bye mario . -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] HTML Tables in PHP...
hi, silly question: what is EOB? google returns: Your search - EOB site:www.php.net - did not match any documents. I see your (short) side note on EOB on http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html EOB is not an entry in your 'programming PHP' (very nice) book index. Is there some more documentation? Maybe something from C? thanks regards mario On Mon, 2005-09-26 at 06:01, Rasmus Lerdorf wrote: There are many ways to do it. I prefer one of these two: ?php echo EOB table align=center width=$width EOB; ? or. table align=center width=?php echo $width? -Rasmus Micah Stevens wrote: I apologize, I was being rude. More specifically, I don't see why you say all html tags should be in single quotes. There's several ways you can do things in almost every situation in PHP, and I can just as easily say you should always use double quotes. I of course would be wrong though. echo table align='center' width='80%'; provides the convenience of inserting variables: echo table align='center' width='$width'; which you can not do with single quotes, so I could argue that double quotes are better. So, in contrast to my original rude comment (again, I apologize) perhaps I should of said: Why do you say that? -Micah On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote: That's ridiculous. On Sunday 25 September 2005 9:28 pm, balwant singh wrote: all html tags should be in single quote when used in php like echo 'table align=center width=80%'; echo 'trtd align=center'; echo HELLO; echo '/td/tr/table'; With Best Wishes Balwant Singh INDO ASIAN FUSEGEAR LTD. A-39, HOSIERY COMPLEX PHASE - II EXTN., NOIDA PH: +91 - 120 - 3048140 / 304 FAX: +91 - 120 - 2568 473 WEB : www.indoasian.com Original Message From: Daryl Booth [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] HTML Tables in PHP... Date: 9/25/2005 19:05 How can I give a table /table with all of it's parameters in PHP in each of the cells there is a variable that gives me the data back but I can't get the table to show as it always gives me either this error Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I don't put in the quotes Parse error: parse error, unexpected '', expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41. Here is the PHP code I'm using: ?php $datei=c:\licence.txt; if(file_exists($datei)){ $nachricht=The licence has been validated thank-you!; $fp = fopen($datei,r); fpassthru($fp); fclose($fp); } else{ $nachricht=The licence doesn't exist please contact us! echo table width=694 height=501 border=0 align=center cellpadding=0 cellspacing=0 tr td height=109 colspan=7img src=images/1.jpg width=857 height=109 border=0 usemap=#Map/td /tr tr td width=39 rowspan=2img src=images/lefty.jpg width=39 height=394/td td width=8 height=369nbsp;/td td width=240 class=style5/td td width=12 height=369 class=style5nbsp;/td td width=407 height=369 class=style5span class=style3b$nachricht/b/spanbr/td td width=346 rowspan=2img src=images/righty.jpg width=346 height=394 border=0 usemap=#Map2/td /tr tr td height=23 colspan=5img src=images/bottom.jpg width=472 height=23/td /tr /table; } ? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP-DB] HTML Tables in PHP...
Hello, silly it was, indeed. I see now on THE book, chp.4, paragraph Here Documents. Thanks a lot mario -- On Mon, 2005-09-26 at 10:20, Amol Hatwar wrote: Hello mario, Monday, September 26, 2005, 4:26:20 PM, you wrote: hi, silly question: what is EOB? google returns: Your search - EOB site:www.php.net - did not match any documents. EOB = End Of Buffer. I see your (short) side note on EOB on http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html Again the string EOB is just used as a delimiter. You could also have used something like MARIO instead! The only prerequisite is that the delimiting string shouldn't occur in the text. Regards, ah -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Accents! Pls help. Still very confused.
Hello, I am still very puzzled. If you a couple of minutes of spare time, pls give a look at http://www.chiari.org/help/ and suggest a way out. Thanks a lot. mario -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] issue with accents from a mysql table
Hello, please help me on the following issue. I guess I should understand by myself, but I don`t. I have hacked a function accents_conv(---); to convert a character like à to, say, agrave;. When I feed it by a string - accents_textris('à') - it works fine. The issue is when I get 'à' from a mysql table. I.e., let à the value of the field Field of a mysql table Table, and say $result = mysql_fetch_array($answer, MYSQL_BOTH), where $answer= mysql_query(SELECT * FROM Table). Now accents_textris($result['Field']) is still à (instead of agrave;). Why? Any hint is welcome. Thanks a lot see you tomorrow morning. mario -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Firebird and PHP
Hello, Is possible work with Firebird ? and how? Thanks and advance!! Mario Lacunza Lima-Peru -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP and MySQL form problem - Undifined variables
First time playing with PHP, Apache, and MySQL. I have a simple form error and I don't know how to solve it. I was doing the Webmonkey PHP/MySQL tutorial and when I started using forms with $PHP_SELF I started getting errors with variables not defined. PHP 4.2.3 MySQL 4.0 Windows 2000 Apache 1.3.27 (Since I was not able to get 2.0 working on Windows 2K Pro) My code is: //-- START OF CODE -- htmlbody?php $db = mysql_connect(localhost, root); mysql_select_db(mydb,$db); $result = mysql_query(SELECT * FROM employees,$db); if ($myrow = mysql_fetch_array($result)) { do { printf( a href=\%s?id=%s\%s %s/abr\n, $PHP_SELF, $myrow[id], $myrow[first], $myrow[last] ); } while ($myrow = mysql_fetch_array($result)); } else { echo Sorry, no records were found!; } ? /body/html //-- END OF CODE --- My ERROR is: Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache\htdocs\mysql2.php on line 11 Bob Smith Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache\htdocs\mysql2.php on line 11 John Roberts Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache\htdocs\mysql2.php on line 11 Brad Johnson Notice: Undefined variable: PHP_SELF in C:\Program Files\Apache Group\Apache\htdocs\mysql2.php on line 11 Mar f --- END OF ERROR I am able to connect to the MySQL DB and retrieve info, but I don't get the error. I changed the REGISTER_GLOBALS of the php.ini file to ON and I still get the variables error. I also added $_POST as stated in another form issue but it did not resolve my problem. It must be simple but I don't know enough to identify the issue. Thanks for any help or input. Mario [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Need Advice on Installing PHP MySQL on Mac OSX
Hi Everyone, My name is Mario Salinas. I'm wondering if anyone on this list has had any experience installing PHP and MySQL on a Apple Laptop running Mac OS-X. If anyone has any advice and is feeling a little generous with their time, I'd love some help. I just can't seem to find anyone that has already done this successfully. All help is appreciated. Thanks, Mario A. Salinas -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Need Advice on Installing PHP MySQL on Mac OSX
Andrew, Thanks for the heads-up but it doesn't work. I first tried 'foo.php' then I also tried 'info.php' and neither worked. I copied the phpinfo(); function from your email and created your email document but it still didn't work. I then tried to re-save it as a Macintosh styled formatting in BBEdit and still nothing. I then went back to save as a Unix file in BBEdit and still again nothing. I triple checked the phpinfo() function and still nothing. I'm using a standard installation of Mac OSX 10.1.5 on a G3/500 Pismo. I placed the file you suggested in My Computer's Main HD/Library/Webserver/Documents Directory. I thought you may have meant the 'Library' folder which exists in my User's 'Home' directory but there is no Webserver/Documents/ directories in there so I guess you meant the main library. Is there someplace I'm supposed to turn this on? I have a cobalt server that is running an old version of PHP (4.0.6) and this phpinfo() function works just fine there. But on my Mac it's a different story. I don't get a 'file not found' error. I get 'A connection error has occurred' errors. This happens after a long period of time that the 'E' drone in Explorer turns for about 20 seconds. I even tried to find the php.ini file to see if there is some setting for this and couldn't find it. Any further ideas? Your help is GREATLY appreciated! Thanks again, Mario A. Salinas At 9:18 PM -0400 8/10/02, salamander wrote: Mario, Mac OS X is already running PHP and Apache - drop a file called foo.php with these contents: ?php phpinfo(); ? in your /Library/Webserver/Documents directory, and then hit http://localhost/info.php For MySQL - checkout the pre-compiled packages at http://www.entropy.ch - Mark has great instructions. Best regards, Andrew On Saturday, August 10, 2002, at 09:15 PM, Mario A. Salinas wrote: Hi Everyone, My name is Mario Salinas. I'm wondering if anyone on this list has had any experience installing PHP and MySQL on a Apple Laptop running Mac OS-X. If anyone has any advice and is feeling a little generous with their time, I'd love some help. I just can't seem to find anyone that has already done this successfully. All help is appreciated. Thanks, Mario A. Salinas -- 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 Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Apache + PHP4
Mario Henrique Cruz Torres wrote: Hello people, I have an Apache server running with PHP3, yesterday I installed PHP4, and changed httpd.conf to run php4 scripts, but when I try to see a php page, my browser asks if I want to download the file. Im want know how a httpd.conf file working with PHP4 looks like . My system is a Conectiva Linux ( REd Hat 5.0) with Apache 1.3.9 - and php4 and mod_php4 thanks a lot. Mario H.C.T. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] Scheduling php task
You can compile it as an executable (not an apache module), then schedule it with cron. Run ./configure without the -with-apache= switch. It should reconfigure for "cgi mode" (I think that's what it's called). After you 'make' it you'll get an executable called 'php'. Use can use this to process you php scripts from the command line ('php test.php'). They just warn you not to put this in your web directory, because it can be used against you to compromise your security. Hope it helps, Mario -Original Message- From: Valerio Ferrucci [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 7:38 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Scheduling php task Does anyone know if is it possible to run a php script periodically (for example every night)? My system is Apache, LinuxPPC, php4 Thanks == Valerio FerrucciTabasoft Sas [EMAIL PROTECTED] http://tabasoft.ancitel.it [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]