-
Replied To a Post in Display html table from php array
Hello AndrisP, although a bad practice , PHP accepts a comma after the last element of an array. Maybe bad code indentation made you miss line 16. That same bad … -
Replied To a Post in Display html table from php array
Hello, See the View_Generator_Table class at https://www.daniweb.com/programming/web-development/threads/498786/creatings-html-row-from-a-database#post2181597 What went wrong in your code is line 21 , you don't have 10 columns -
Replied To a Post in how to store xml output into variable
So , is this solved ? -
Replied To a Post in how to store xml output into variable
Yes you are right ;) . Then @see http://php.net/manual/en/simplexml.examples-basic.php (of course you will add an ?xml start tag (as in the example there) and also var_export first the results to … -
Replied To a Post in how to store xml output into variable
@see http://php.net/manual/en/function.file-get-contents.php && @see http://php.net/manual/en/function.json-decode.php -
Replied To a Post in PHP multi-dimensional arrays
Hello James, PHP associative arrays (that are the one returned by PDO fetch PDO::FETCH_ASSOC @see http://php.net/manual/en/pdostatement.fetch.php ) need quotes if the key is string . e.g. $results[2]["blog_id"] . If you … -
Replied To a Post in A simple Data Layer for OOP PHP Applications
Hello , in Data Workers example of usage I didn't included the actual Data Workers classes that this example uses, here there are: /** * The data worker for the … -
Created A simple Data Layer for OOP PHP Applications
A simple Data Layer for OOP PHP Applications Hello, first of all to understand this tutorial would be best if you have some knowledges about OOP ( https://www.daniweb.com/programming/web-development/tutorials/437592/introduction-to-phps-object-orientation by priteas … -
Gave Reputation to shany0786 in Document Root
ok i think i made the mistake in ---- representation /public Document root where public files are accessed ` -css -images -content -js /Resources -library -template -config.php ` resource folder … -
Replied To a Post in Document Root
Hello Sunny , there are many ways to organize folders. One way is the source code (e.g. PHP + settings file) goes under src folder and what is meant to … -
Replied To a Post in Who likes the tagging system?
If you feel comfortable about something you don't really like radical changes. I understand the reasons that drove DaniWeb to that choice , some of them are correct in my … -
Replied To a Post in Document Root
From the structure I see I guess that you put your php source code under public_html . Is there any reason for that ? Is php “public files” ? Generally … -
Replied To a Post in Copy folder and file structure in the database
Hello Diafol , thank you for your comments and for taking the time to write this example (don't forget that still you had to copy the files (document_files) from the … -
Replied To a Post in Copy folder and file structure in the database
Hello Diafol, I liked very match the name of the class ;). I wouldn't explain in depth now to why there is the false belief that the Nested Set Model … -
Replied To a Post in Copy folder and file structure in the database
Hello Diafol, the solution I gave (making an implementation with arrays of the IndexedList Model as I described) is more generic (it wasn't designed for an once time job) and … -
Replied To a Post in Copy folder and file structure in the database
First of all your database structure could be quite different , maybe this is a test structure. This answer is based in the IndexedList model , but since the framework … -
Replied To a Post in Copy folder and file structure in the database
Hello Klaus , first the code and then some comments <?php error_reporting(E_ALL); ini_set("display_errors", "1"); $database = "test"; $username = "testuser"; $password = "testpassword"; // Nowdays MySQL hase natural prepared statements … -
Replied To a Post in PHP/mySQL Blog - general questions
Hello James_43 , we call it friendly URL's . They are friendly also in S.E.O. perspective but also to final user. You must first understand how .htaccess work a bit … -
Replied To a Post in my website is not secure
/** * I don't know if apartment in your table is * VARCHAR or INT or its type */ $safe_apart = "test value"; $room_no = "test value"; $safe_floor = "test … -
Replied To a Post in Could you share your knowledge about life?
We all make a journey and I believe that our current position to that would be quite different if that journey were alternated. But my advice to everyone else would … -
Replied To a Post in mysql pdo non object HELP
set in the SQL query should be best to be capital SET , also what this catch (mysqli_sql_exception does in your code ? You are working with PDO -
Replied To a Post in mysql pdo non object HELP
Yes to understand what an object is , is something you have to do ;) The second is to read and understand the error messages , you wouldn't need hours … -
Replied To a Post in Cookies separated by comma in some versions of iPhone / iPad software
The session_id() is: e.g. `b1d563872157c7b7d7d7c0891dd1867b,PHPSESSID=b1d563872157c7b7d7d7c0891dd1867b` and the $_COOKIE array is: e.g. array ( 'PHPSESSID' => 'b1d563872157c7b7d7d7c0891dd1867b,PHPSESSID=b1d563872157c7b7d7d7c0891dd1867b', ) After doing a quick research , it turns out that the problem isn't … -
Replied To a Post in Cookies separated by comma in some versions of iPhone / iPad software
Hello cereal , thank you for your response and especially the idea to see what has the $_COOKIE array in these cases. I added id to the report but all … -
Created Cookies separated by comma in some versions of iPhone / iPad software
Hello, I am writing this to warn you and because I haven't selected yet witch solution to choose , so your opinion is more than welcomed. The problem: in some … -
Replied To a Post in Generate html table from php array
take a look at: https://www.daniweb.com/web-development/php/threads/498786/creatings-html-row-from-a-database#post2181600 -
Gave Reputation to ehpratah in PHPExcel Generate 2 or more Excel File
Got it! Line 45 is the one causing the problem..i just remove that line and everything working fine. -
Replied To a Post in PHPExcel Generate 2 or more Excel File
Hello ehpratah, I am ready to recreate your example but I can't understand from your posts (and the image) why e.g. in the first image you wrote -this record shouldn't … -
Replied To a Post in PHPExcel Generate 2 or more Excel File
What is this “../includes/pdo_config.php” ? It seems that in first case you include it AFTER you create the first prepared statements . You use two different ways to retrieve the … -
Replied To a Post in multistep form in codeigniter??
Just understand that you ask a question about a specific framework. I have n idea about it , doesn't that framework have a community ? -
Replied To a Post in Real time Web Script
It surprise me that from all that I wrote this is what you kept. Yes , it has a WebSocket layer (we hadn't published it yet) , but as I … -
Replied To a Post in Using php for values in a chart
The “json query” you refer to is the doughnutData at line 2 ? Do you want to use it server side (in PHP) or client side (in JavaScript) ?. How … -
Replied To a Post in Real time Web Script
I just realized what maybe you think you are doing (it helped me that you mentioned that you think you are creating a chat application). In my point of view … -
Replied To a Post in Real time Web Script
Next example (since you asked) what would be different if you didn't had this code ? else { sleep(1); continue; } Is there any reason for putting PHP to sleep … -
Replied To a Post in Real time Web Script
Hello phoenix254 the few line of code that you presented have nothing to do with what you are wrote that you are trying to develop , a real time chat … -
Replied To a Post in why my variable is null always?
Because you set it as null ? I will not read this code to find more errors but in you while loop you never set it to any variable , … -
Replied To a Post in Tech Workplace Environments
If you are an IT manager you must think how will you make more money out of people. You prefer people that really love what are they doing , are … -
Created Searching for the bug ... but there isn't any
There are some times in my life that I am sure there is a bug in my code but it turns up that the bug was in the language or … -
Replied To a Post in cpp code compile in php
jeffersonalomia , I hope you know that PHP can execute an external program. That way you can save the original C++ code in a file , and run the C++ … -
Replied To a Post in how to push multidimensional array
If you print it (or var_dump) it doesn't print $val1 , it prints an array that the first value of it is the $val1 (the second is the $val2) @see … -
Replied To a Post in talk about "Common Issues with MySQL and PHP"
This is an issue that have troubled also me in the past. I am pro to choose the way you crypt the password yourself and not let PHP decide by … -
Replied To a Post in Table not displaying correctly as .php file, but works as .html?!
Hello NuGG, You still don't do the first thing that we do at any time. Check with a client side developer tool like Firebug or Chrome Developer tools what is … -
Replied To a Post in Table not displaying correctly as .php file, but works as .html?!
Have you checked with a client side tool like Firebug or Chrome Developer tools that the same CSS rules apply in both cases ? -
Replied To a Post in How to upgrade the PHP version?
I understand not trusting the latest versions of PHP released for production but 5.3 is something old, consider at least 5.5.24. To give you any help we should know a … -
Replied To a Post in talk about "Common Issues with MySQL and PHP"
Hello, In both cases (repository and the indexed list model) I am thinking to write a tutorial long time now. The problem is that I should write those without the … -
Created talk about "Common Issues with MySQL and PHP"
This is about “https://www.daniweb.com/web-development/php/tutorials/499320/common-issues-with-mysql-and-php” i created a new thread because that is a great tutorial and I believe that comments underneath it would troubled the reader. Hello Diafol , I … -
Gave Reputation to diafol in Common Issues with MySQL and PHP
## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. … -
Replied To a Post in Javascript on top-of-page mouseover?
What is the top of the page for you ? How do you define it ? The statement that you asked elsewhere as well has nothing to do with increasing … -
Replied To a Post in capturing div information with mondal
Your problem has nothing to do with modal windows (that I don't see anywhere in your code). Client side you have js , css and html (served by server side), … -
Replied To a Post in populating dropdown with database???
You have 24 lines of code (along with empty lines) and I could make more than 30 fast comments of why this MVC implementation has serious problems. But lets stay …
The End.