651 Posted Topics
Re: temp and tempNext are used only internally this method why do they have pointers ? | |
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 … | |
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 … | |
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 … | |
Re: 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 | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 ? | |
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 … | |
Re: 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? … | |
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 … | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 … | |
![]() | Re: 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 … |
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 … | |
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 ? … | |
Re: 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 … | |
Re: 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. … | |
Re: 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 … | |
Re: Dani what are you really doing ? Where is the WSDL that will describe those services ? ![]() | |
Re: 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 … | |
Re: Classic homework | |
Re: 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 … | |
Re: 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 … | |
Re: Hello Aeonix as I can see you already use jQuery so what is the point of all these : document.getElementById , *.style.opacity ? ![]() | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Give the detailed data model. The specs, and the flow that you want the program to follow. | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: Hello Marcus_3, Of course and it can be done through AJAX calls. Have you used AJAX in the past ? | |
Re: Diafol mentioned cron jobs , but you replied to something different. Do you understand what a cron job is ? ![]() | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 ? | |
Re: 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 … | |
Re: 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> … | |
Re: 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 … ![]() | |
Re: 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 . … |
The End.