Re: [PHP] phpmyadmin & mysql extensions

2007-01-18 Thread T . Lensselink
Move your dll's to C:\PHP\ext and restart apache... 

On Thu, 18 Jan 2007 10:20:23 -, "Ross" <[EMAIL PROTECTED]> wrote:
>  did the following...
> 
> -installed apache
> -installed php (C:\PHP) with the windows installer
> -moved my websites to the htdocs folder..so far so good can access pages
> - downlaoded php my admin to htdocs
> -downloaded the FULL php version
> -copied the extensions folder (C:\PHP\ext)
> -changd the line in php.ini
> 
> extension_dir = "C:\PHP\ext"
> 
> 
> - the extensions in .ini look like this
> 
> 
> ;extension=php_mbstring.dll
> ;extension=php_bz2.dll
> ;extension=php_curl.dll
> ;extension=php_dba.dll
> ;extension=php_dbase.dll
> ;extension=php_exif.dll
> ;extension=php_fdf.dll
> ;extension=php_filepro.dll
> ;extension=php_gd2.dll
> ;extension=php_gettext.dll
> ;extension=php_ifx.dll
> ;extension=php_imap.dll
> ;extension=php_interbase.dll
> ;extension=php_ldap.dll
> ;extension=php_mcrypt.dll
> ;extension=php_mhash.dll
> ;extension=php_mime_magic.dll
> ;extension=php_ming.dll
> extension=php_mssql.dll
> extension=php_msql.dll
> extension=php_mysql.dll
> ;extension=php_oci8.dll
> ;extension=php_openssl.dll
> ;extension=php_oracle.dll
> ;extension=php_pgsql.dll
> ;extension=php_shmop.dll
> ;extension=php_snmp.dll
> ;extension=php_sockets.dll
> ;extension=php_sqlite.dll
> ;extension=php_sybase_ct.dll
> ;extension=php_tidy.dll
> ;extension=php_xmlrpc.dll
> ;extension=php_xsl.dll
> 
> The .dll file is  in C:\PHP\ext\mysql
> 
> 
> Phpmyadmin cannot load I get the error " Cannot load mysql extension. "
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] phpmyadmin-mysql

2002-02-17 Thread hugh danaher

Start with something like the following and add  mysql_list_dbs () to query
the system for the available databases.
Hugh





Input Data Page



DATABASE TABLES


";
print "Database name:
";
print "Password:";
print "";
print "";
print "";
if ($start=="1")
 {
 $link=mysql_connect("localhost","","$pass");
 if (! $link) die("couldn't connect mysql");
 mysql_select_db($db,$link) or die ("couldn't open $db ".mysql_error());
 $tables=mysql_list_tables($db,$link);
 $num=mysql_num_rows($tables)-1;
 mysql_close($link);
 ?>
 
 ";
 print "Table Name: ";

 for ($i=0;$i<=$num;$i++)
  {
  print "".mysql_tablename($tables,$i);
  }
 print "";

 print "";
 print "";

 print "";
 print "";
 print "";
 }

if ($start=="2")
 {
 $link=mysql_connect("localhost","","$pass");
 if (! $link) die("couldn't connect mysql");
 mysql_select_db($db,$link) or die ("couldn't open $db ".mysql_error());

 $results=mysql_query("select * from $table");
 $fields = mysql_list_fields("$db", "$table", $link);
 $columns = mysql_num_fields($fields);
 mysql_close($link);
 print "$table";
 print "";
 print "";
 for ($i = 0; $i < $columns; $i++)
  {
  print "".mysql_field_name($fields, $i)."";
  }
 print "";
 print "";
 for ($i = 0; $i < $columns; $i++)
  {
  print "".mysql_field_type($results,
$i)."";
  }
 print "";
 while ($a_row=mysql_fetch_row($results))
  {
  print "";
  foreach($a_row as $field)
   {
   if ($field=="")
{
$field=" ";
}
   print "".$field."";
   }
  print "";
  }
 print "";
 }
?>




- Original Message -
From: "jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 7:34 PM
Subject: [PHP] phpmyadmin-mysql


> Hello,
>
> I'm looking for code to display all my mysql databases in a .
> On change, I want to display all my tables in a .
> Finally, on change, it has to display all record of the table selected:
>
> Print Record
>
>
> id YR   AU   BT
>  1 1997 Fee, Margery Writing Orality: Interpreting Literature
>  Display in English by Aboriginal Writers in North
>  America, Australia and New Zealand
>
> Can someone give me a hand getting started?
> I would normally use phpmyadmin, but I want to customise something they
> don't offer.
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php