Jump to content

Recommended Posts

<?php
$mysql_access = mysql_connect("localhost", $user, $pw);
mysql_select_db($db, $mysql_access);

$result = mysql_query("SHOW tables", $mysql_access);
  while($row = mysql_fetch_row($result))
  {
      print("$row[0]<br>");
  }
?>

 

Never used this before but looks like what you need

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703109
Share on other sites

<?
$showtablequery = "SHOW TABLES FROM [your database name here]";

$showtablequery_result  = mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($showtablequery_result))
{
        echo $showtablerow[0]."<br />";
}

?>

 

try it like that if you like, that may you dont have to worry about assigning your connection, just put your database name in the right place

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703152
Share on other sites

<?
$showtablequery = "SHOW TABLES FROM [your database name here]";

$showtablequery_result  = mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($showtablequery_result))
{
        echo $showtablerow[0]."<br />";
}

?>

 

try it like that if you like, that may you dont have to worry about assigning your connection, just put your database name in the right place

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'soul3438'@'localhost' (using password: NO) in /home/soul3438/public_html/Gymgraph/show.php on line 4

 

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/soul3438/public_html/Gymgraph/show.php on line 4

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/soul3438/public_html/Gymgraph/show.php on line 5

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703155
Share on other sites

 

 

<? mysql_connect("localhost", "user_techker", "pass");
mysql_select_db("soul3438_gymgraphtrainers");
$showtablequery = "SHOW TABLES FROM [soul3438_gymgraphtrainers]";

$showtablequery_result  = mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($showtablequery_result))
{
        echo $showtablerow[0]."<br />";
}

?>

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703167
Share on other sites

<?php
mysql_connect("localhost", "user_techker", "pass");
mysql_select_db("soul3438_gymgraphtrainers");
$showtablequery = "SHOW TABLES FROM soul3438_gymgraphtrainers";

$showtablequery_result  = mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($showtablequery_result))
{
        echo $showtablerow[0]."<br />";
}

?>

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703171
Share on other sites

<?php
mysql_connect("localhost", "user_techker", "pass");
mysql_select_db("soul3438_gymgraphtrainers");
$showtablequery = "SHOW TABLES FROM soul3438_gymgraphtrainers";

$showtablequery_result  = mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($showtablequery_result))
{
        echo $showtablerow[0]."<br />";
}

?>

 

All good thx!!

Link to comment
https://forums.phpfreaks.com/topic/135004-select-question/#findComment-703179
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.