648 Posted Topics

Member Avatar for veledrom

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 …

Member Avatar for jkon
0
225
Member Avatar for dr.4030

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.

Member Avatar for jkon
0
68
Member Avatar for shadowscape

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(); …

Member Avatar for shadowscape
0
145
Member Avatar for engel(ray)
Member Avatar for engel(ray)
1
198
Member Avatar for phpDave

[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 …

Member Avatar for phpDave
0
94
Member Avatar for JeanPhilippe
Member Avatar for McLaren

[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

Member Avatar for McLaren
0
82
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
107
Member Avatar for abdulwajidck

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 ….

Member Avatar for diafol
-1
139
Member Avatar for joeyxaza

Session could do the job and more over you could validate this way that the correct (application logic) path have been fallowed.

Member Avatar for joeyxaza
0
160
Member Avatar for crazycat503

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 …

Member Avatar for crazycat503
0
87
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
188
Member Avatar for anirban1087

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 …

Member Avatar for anirban1087
0
142
Member Avatar for vijiglad

What is the question? I hope that you just forgot to mention or something happened during editing the post.

Member Avatar for vijiglad
-1
2K
Member Avatar for ruchi18

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.* …

Member Avatar for ruchi18
0
118
Member Avatar for oldezwe

This can’t be a work or real life project. Is this a school assignment and you trying to get the shortcut?

Member Avatar for Progr4mmer
0
174
Member Avatar for kardklub

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?

Member Avatar for kardklub
0
57
Member Avatar for theweirdone

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 …

Member Avatar for jkon
0
326
Member Avatar for ethio

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 …

Member Avatar for diafol
0
113
Member Avatar for mbarandao

Don’t make simple things complex (our job is the opposite). What data type is dateofservice of your table?

Member Avatar for mbarandao
0
2K
Member Avatar for MDanz

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” …

Member Avatar for jkon
0
77
Member Avatar for bartjuh10

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 …

Member Avatar for jkon
0
81
Member Avatar for doomfrawen

$.ajax , $("li#panel1") what is this jQuery (write less, think less) ? Did you check it with a JavaScript debugger or a with firebug ?

Member Avatar for jkon
0
207
Member Avatar for dyla123

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 …

Member Avatar for anilashanbhag
0
101
Member Avatar for bangla

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 …

Member Avatar for diafol
0
84
Member Avatar for Acute

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 …

Member Avatar for jkon
0
94
Member Avatar for thijscream

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

Member Avatar for thijscream
0
150
Member Avatar for Violet_82

“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 …

Member Avatar for Violet_82
0
124
Member Avatar for morteza_ipo

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 …

Member Avatar for morteza_ipo
0
145
Member Avatar for haoth

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?

Member Avatar for haoth
0
98
Member Avatar for jacob.irwin

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 …

Member Avatar for jkon
0
299
Member Avatar for xxmp

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 ?

Member Avatar for jkon
0
135
Member Avatar for Naveed_786
Member Avatar for diafol
0
122
Member Avatar for arv3

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 …

Member Avatar for jkon
0
86
Member Avatar for programmer12

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 …

Member Avatar for smantscheff
0
345
Member Avatar for drewpark88

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 …

Member Avatar for drewpark88
0
188
Member Avatar for freakunleash

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 …

Member Avatar for jkon
0
159
Member Avatar for rkayd

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 …

Member Avatar for jkon
0
96
Member Avatar for AdriftUniform

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.

Member Avatar for AdriftUniform
0
229
Member Avatar for TySkby

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. …

Member Avatar for mschroeder
0
197
Member Avatar for mehran tahir

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 ;)))

Member Avatar for jkon
0
298
Member Avatar for amit.hak50

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 …

Member Avatar for jkon
0
494
Member Avatar for waveydaveywaves

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.

Member Avatar for waveydaveywaves
0
219
Member Avatar for TechySafi

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 …

Member Avatar for Sorcher
0
113
Member Avatar for JBLDW

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.

Member Avatar for JBLDW
0
114
Member Avatar for vboopathicse

What is the problem to fetch data or to make them scrolling in screen (do you meen something like the old marquee? )

Member Avatar for diafol
0
175
Member Avatar for souravsikka

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 …

Member Avatar for diafol
0
111
Member Avatar for emma123

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 …

Member Avatar for diafol
0
158
Member Avatar for souravsikka

Isn’t that the same post with "Comparison script more then 2 checkboxes" ?

Member Avatar for jkon
0
162
Member Avatar for ekseks

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 …

Member Avatar for jkon
0
163

The End.