651 Posted Topics

Member Avatar for kay_1

temp and tempNext are used only internally this method why do they have pointers ?

Member Avatar for jkon
0
450
Member Avatar for jkon

Hello , I am not Linux and Unix expert so maybe this is a simple question to be answered , I am just not sure. I have a sever with 8 cores (running CENTOS) that executes a batch job once a day for few minutes . I tried to monitor …

Member Avatar for rubberman
0
411
Member Avatar for jkon

Some years ago I was in fishing , then Mountain biking and almost one year now I am in gardening ( I still go for fishing or a biking ride in a near mountain) . I always knew that my relationship with earth , dirt , and plants provide me something …

Member Avatar for Kevin_1
0
361
Member Avatar for jkon

I am a partner in a company that deals with various aspects of the web presence of a company. Those aspects some times touch back office and more often replace it entirely. I have no idea of the mobile games field but last week my interest flamed. I tried several …

Member Avatar for jkon
1
593
Member Avatar for destiny_3

hello destiny_3 with this code stop programming at all , do something else in your free time , apparently you don't have it . If you still want to be a programmer return to basics and LEARN them

Member Avatar for rubberman
-1
6K
Member Avatar for phorce

Hello phorce , I can see three issues with your table 1. Naming . From your example its obvious that you didn't meant rate_from , rate_to but hour_from , hour_to or even better fromHour , toHour . Its important to name our fields for what they represent in order for …

Member Avatar for diafol
0
387
Member Avatar for UI

Viral marketing is not black and white. I believe that is obvious that the “Weight Loss” example is in one of the darkest shades of Viral Marketing. How can you like / vote / share / follow something that you don't know what it is. I don't believe that the …

Member Avatar for UI
0
565
Member Avatar for patk570

Hello patk570, We have (almost) no idea from your code what $this->db_connection actually is. You keep talking about PDO but the var_dump and print_r that you provided say it clearly: object(mysqli_stmt) . So is it mysqli and NOT PDO ?

Member Avatar for jstfsklh211
0
285
Member Avatar for jkon

Recently I discovered that dancing against the sun or lights is great. You can see your shadow moving … lets do it and describe it (mine was a dark wall against a full sized wall window , with a eurovision song (yes) playing hprttps://www.youtube.com/watch?v=qZ8MSAPh4 ) Let's dance and share the …

Member Avatar for cereal
0
283
Member Avatar for seularts

Hello seularts , I can't understand the “I am trying to group these IDs and output the Values for those IDs on a single Row” part. If you have multiple rows with the same ID how the other columns of these rows will be grouped to output only one row? …

Member Avatar for jkon
0
2K
Member Avatar for jkon

I have made more than a few proposals for the general future of DaniWeb over the time but here is a really small and easy to implement suggestion. Today I replied to a question from a person that I have the opinion that doesn't really need to get answers but …

Member Avatar for Dani
2
548
Member Avatar for davy_yg

Hello, You wrote that “ on the right side said inline ” . Witch css inspector tools are you using ? For example in Chrome developers tools under inspect you have element.style for styles applied inline in element level , or the name of the current HTML page for classes applied with …

Member Avatar for Clif40RD
-1
241
Member Avatar for UI

As rubberman wrote you declared the $value inside the foreach for this array iteration. @see http://php.net/manual/en/control-structures.foreach.php There are more than that about arrays iteration in PHP (and differences in versions) but I don't want to mess you with these. Just a quick comment , $value doesn't "live" only within the …

Member Avatar for diafol
0
314
Member Avatar for Dani
Member Avatar for Violet_82

There are many MVC implementations and there is not “right” or “wrong” here. But I also find trivial the second point of JamesCherrill , also in my point of view Model and View don't communicate (they don't even know the existence of one other) only through a Controller. There are …

Member Avatar for JamesCherrill
0
1K
Member Avatar for rouse

If localData is a JS object that has a public property Id then localData.Id or localData["Id"] will do the same thing ( not localData[Id] ). There are many things we don't know for your code but the obvius one here is that you didn't defined the scope of localData variable …

Member Avatar for rouse
0
986
Member Avatar for diafol

