648 Posted Topics
Re: Hello, caching in PHP is one thing that you must try yourself all the options and create measurable test for them in order to decide. In my point of view there are two separated layers of cashing. Application scope and “thread” scope. While application scope cashing, cash objects for use … | |
Re: Hello , just type in Google tinymce and everything will be easy. Also insight its site tine mce has lot of examples even for non programmers. Dreamweaver is just an editor, if it don’t forth fill your need change it. | |
Re: just select the main content from a table and show it example: [CODE]<?php include("header.php"); $page = "myPage"; include("showPage.php"); include("footer.php"); ?> [/CODE] and for showPage.php [CODE]<?php $db = new PDO("mysql:host=$host;dbname=$database", $dbUser, $dbUserPasswod); $query = "SELECT TXT FROM pages WHERE page = ?"; $statement = $db->prepare($query); $statement->execute(array($page)); if($statement->errorCode()!="00000") { $error = $statement->errorInfo(); … | |
Re: Between Windows and Linux / Unix there is a great deference of slash – backslash … take a loot to that… | |
Re: [QUOTE=phpDave;1494787]like one would on Twitter or Facebook[/QUOTE] different concepts different specs and even inside them are different logic in each service. First of all you must write down what you are doing in words first if you can’t directly in UML. Then you must set a plan of how to … | |
Re: This is not “if not” , it is NOT AND NOT | |
Re: [QUOTE=SPeed_FANat1c;1494189]Hi I don't undestarnd what I did wrong.[/QUOTE] Let me funny a bit about it but it is also a serious answer. Joomla ... that is wrong | |
Re: There are many approached to that. As you stated that are not familiar to JavaScript and DOM (if you want to do with web you should consider learning the basics) the simplest way is populating possible drop down menus in display none divs and select witch one to show by … | |
Re: As you stated you have nothing to do with programming and especially PHP you just want to use… In this forum there is a category “Configuring Readymade Scripts Forum” … maybe is better to ask there …. ![]() | |
Re: Session could do the job and more over you could validate this way that the correct (application logic) path have been fallowed. | |
Re: Hello you wrote “moving it to desktop application” that can’t mean anything else as a read it than that your server – localhost will be in your desk. There is no real deference if it where in the most distant place on earth or in your desk. If you want … | |
Re: Hello, Your “input like this” didn’t added , only “Hi”, . A form field with html in its value is text, so there is no problem saving it to database. All that are shortcuts , if I understood correctly your question what you are talking about is a WYSIWYG like … | |
Re: There are many things in the code you provided, and have nothing to do with PHP but with JavaScript and DOM. First of all you have to validate that it is an integer what inserted. Then you should update and if a field has no value than it should considered … | |
Re: What is the question? I hope that you just forgot to mention or something happened during editing the post. | |
Re: A servlet can output things as HTML. With HTML you can embed a flash object (a swf). With this swf you can send a post to the server and then the servlet can take it and process it. You can make all this even more effective with AJAX and flash.external.* … | |
Re: This can’t be a work or real life project. Is this a school assignment and you trying to get the shortcut? | |
Re: You shared your ideas? What is the problem? What did you decided to do? To save the binary data in database, or in file system? And really what was the question? | |
Re: Cooked … Maybe CakePHP is a real PHP Framework and not a CMS wearing shuts. It troubles me the weird function name that you small script use .. like scrape and setFlash that all live in the same Controller or Parent… I don’t want to say anything bad about CakePHP … | |
Re: Hello, first of all you are using $filedata without needing it. Line 5 : [B]gettext($array1, 1);[/B] . As understood your function gettext can take one argument but you are sending two. If it is a two dimensional table (csv) than it is a two dimensional array as well (if you … ![]() | |
Re: Don’t make simple things complex (our job is the opposite). What data type is dateofservice of your table? | |
Re: OK let’s take the entire OOP concept from the begging… You declare $newdb = new Database(); so you have a new object… You can do what ever you want with it …. Let’s say that you want to use void “one” of the object and that to use void “two” … | |
Re: This is not a PHP question (not even any programming language one) it is simple a game question. The only one that can help you is somebody that knows the game, if you are that person just tear apart the data model the system and the specs and you will … | |
Re: $.ajax , $("li#panel1") what is this jQuery (write less, think less) ? Did you check it with a JavaScript debugger or a with firebug ? | |
Re: Yes you could do it with PHP and AJAX (in order not to reload the page after a second) but avoid it. The recourses cost is unbearable and there are many other ways (and languages) to do it … I will not point one … ;) … but search out … | |
Re: A person that entry some script in a form field is not a hacker. Besides the functions that PHP has (and mentioned above) acknowledge that many years know the standard way is prepared statements. Some people out there (that I must say that they done a great job) implement all … ![]() | |
Re: Where is the index 0 wow …. Well this is a good one I must admit… $key != "string_index" is the thing, 0 is also false. When you test with a comparison operator with false the result will be false. If you put $key !== "string_index" (witch means that are … | |
Re: Distinct ... I have a question for you and I really could use an honest answer. Why asking before searching at least 10 minutes? You spend match more time this way …. I am trying to understand in order to decide to answer or not in this kind of questions | |
Re: “or do I have to write the PHP script myself” don’t be so opposite about it. PHP is a programming language, yes it is interpreted in C and yes can be used as nonsense ( but all programming languages can be used that way ) . Maybe is the time … | |
Re: Hello , maybe this is one that you can’t find easy in internet ( I mean you should search for more than 10 minutes to understand the answer). What really mean to secure a swf (or any other file type) from outsiders ? when it must be in public_htm in … | |
Re: or die ? what ? and what is this after or die ? .... What is the concept do you want an image to be displayed if you can't connect to database? | |
Re: A MySQL code that grabs form variables? …A database code that connects to view ? .. That is where programming is in middle even with Visual Basic or dot Net even with Java or Ruby ……. You are in a PHP thread just use PHP … ( 2 minutes searching … | |
Re: What do you think a buffer is? Make a search in net and understand first what it is? So what is the question ? What the output buffer size is of a php script or to set it manually to a certain level ? | |
Re: You must have a reason to do this. In most cases there are better performance solutions than select in a select. I you just want to get the results that have type_lbiltank=1 in first place just add it. If in the other hand you want to filter the results programmatically … | |
Re: When you output things you send headers response to the visitor’s browser. If you have done that you can’t change your mind and send other header. In header.php (witch you require at the second line of Login.php) you start output (also with html code) then in the continue of Login.php … | |
Re: One solution could be to create a trigger but I am not sure that it is what it is needed in your case. As I understood you want to predefine the date that the row will be deleted and not be deleted until that day. So the other way is … | |
Re: You have minor errors in your html code (you start form and then table but you close first the form and then the table) . Also the use of while(list($key,$value) = each($name)) is really not clean code since you could do the same with a simple for($i=0;$i<count($name); $i++) , in … | |
Re: There could be many ways to it, and I will share with you one of the simplest. As I understood you have three steps. Lets say that the table has only tree fields ID,WORK_ORDER and NAME. The first step is a simple form with a text input lets call it … | |
Re: You could use in the form tag onsubmit="return aFunction()". And then with JavaScript pass the variables to a PHP programme with AJAX and return true. | |
Re: Hello, I can’t recall an authoritative Java tutorial that “specifying camelCase”. One of pylons of Java is architectural neutrality and in PHP this is more generic as it is programming neutrality. What I mean is that you can write PHP also if it where JSP and a complex JAVA structure. … | |
Re: Maybe you want PHP to set a message that a div will appear it (example always in centre of screen) and if not pressed ok in 10 seconds to disappear). This is simply DOM with JavaScript or as once referred DHMTL ;))) | |
Re: Maybe the best advice would be to learn PHP , analyze the code that you are using and modify it in your needs or even better write your own from scratch. But you are dealing the programming code as a product that somebody sold you. If this is the case … | |
Re: There are many ways but why not keeping the user id in session after log and check its existence and value when a person enters this page with id as url variable. | |
![]() | Re: It is rather impolite to exclude some answers. PHP is not the correct language for chatting. You could do it with PHP as well, but the resources you will use and the users experience won’t be good. So if you really like a chatting system maybe is time to learn … |
Re: I will stick to what I think is the root. The safest way to access a database is through prepared statements. PHP has some ways to do that but I believe that the easiest (and most updated in modern standards) is PDO. | |
Re: What is the problem to fetch data or to make them scrolling in screen (do you meen something like the old marquee? ) ![]() | |
Re: I a phone was an object you could keep them in session and if the visitor wants to compare them then you should have a compare algorithm (you are comparing them in some logic). If it is easier for you a “phone” can be also a table row php array … ![]() | |
Re: Well you are new to that and PHP could be a great language to start with learning just the basics of algorithms. If you have the money and time I would suggest starting through Java, in that way you will get a strong base of OOP and then you could … ![]() | |
Re: Isn’t that the same post with "Comparison script more then 2 checkboxes" ? | |
Re: There is a phrase.. “I made it Joomla” witch means my code needs rewriting. If you have nothing to do with programming and you need a ready made Content Management System that it will work then Joomla is a good choice. As long as you don’t want any real logic … |
The End.