648 Posted Topics

Member Avatar for din3sh

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

Member Avatar for rcollins
0
254
Member Avatar for gymie1980

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.

Member Avatar for P0lT10n
0
119
Member Avatar for anawan

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

Member Avatar for Stefano Mtangoo
0
72
Member Avatar for fuston05

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

Member Avatar for fuston05
0
115
Member Avatar for rajeesh_rsn

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 …

Member Avatar for jkon
0
106
Member Avatar for soomro_moon

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 …

Member Avatar for jkon
0
118
Member Avatar for Macko888

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 …

Member Avatar for jkon
0
326
Member Avatar for captain.don

Have you taken this code from elsewhere and need modifications? And if so from where ?

Member Avatar for Shanti C
0
263
Member Avatar for asusplay

give us the two table with SHOW CREATE TABLE tableName give us also what is the logical operation for the selection

Member Avatar for ad7u
0
180
Member Avatar for DJWK

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 …

Member Avatar for DJWK
0
128
Member Avatar for tape enterprise

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'] …

Member Avatar for tape enterprise
0
100
Member Avatar for sirajudeenj

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 …

Member Avatar for jkon
0
46
Member Avatar for benqb

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 …

Member Avatar for jkon
0
98
Member Avatar for zylog

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 …

Member Avatar for jkon
0
65
Member Avatar for oceanus

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 …

Member Avatar for jkon
0
59
Member Avatar for Awah Mohamed

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 …

Member Avatar for mschroeder
0
107
Member Avatar for Awah Mohamed

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 …

Member Avatar for Awah Mohamed
0
109
Member Avatar for brown23

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 …

Member Avatar for lordspace
0
145
Member Avatar for brothaofdes

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

Member Avatar for jkon
0
884
Member Avatar for kirtan_thakkar

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 …

Member Avatar for jkon
0
105
Member Avatar for eraucontroller

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

Member Avatar for jkon
0
102
Member Avatar for dos_killer

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.

Member Avatar for jkon
0
583
Member Avatar for patharianidhi

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 …

Member Avatar for jkon
0
63
Member Avatar for andrewliu
Member Avatar for andrewliu
0
150
Member Avatar for tape enterprise

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.

Member Avatar for jkon
0
99
Member Avatar for Imratzio

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

Member Avatar for Imratzio
0
156
Member Avatar for Felixchan

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 …

Member Avatar for vinayakgarg
0
191
Member Avatar for RGStrat

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.

Member Avatar for RGStrat
0
277
Member Avatar for facarroll

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.

Member Avatar for jkon
0
1K
Member Avatar for JasonN

Why Joomla don't you know that if we like to name something a failure we call it joomla ... I made it joomla ...

Member Avatar for jkon
0
82
Member Avatar for MooGeek

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…

Member Avatar for ajst
0
170
Member Avatar for ankit.pandey3

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 …

Member Avatar for cereal
0
2K
Member Avatar for xxmp

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.

Member Avatar for smantscheff
0
84
Member Avatar for KSS

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.

Member Avatar for jkon
0
125
Member Avatar for shahiduop

If you really need help you should be a bit more precise. Nobody could do analysis without specs.

Member Avatar for jkon
0
69
Member Avatar for Mike516

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 …

Member Avatar for jkon
0
152
Member Avatar for arsala khan

What do you mean? You need PHP code to access image from a blob database field?

Member Avatar for jkon
-1
53
Member Avatar for Legend32A

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 …

Member Avatar for Ninetie
0
176
Member Avatar for cfhjag

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 ?

Member Avatar for anandsri85
0
150
Member Avatar for xuexue

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 …

Member Avatar for xuexue
0
143
Member Avatar for pjh1985

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

Member Avatar for cossay
0
73
Member Avatar for eltonpiko

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.

Member Avatar for eltonpiko
0
93
Member Avatar for sajohnson05

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 ?

Member Avatar for sajohnson05
0
99
Member Avatar for jkon

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 …

Member Avatar for Kraai
0
1K
Member Avatar for jkon

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

Member Avatar for smantscheff
0
169
Member Avatar for SunnySideUp

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

Member Avatar for SunnySideUp
0
147
Member Avatar for navi17

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.

Member Avatar for navi17
0
108
Member Avatar for jamesyrawr

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

Member Avatar for jkon
0
168

The End.