How to make organisation chart by getting data from mysql and php - orgchart

I want to show my data on balkan graph by php which is stored in mysql . Have enyone any idea that how to create ID and PID dynamically.
Thanks in advance

BALKANGraph developer evangelist here
If you have unique filed in your data, for example email address or telephone number, you can use that field as id or pid

Related

when we use json data type in database?

I want to ask..
1. When do we use JSON data type in a database?
2. What about performance if the data size is big?
Example:
I have user credential table with the following columns:
name
email
password
status
phone
and I want to add adittional data like address, sex, photo, zip code
What is the best solution?
Just add the columns into the existing table user
Create a new table
Create a new json data type
I am sorry if the question is basic..
Thanks in advance
To use json data type in table assume that data is stored in json format by using bytea/blob we can save json in postgresql database.
Its better to Alter table and Add columns to existing table.
Performance of Database directly related to Memory or Space available in Computer/Server (so it doesn't matter if data is big)

About Slugs Creation in codeigniter

Hello Every Every One here me.
Actually me trying one thing from many days it about URL means me want friendly Url in my site Besides showing id etc there.Like (www.abc.com/this-is-me-from-php-show-test) in replacement of this (www.abc.com/controller_name/function/23) kindly help me as soon as possibly by badly i have no written code for you guys.just suggest me any site or tutorial about it.both suggestions appreciated dynamic slugs or static.Thanks
Assuming you have a table called projects and currently it is identified by the id field e.g. localhost/projects/get/123 then you should create another column in that table for slugs where you put the name-of-the-project. Then in your get($slug) function instead of querying the id field for the specific project query the slug field.
You can use a 3rd party library to generate slugs: https://github.com/ericbarnes/CodeIgniter-Slug-Library/blob/master/Slug.php
Then just write a script to populate all of the slug fields and it might be a good idea to test if the $slug field is an integer indicated a legacy id for current SEO purposes (to prevent broken links).

MySQL Query Command Grab Value From Cell

Okay, I am experienced in PHP, HTML, CSS, and JS but am getting adapted to MySQL. Here I have a table with a structure like so:
username password data
______________________
bob password 3983
tim password 9872
jim password 3892
And so forth. What is the simplest way to get Tim's data for instance? The SELECT command according to the MySQL documentation is for selecting a row, but I need to grab the value from an individual table cell in a row. Thank you!
Note: I did Google for this answer but all I get is a ton of 10 page documentations
You can specify the data columns you're interested in after the SELECT keyword:
SELECT data FROM table WHERE username = 'tim';

Where is user profile information stored in the Dotnetnuke database?

Here is the situation I'm in:
I just implemented a DNN site. I already have a huge database table of users. Now when my users come in to register for my DNN site, they're required to put in a first name, last name and DOB. I will then use this information to match their records to the existing user table via a SQL query. The only problem is I can't find "DOB" field anywhere, in any table or for that matter most of the rest of the profile information. Is it even stored in the database? or am I just blind?
The best answer I could find was from a dnn forum which stated
"User profile information is stored in several tables in the database. The 'Users' table is the place to start for basic information. There are several tables that have "profile" in the name that also are important."
I've looked through almost every table in the database, but with no luck...
I'm using DNN 6.0 with SQL Server 2008
I've looked everywhere but can't find it. Any help or guidance from anyone would be much appreciated! Even a paid solution like a pre-built module would work.
Thanks
Look in the ProfilePropertyDefinition table for the PropertyDefinitionId of the dateOfBirth property. Then, with that id, and the id of the user, you can query the UserProfile table to retrieve the value.
There is more at this blog post
http://erikvanballegoij.com/Home/itemid/28/Selecting-profile-properties-the-easy-way

MySQL Auto-incremented ID number sent to User as registration number

The question is in bold. Everything else is for context.
User submits form data, which is inserted into a MySQL db. The MySQL db generates an auto-incremented "id".
"id" is then (auto) pulled out of the db and is emailed to User via a "Success" email.
Possible? How?
Thanks,
Leo Jerome
Its definatly possible. Depends what language your most familiar with but here
is one way
Assuming you're using php, use mysql_insert_id() to get the id of the last inserted record. It returns an int.
In PHP you are able to receive the last id inserted by using mysql_insert_id() (see here) and further mail()