This is a very interesting topic. I was one of early adapters of PHP 7 and even in one of our production servers. That was due to: The default PHP 7 OpCache support The rewriting of threads support (new pThreads) The scalar type declarations The rewriting of the engine to …

Member Avatar for rubberman
1
398
Member Avatar for jkon

Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then make several attempts to insert code. One thing that it would be done in few milliseconds if I had a …

Member Avatar for Dani
0
426
Member Avatar for jkon

Ok today I figured out that the new DaniWeb UI has major problems , I just up voted a comment leaving a comment that someone else down voted. What happened ? I will not tell … try it your self … haven't you ? .. WHY ? (no analysis ? …

Member Avatar for happygeek
-2
299
Member Avatar for Latrell_vie

PHP isn't complex . Everything outside PHP tags will consider it as direct output. Let's see an example : <?php function hello() { echo "hello"; } hello(); ?> Is the same as: <?php function hello() { ?> hello <?php } hello(); ?> And some more about that. PHP as many …

Member Avatar for Latrell_vie
0
297
Member Avatar for Dani

Dani Google is not the bad guy here … someone else is. What is the really interesting content of any thread here the last months ? Its not interesting for you why should be for Google ? No your notion of arguing about general things will not do the job. …

Member Avatar for Reverend Jim
0
731
Member Avatar for Dani

