am using the application in this link
http://www.jeasyui.com/tutorial/app/crud2.php.I have added one more column say like 'empno' in the database by using phpmyadmin(using wamp server).And when i refresh the page..the newly added column is not displaying in the grid..And also the grid is small..I want to increase the height.How?
Thank you verymuch
increase the height using this line :
<table id="dg" title="My Users" style="width:550px;height:250px" //edit table height
and for the undisplayed column i don't know why this is happening recheck if the column is inserted in the table again in wamp server
Related
I am trying to create a database under phpmyadmin and add fields to it. but when I choose the number of columns of a table that I create, it gives me a single column, and even until this column after being filled with its properties, the field registration does not take.
except before I didn't have this problem
I don't know what was the problem, but after deleting the installation files and reinstalling, the problem disappeared
I have uploaded CSV via CLI command and in the CSV have used bullets with description column.
When it imported in MySQL its showing like boxes for reference we have also attached screenshot. i want to replace with <li> tag or any other character. But neither i am able to select and replace character in MYSQL nor vi PHP.
I have already try update table name set field = replace(filed,"spacial","") but character not recognized in MySQL query.
We can change on front-end with help of javascript. So, share your website single page link or HTML from top (id or class).
Thanks you guys for solutions but i got the solution to replace character bullet was not visible in database but i have tried and got luck. it was replaced luckily.
MYSQL update script for Magento 1 product short description and description update query. you can also run with your tables via replace table name and fields.
UPDATE catalog_product_entity_text SET value = REPLACE(value,'• ','') WHERE entity_id = 141047 and attribute_id in (73,74)
I am currently moving from one ticketing system to another. The table columns are close but not quite. I can run a query that will change the column name to what I need. However, when I export I am getting the original column name.
Here is the query with alias:
SELECT u.id AS staff_id
FROM users AS u
This gives me what I need. However when I export it, it is showing the original column names. Is there a way to keep the alias when exporting?
Since you're using phpMyAdmin, you can quickly use the "Rename exported databases/tables/columns" feature to rename your table and/or columns when exporting. (I believe this feature was added with version 4.6.0).
On the export page, select the "Custom - display all possible options" radio button, then in the "Output" area look for the "Rename exported databases/tables/columns" checkbox, which opens an additional dialog where you can adjust these names.
I do have thousands of website list and other info in MySQL database.
I want only website column named "web" to be exported to excel or text or csv.
I know how to export the whole data but dont know how to export particular column.
Query
SELECT `web` FROM `yourtablename`
Or this to export unique records only:
SELECT DISTINCT `web` FROM `yourtablename`
Then click export link given on bottom (in phpmyadmin)
It is easiest way as per me
In my case, I have a users table with 20k records. Then i export 20k email address using this technique. You don't need to write any query.
open your table (user_login) and click on the structure button
Select column which you want to export. In my case I need on email column so I selected the email column and then click on browse button.
After click on browse button scroll down the page and click on export button. which i mentioned in screen.
Final step
select your export format and click on the go button... :)
Thank you for reading this. I hope you get the solution
You can execute this query directly using phpmysql :
SELECT web FROM your_table INTO OUTFILE '/tmp/web.sql'
After that, you can login to the database server OR use php to access the OUTFILE
details - mysql select
open the table from which you want to export only certain column , click on structure , tick mark on check box of that column , click on browse button !
after that it will show you your column data , below their is written export button click on it !
don't click on export button which is at the top bar ,
now export your column by clicking on go Button.
You could do a query like:SELECT web FROM table; and then just export that.
Enter SELECT web FROM table; and then click on the "Export" button that is at the bottom of the list. IMPORTANT, don't clic on the "Export" button at the top of the list, or you will export the whole data.
HI everybody, i have a question。
A sqlite have about 15 tables,and mysql same.i want sqlite to sync mysql every hour,what can
i do?
i have a idea ,use a (script / php) to export sqlite'tables value and (send to mysql or sent url),and mysql use a (script / php) to update DB.but this way like not good.
or have some tool that i can use?
thanks all.
If you don't want to do full exports/imports each time, what you would have to do have a "last_modified" field in each table that contains a date for when that row was last modified. Then on each sync, save the current timestamp, and on the subsequent sync, issue a query like:
SELECT * FROM TABLE WHERE last_modified > $last_sync_timestamp
..and you get your list of updated rows.
Note that this won't "propagate" rows that get deleted from the tables. Instead of deleting those rows, what you'll need to do is have another field called "visibility" that is toggled to false when a record is deleted, and your application modified so that said rows are not shown. Then have your syncing code actually delete the "not visible" rows from the table after a certain number of syncs.
Hope this helps.