648 Posted Topics
Re: You use three symbols for closing quoting marks” " and ' there are really only two in programming " and ' . Sometimes in your code you open with” and close with» that will cause PHP not to know what to do | |
Re: The simplest way is to have an hidden IFRAME and the second PHP file to trigger a JavaScript function that changes the innerHTML of a div in the first page. But the real solution is just AJAX. ![]() | |
Re: You could do something simple to help understand the needs sql statement (SHOW CREATE TABLE ) and the table . And give an example of the usage you need (if I am that and I request that I should get that). | |
Re: Do a simple test in order to understand what is happening in this point of flow (some editors have php debuggers , not easy to set but really useful) [CODE]<html> <head></head> <body> <?php if( isset($_COOKIE["num_tape"])) { $num_tape = $_COOKIE["num_tape"]; $supplies = TRUE; var_dump($num_tape); } else { echo "undefined<br/>"; var_dump($_COOKIE); } … | |
Re: A prepared statement query to do using PDO Lets say that Data Base name: $database Host: $host Data Base User Name: $dbUser DB password: $dbUserPasswod Table: $table Search Term: $search [CODE]<?php $db = new Pwf_Data_Db('mysql:dbname=$database;host=$host,$dbUser,$dbUserPasswod'); $query = "SELECT * FROM $table WHERE Movie_name LIKE ? OR Director LIKE ? OR … | |
Re: I don’t see even a single line of PHP in this code … only JavaScript that is not bad … but not your question … what do you expect this markup to do ? and what it really does ? If the problem is in JavaScript just tell us about … | |
Re: Hello, One thing that I have never understood in programming languages is the switch clause. What is the need of that and especially how do they make the code cleaner when use break (or anything like that), let me compare that only to the old GOTO command or the reckless … | |
Re: Have you taken this code from elsewhere and need modifications? And if so from where ? | |
Re: give us the two table with SHOW CREATE TABLE tableName give us also what is the logical operation for the selection | |
Re: Hello DJWK , I really enjoyed your enthusiasm about discovering OOP .I don’t really believe that it is something new in logic. A lot of code that in one of my old jobs I had to support had been made with COBOL witch is not an OOP language , but … | |
Re: your code cleaned up <?php $previous_catagory = null; foreach ($providers as $provider) { if ($provider['catname'] !=$previous_catagory) { $previous_catagory = $provider['catname']; echo '<li>' . $provider['catname'] . '</li>' ; } echo "<ul>"; $previous_provider = null; foreach($providers as $provider) { if($provider['name'] !=$previous_provider) { $previous_provider = $provider['name']; echo '<li>'; echo '<a href=?id="' . $provider['id'] … | |
Re: This isn’t a PHP question this is a hacking question. Well the answer might be yes but you don’t show even the standards to show how you are going to deal with that in PHP. So any comment is really unnecessary. If you had the theoretically background and something was … | |
Re: If you own the servers lets talk about how sets PHP works along with Python . If you don’t the only thing you can do is to contact the owners of the server. (To be more precise just copy fist the simple hello word for python to avoid all the … | |
Re: Stored procedures are in databases universe. Of course you could call them from PHP (it is a programming language). If you want an example I could give you, just state the database that you dealing with. (Stored procedures in my view are the least commented things in internet .. DB2 … | |
Re: Hello, maybe you don’t realize what means to create a website. There are many alternatives facebook , blogspot for example or other sites that will let you put your content easy and fast and publish it thought internet. If you want to create your own site you will have to … | |
Re: Well data model isn’t something you decide through programming it should be set on a analysis base (if you are in a large scale project between demand department and analysis, programmer and feedback and if you are your own when you design the needs of your application before even write … | |
Re: I don’t want to raise any issues but I am feeling that I should be honest with you. Programming isn’t a cheating of other people ideas and code. If you have an issue just state it .. point the ways that you are thinking could solve it … and we … | |
Re: Maybe I didn’t understood your question but if I did lets say that we have a table that has ID (int 10) , TITLE (varchar 255) and TIME_STAMP(int 10) … evert time we use insert or update we just turn TIME_STAMP in date(“U”) … so it easy to find what … | |
Re: What is \inc\magicquotes.inc.php and /inc/base.inc.php and /admin/export/excel-xml.php and /inc/standardFunctions.inc.php . Simplify your problem and the include files and you might get an answer | |
![]() | Re: Give us the program that you describe and have done so far to give you any help. Generally it is not a good idea to store passwords in cookies. You could store session_id in order to cross check them with the session_id in a session variable but the password should … |
Re: What is connectvars.php ? … also you use an array inside a string …this is not a good or clean idea • echo "First Name :{".$row['first_name']."} <br>" . • "Last Name : {".$row['last_name']."} <br>" . • "Email : {".$row['email']."} <br><br>"; | |
Re: The link that you provided in asciiconvert.com simple does not work. If it works for you please explain what you are doing in steps an tell you if this is correct. | |
Re: Hello, Stored procedures in mysql is a really good practice for us, (notice that db2 stored procedures are legendary). But there must be a reason to do that . None sees your PHP program and of course you haven’t to put it in public_html directory in order to work. Cron … | |
Re: Item in session as an array? Why not moving in OOP and know exactly what is happening? | |
Re: I am voting also for TinyMCE . I am using it a long time now and I must state that it is one of the finest projects in manner of customization. | |
Re: Don’t deprecate prior variables (don’t use @) and then u will see from where the error comes from. My first guess is that you never post this data …. | |
Re: Its good that you are questioning about it. Most think that PHP isn’t a programming language but a premade collection of scripts. For a beginner (using Windows) I would sugest that the steps would be install WAMP (WampServer) , understand a bit about MySql, install Eclipse PDT and then spend … | |
Re: CMS and Security ? Are you joking ? Content Management Systems are not programming language nor have any security control they are good in what their title refers to “Content Management” if you need security its time to develop rather then use. | |
Re: Session , by a browser perspective , has a domain identifier. It doesn’t matter where your program is located (or in what directory) just where its domain points to. Remember that for browsers sub domains like [url]www.sub.domain.com[/url] are different domains. | |
Re: Why Joomla don't you know that if we like to name something a failure we call it joomla ... I made it joomla ... | |
Re: The key is the quality of the code, in my case I have seen that the quality drops in less then around 5 hours sleep a day. Of course this can’t be done for ages … and some time I have to sleep for around 8 hours a day… | |
Re: If a user of your web application could retrieve his password over “retrieve password” section he could understand that you save the password directly so if your site been hacked (with recently examples) his password would be almost public. The best way in my view is in the retrieve password … | |
Re: This is rather annoying. I believe that a forum like this one are meant to help people share their knowledge and help each other, in real questions, and not high school (or elementary) exercises. | |
Re: Wamp is a good start, I recommend the next step to be Eclipse PDT , remember programming is a complex science so you will need to devote to this in order to have results. | |
Re: If you really need help you should be a bit more precise. Nobody could do analysis without specs. | |
Re: If you mean JAVA there are many ways Web Services, cookies (if in same domain) , session (if in same application server) even EJB (of course in that case you would need to create the PHP parser) and many-many more .. Also let me express that as JavaScript-PHP communication dietdew12z … | |
Re: What do you mean? You need PHP code to access image from a blob database field? | |
Re: Hello, I believe that this is an old issue… the thing is that PHP run in server while JavaScript run in browser. There is no way to get JavaScript variables before the page appears in the browser (the first page anyone visit your web application – site) . There are … | |
Re: Are you using a programming language? And if so which … ? …If you use what is it and what are the steps you are consider to do in order to distribute the uploading files ? | |
Re: There are two views for auto complete. The first one is that I know that there are limited options so I have a javascript that has an array, php complete it and when user press something array is searched with onchange or onkeyup. And if the limit option is unknowable … | |
Re: What are the errors ? … and to be at the root of things … what are you trying to do and how are you planning to do them ? … tell us and I will give you feed back in how to do | |
Re: If it is so niche why don’t you write it your own? If you get something ready (and not in a MVC strict framework) you will always have problems maintaining it. | |
Re: What exactly are you trying to do ? … You are trying to read a file and parse the content of it ? If so what are the parsing rules and in what type do you wish the output ? | |
Hello all, This isn’t a strictly MySQL issue, it has to do also with PHP Apache and cPanel but I believe the core is MySQL so I decided to post it here. Recently I had a SQLSTATE[08004] [1040] Too many connections issue. I use PHP PDO for the connection and … | |
Hello all, I have a table dir_records < SHOW CREATE TABLE dir_records > CREATE TABLE `dir_records` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `TITLE` varchar(250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `URL_TITLE` varchar(250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `TXT` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `COMPANY_ID` … | |
Re: if(isset($_FILES['logo'])) { } else { $logoPath = '../comLogos/no_image.jpg'; $_SESSION['imageLogo'] = $logoPath; } See for more at http://php.net/manual/en/reserved.variables.files.php | |
Re: Create a web service medium. The copyright matter is something you should investigate but making a web service medium reading the themes and passing them in the format that will be accessible from your distributed client program won’t be a problem. | |
Re: >>if(!isset($_GET['prod_name'])) don’t trim before you know it is has content.. and a tip .. use brackets ... makes your code more readable even by you |
The End.