Ask a Question related to PHP Development, Design and Development.
-
hope@hope.com #1
PhpMyadmin Help
Hi All
Hope this is the right group
I'm using phpmyadmin
When I start up phpmyadmin it list my
table fields like
v_255_1
v_255_2
v_255_10
v_255_3
v_255_15
v_255_4
What I want is to sort it so it list them like
v_255_1
v_255_2
v_255_3
v_255_4
v_255_10
v_255_15
How can I do this please
Regards
John
hope@hope.com Guest
-
phpMyAdmin Can't create DBs HELP
Hi, Been pulling my hair out and doing searches in google and reading the FAQ out there but stumped. PHP 4.3.2 installer for windows, MySQL... -
phpMyAdmin - how big is too big?
When importing a previously gzipped dump using phpMyAdmin, the maximum size allowed for the compressed file is 50mg. Does anyone know how this... -
Help with phpMyAdmin
I am new to the world of Dynamic Web Design. I have already manage to install Apache and PHP/MySQL. But I am having trouble with installing... -
PHPMyAdmin
Well I got it working, I just needed to change the host line to localhost :D, thanks to both of you for the replay, apreciated. have a nice day.... -
phpmyadmin - help please!
In article <225f60c6.0307031409.9b27679@posting.google.com>, hsirhc@hotmail.com says... If you can see it 'properly' in phpmyadmin and not in... -
Janwillem Borleffs #2
Re: PhpMyadmin Help
[email]hope@hope.com[/email] wrote:
Here's a quick hack for the left navigation that I have tested on version> What I want is to sort it so it list them like
> v_255_1
> v_255_2
> v_255_3
> v_255_4
> v_255_10
> v_255_15
>
>
> How can I do this please
>
2.5.6:
Open the mysql_wrappers.lib.php file in the libraries/ directory and replace
the PMA_mysql_tablename function with the following:
function PMA_mysql_tablename($result, $i) {
global $sorted_tables, $num_tables;
if (!is_array($sorted_tables)) {
$ordered = array();
$sorted_tables = array();
for ($x = 0; $x < $num_tables; $x++) {
$ordered[] =
PMA_convert_display_charset(mysql_tablename($resul t,
$x));
}
natcasesort($ordered);
foreach ($ordered as $name) {
$sorted_tables[] = $name;
}
}
return $sorted_tables[$i];
}
This hack does not fix the sorting issue with the db_details_structure.php
file, but I'm sure that you will post again when you need help with this too
;-)
JW
Janwillem Borleffs Guest
-
hope@hope.com #3
Re: PhpMyadmin Help
Hi Jw
Thank you for the script , yes it worked great for the left panel view
BUT that was not the problem
1.....I start Phpmyadmin
2.....On the left panel I have all my data bases
3.....Click on one of my data bases
4.....Now in the left panel I see all my tables
5....Click on one of the tables
6....Now in the right panel I see all the structure for that table
7....Under the fields I have all my field names
8....This is where I wanted to sort them in order like
v_255_1
v_255_2
v_255_3
v_255_4
v_255_10
v_255_15
Regards
John
On Sun, 9 May 2004 01:59:19 +0200, "Janwillem Borleffs" <jw@jwscripts.com> wrote:
>hope@hope.com wrote:>>> What I want is to sort it so it list them like
>> v_255_1
>> v_255_2
>> v_255_3
>> v_255_4
>> v_255_10
>> v_255_15
>>
>>
>> How can I do this please
>>
>Here's a quick hack for the left navigation that I have tested on version
>2.5.6:
>
>Open the mysql_wrappers.lib.php file in the libraries/ directory and replace
>the PMA_mysql_tablename function with the following:
>
>function PMA_mysql_tablename($result, $i) {
> global $sorted_tables, $num_tables;
> if (!is_array($sorted_tables)) {
> $ordered = array();
> $sorted_tables = array();
> for ($x = 0; $x < $num_tables; $x++) {
> $ordered[] =
> PMA_convert_display_charset(mysql_tablename($resul t,
>$x));
> }
> natcasesort($ordered);
> foreach ($ordered as $name) {
> $sorted_tables[] = $name;
> }
> }
> return $sorted_tables[$i];
>}
>
>
>This hack does not fix the sorting issue with the db_details_structure.php
>file, but I'm sure that you will post again when you need help with this too
>;-)
>
>
>JW
>
>
>hope@hope.com Guest
-
Janwillem Borleffs #4
Re: PhpMyadmin Help
[email]hope@hope.com[/email] wrote:
Not sure if this is what you mean, but try the following patch:> 8....This is where I wanted to sort them in order like
>
> v_255_1
> v_255_2
> v_255_3
> v_255_4
> v_255_10
> v_255_15
>
- In the mysql_wrappers.lib.php file, add the following function:
function PMA_natcasesort($array) {
natcasesort($array);
return array_values($array);
}
- In the tbl_query_box.php file, above line 155, insert the following call:
$fields_list = PMA_natcasesort($fields_list);
HTH;
JW
Janwillem Borleffs Guest
-
Janwillem Borleffs #5
Re: PhpMyadmin Help
Janwillem Borleffs wrote:
Here's an improved implementation of this function:> Open the mysql_wrappers.lib.php file in the libraries/ directory and
> replace the PMA_mysql_tablename function with the following:
>
function PMA_mysql_tablename($result, $i) {
global $sorted_tables, $num_tables;
if (!is_array($sorted_tables)) {
$sorted_tables = array();
for ($x = 0; $x < $num_tables; $x++) {
$sorted_tables[] = PMA_convert_display_charset(
mysql_tablename($result, $x)
);
}
natcasesort($sorted_tables);
$sorted_tables = array_values($sorted_tables);
}
return $sorted_tables[$i];
}
JW
Janwillem Borleffs Guest
-
bradfordh@gmail.com #6
phpMyAdmin help
If I am using phpMyAdmin, how would I execute the command "mysql
--local-infile" ?
bradfordh@gmail.com Guest
-
Jerry Stuckle #7
Re: phpMyAdmin help
[email]bradfordh@gmail.com[/email] wrote:
Please see my update to your previous question on this topic.> If I am using phpMyAdmin, how would I execute the command "mysql
> --local-infile" ?
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email]jstucklex@attglobal.net[/email]
==================
Jerry Stuckle Guest



Reply With Quote