Hello Dani, although as I have wrote many times I am pro adaptive – first / responsive - second architecture in front end , your subject make sense in every front end architecture. Google has the 48px rule in mobiles ( https://developers.google.com/speed/docs/insights/SizeTapTargetsAppropriately ) . Although I was skeptical about it …

Member Avatar for jkon
0
346
Member Avatar for Dani

Dani what are you really doing ? Where is the WSDL that will describe those services ?

Member Avatar for diafol
0
968
Member Avatar for davy_yg

http://google.com/#q=responsive+vs+adaptive Its not like the adaptive view can't be responsive. For example if you expose only one view for tablets and mobiles its reasonable that this view will be responsive . Also in desktops view you will have some kind of responsive css in 1024 screen width and in 1920 …

Member Avatar for jkon
0
299
Member Avatar for fazal_1
Member Avatar for Dani

Dani you seem to really believe in Dazah. That's great , just don't mess it with DaniWeb till Dazah will have its own critical amount of users. Don't expect to happen the other way around , to make Dazah great using DaniWeb users , the only thing that will resolve …

Member Avatar for Dani
0
916
Member Avatar for Stefce

Every time you don't use prepared statements , a beaver dies in Narnia ( The case pro prepared statements made long ago many many many … many times no need to repeat it) Also “GET parameter” ? Is '96 again ? Is coding something like fashion ? Does the early …

Member Avatar for jkon
0
241
Member Avatar for Aeonix

Hello Aeonix as I can see you already use jQuery so what is the point of all these : document.getElementById , *.style.opacity ?

Member Avatar for diafol
0
598
Member Avatar for v1shwa

About “MySQL is also giving slow response which is affecting other DB operations” as I understood you keep open the connection throughout all processes , you could just open the connection make your update – insert or what ever - close it , and then from the start.

Member Avatar for Tomaski
0
441
Member Avatar for AntonyRayan

AntonyRayan it is possible , just create a new field in the table with the type you like , a batch to copy data appropriately from the old field to the new , and delete the old field (after that you could even rename the new field to have the …

Member Avatar for cereal
0
580
Member Avatar for hrushi9

Hello hrushi9, Your original question about MySQL and WebSockets only proves the phrase “Looks like you are trying to do something much harder than you can chew.” that Taywin used. Currently there isn't any open source framework (in my knowledge) in PHP that make WebSockets work in a simple but …

Member Avatar for jkon
0
3K
Member Avatar for eternalcreator

You ask help for what ? The title of the topic says that it has something to do with joining three tables , your message doesn't says anything like this. First about the sql query: 1. Provide the data structure of your tables 2. Provide the criteria that you want …

Member Avatar for eternalcreator
0
387
Member Avatar for anirban1087

Give the detailed data model. The specs, and the flow that you want the program to follow.

Member Avatar for Rishos
0
5K
Member Avatar for SubratPHP

Of course , other two (three counting comments) great programmers have spend their time to help others and responded . The creator of the message didn't spend even a minute to respond. The message is crystal clear “mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given” what else can be …

Member Avatar for jkon
0
844
Member Avatar for showman13

Hello showman13, I started to answer but realizing that I have answered that question more times in the past I decided to create a code snippet with the answer to this and to most related questions (it is a more generic answer), so here it is: https://www.daniweb.com/programming/web-development/code/505725/getting-the-after-root-url-with-php

Member Avatar for showman13
0
541
Member Avatar for Henryu

Hello Henryu, Although in the PDO DB connection object constructor you define the default schema there is nothing stopping you from selecting from other one or using JOIN with two different schemas in the same server as long as: A: The user has sufficient privileges in both schemas B: You …

Member Avatar for jkon
0
248
Member Avatar for Marcus_3
Member Avatar for Laith_2
0
233
Member Avatar for spluskhan

Diafol mentioned cron jobs , but you replied to something different. Do you understand what a cron job is ?

Member Avatar for diafol
0
915
Member Avatar for jkon

I found myself starting to answer a question that I have answered many times , so I thought why not making a code snippet and just reference this. This is a short code snippet only to demonstrate how this thing work (with apache and rewrite engine on) , in real …

Member Avatar for jkon
2
665
Member Avatar for Jon_7

Hello Jon_7 , I didn't quite understood what you want to do different than what you already do. The one thing that I got was “but I'd like for the green background fill to be behind the words”. The background fill is already behind the percentage text. Is what you …

Member Avatar for Jon_7
0
319
Member Avatar for Stefce

Hello Stefan First of all NO , this code is NOT safe. As rproffitt mentioned it is wide open to SQL injection , take a moment to look at PDO and prepared statements. Then there is the way you encrypt the password , take a moment to look at CRYPT_BLOWFISH …

Member Avatar for jkon
0
493
Member Avatar for Violet_82

Short answer : input file accept http://www.w3schools.com/tags/att_input_accept.asp It has a meaning also to check extensions before uploading in case there is a browser that doesn't support file accept http://caniuse.com/#feat=input-file-accept Of course you should ALWAYS check server side at least the mime type before processing the file

Member Avatar for Violet_82
0
407
Member Avatar for rpv_sen

Hello rpv_sen , there are many things in your code that could be better but I will not stand on those (only mentioning that when you have a variable inside a function you should declare it with var in front , also you don't check if the result data.hits and …

Member Avatar for jkon
0
2K
Member Avatar for AntonyRayan

You need to provide more information in order for anyone to understand what you are doing. First of all your data structure. Secondly your server side code. And third your client side code. What do you mean “bar chart” are you using a JS plug in ? Is it something …

Member Avatar for jkon
0
608
Member Avatar for Jon_7

Hello Jon_7 From where do you get the data for these events ? In what format do you get them ? What language do you use server side? Why did you choose to use the DOM id for the date of the event (e.g. couldn't be two events in the …

Member Avatar for Jon_7
0
492
Member Avatar for sujeeth_1

Hello sujeeth_1 What exactly do you mean by “ single session storage” ? What language you use server side? Do you want to do it only client side ? What have you try so far ?

Member Avatar for jkon
0
120
Member Avatar for SimonIoa

There are a lot of issues in your code and I wouldn't know were to start from (some of them may really be some others may have to do with the way you write code). Try to separate issues and find out were you really have problem. For example in …

Member Avatar for SimonIoa
0
382
Member Avatar for Ivan_10

In your example you open 5 – five divs (you have five <div>) and you close 4- four divs (you have </div>), what exactly is it ? . If it were all nice and clean its quite simple: Html: <div class="to_remove"> <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> …

Member Avatar for Ivan_10
0
334
Member Avatar for McLaren

We have no real idea how well you know PHP so any attempt to calculate how many hours (days or weeks) you would need for a PHP 7 test would be just a lucky guess. If you know PHP 5.3 + (in a structural way that you can accomplish any …

Member Avatar for diafol
0
195
Member Avatar for andreiviziru

Flash is a historical aspect of the web , something that some of us used before web 2.0 . Flash is not supported anymore in any major browser (some give you still the option to download it an other just having weird messages like Chrome). So don't use Flash . …

Member Avatar for andreiviziru
0
379

The End.