25 Discussion / Question Topics

Remove Filter
Member Avatar for cmps

I am coding a bbcode parser system. But I'm stuck with the nested tags. I would like to know if someone know the regex pattern to find for instance a [url] tag. Example: [url][url]Hello world .com[/url][/url]. I want the output for this to be <a>[url]Hello world .com[/url]</a> where [url]Hello world.com …

Member Avatar for cmps
0
266
Member Avatar for cmps

Hello, I am using mysql as database, innodb as tables engine. Some of my tables have foreign keys referencing to other tables primary keys. Since the definition of foreign key is to restrict the value of itself, I would like to know if I should check the existence of the …

Member Avatar for diafol
0
213
Member Avatar for cmps

Hey all, I have a query like this one: `select * from topic order by topic_view_time limit 10` the topic table has a PK topic_id and some other varchar fields. It also has topic_view_time which is int and has the value of time() (in php) updated whenever a user view …

Member Avatar for pritaeas
0
157
Member Avatar for cmps

Hey all, I would like to know why when having big data in mysql table, executing a query for the first time takes 0.1.. sec, but if executing again the same query later, it will take only 0.0006 sec ? Exemple: SELECT name FROM `users` where id > 310000 limit …

Member Avatar for cereal
0
230
Member Avatar for cmps

Hello all!! I am new to SEO, and after searching and reading articles and tutorials about SEO. I found that recently, after the Google Penguin algorithm was updated, many websites dropped because of the low quality backlinks on their websites. As a solution, I read that categorizing backlinks into Low …

Member Avatar for profmuluka
0
453
Member Avatar for cmps

Hello all!! I've been making websites for many years, and recently I decided to get more into SEO. So here's my question: I would like to know what happens if I wrote in the robots.txt: User-agent: * Disallow: / Sitemap: http://www.example.com/sitemap.xml And in the sitemap.xml, there are thousand of links …

Member Avatar for cmps
0
246
Member Avatar for cmps

Hello all :) Some companies have just one domain name pointing to their website. However, some others have many domain names pointing to a single website. In SEO point of view, is it good to have multiple domain names poiting to the same website or one is enough ? And …

Member Avatar for cmps
0
195
Member Avatar for cmps

Hello!! Recently I started using google webmaster tool for an ecommerce website. The problem is that google is displaying that some pages has duplicate meta descriptions. The pages that google is pointing to are: the product page and the review of this product. However, the meta description in the product …

Member Avatar for jobtardisportal
1
162
Member Avatar for cmps

Hello, I would like to know if using Java as Programming language and Swing as GUI is enough to create a point of sale system ? Which programming language and GUI does companies use to create POS systems ? Thank you :)

Member Avatar for cmps
0
209
Member Avatar for cmps

Hello, I want to build a POS System. I've already created one in PHP, but I want to create a local one that can be installed on machines and not accessed online or using web server (Locahost). Since I have no idea on the requirements of a system installed on …

Member Avatar for cmps
0
159
Member Avatar for cmps

Hello I ma trying to practice on Data structure using java. I solved a lot of problems but this one looks interesting but I need some help understanding what I really have to do ... > write a program that simulates the operation of a busy airport that has only …

Member Avatar for bodiddly123
0
679
Member Avatar for cmps

Hey all!! I am thinking of creating a website that may contain some buying/selling items, so I was wondering which framework is the best for shopping online. I have some experience with codeigniter, but I was using it for its MVC structure which organizes and uses files more efficently. Anyway …

Member Avatar for diafol
0
189
Member Avatar for cmps

Hello, I want to create tables in database (using SQL) and add foreign keys to each table refering to the other one. For example: CREATE TABLE ONE( ID INT NOT NULL, NAME VARCHAR(20) NOT NULL, TWOID INT NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (TWOID) REFERENCES TWO (ID) ON DELETE …

Member Avatar for pritaeas
0
365
Member Avatar for cmps

Hello all. Currently I develop PHP website, and I do simple java programs. Since I will continue learning more and more java, I decided to learn JSP/Spring MVC (Don't really know how Spring MVC Framework uses JSP, check next paragraph) combination of my web knowledge and the Java programming language. …

Member Avatar for cmps
0
256
Member Avatar for cmps

Hello, well this suddenly surprised me .. dunno why ... i was trying to solve the binary-tree implementation ... where i noticed using root.left = new node bla bla My question insert(Node root,int value) root.left = new node(null null value) Etc ... The function doesnt create a copy of the …

Member Avatar for cmps
0
235
Member Avatar for cmps

Dear Daniweb, I am facing a problem with daniweb forum, it keeps crashing randomly (only when I am browsing the website, if I am not on the website tab or not moving the mouse, nothing happens). I am using firefox mozilla OS: UBUNTU and WIN7 (same computer partition: ubuntu 14 …

Member Avatar for cmps
0
265
Member Avatar for cmps

Hello!!! mmm am learning OOP in Java ... and now I'm facing a prob in reading/writing .txt file here's my code: import java.util.Scanner; import java.util.Formatter; import java.io.File; import java.io.FileNotFoundException; public class Tester { public static void main(String[] args) { Scanner scan = null; Formatter formatter = null; File fileI; File …

Member Avatar for cmps
0
2K
Member Avatar for cmps

Heyyy!!! I saw yesterday some projects for computer scientists, they connected the computer to a light that turn on/off on a submit button click from a webpage (locahost) ... It's not all, there is a team who created a trafffic light sensssorrr!!!! the lights switch automatically depending on the move …

Member Avatar for cmps
0
323
Member Avatar for cmps

I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't …

Member Avatar for cmps
0
126
Member Avatar for cmps

Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you

Member Avatar for cmps
0
121
Member Avatar for cmps

Hello, it's me with oop again, So now I understand what are oop and how to use it, but I have 2 questions: [1] - How to use controllers models views libs [2] - Is there any tutorial on how to create a cms using oop even if I should …

Member Avatar for simplypixie
0
85
Member Avatar for cmps

Hello, I have created many websites using only classic php and functions But now I decided to learn classes, I understood how it works but haven't used it yet. I have phpcake tutorials, but don't know if it is good to learn it or it is not a good idea …

Member Avatar for cmps
0
198
Member Avatar for cmps

Hello, I want to know if I am doing a list of students, which are executed from database (mysql), does the number of data influence in the speed of the page load? if yes: What to do ? And for how much data should I start to think for a …

Member Avatar for cmps
0
130
Member Avatar for cmps

Hello, I want to display all data from database (repeat) and not only the last one: In classic php I do this using: [CODE]... $row_record = mysql_fetch_assoc($record); do { echo 'Record <br />'; }while($row_record = mysql_fetch_assoc($record))[/CODE] In advanced php (using class) I decided to create my own way, so here …

Member Avatar for cmps
0
183
Member Avatar for cmps

Hello, Am not new to PHP but new to OOP, I have watched lot of tutorials for oop and as I saw, class is almost a new language!! To be a pro programmer, I should learn existing class attributes or I should create my own?? example of default class attribute: …

Member Avatar for cmps
0
115

The End.