Jump to content

phpMyAdmin help


Archadian

Recommended Posts

I was testing a few things out inserting info into the DB. Here is my code:

 

<?php

include('include/dbinfo.inc');
include('include/functions.php');

$name = "home";

mysql_query("SELECT name, dir FROM link", $db) or die(mysql_error());

mysql_query("INSERT INTO link(name, dir) VALUES('$name', '$dir')", $db) or die("Did not insert info.");

?>

 

The info isn't being inserted into the DB. I saw this at the bottom of the table page:

 

Error

The additional Features for working with linked Tables have been deactivated. To find out why click here

 

When i click "here"  it gives me this:

 

PMA Database ... not OK[ Documentation ]

General relation features Disabled

 

I don't know if it has anything to do with this. Could someone give me some info about this and tell me why the info isn't being inserted into the DB? Thanks.

Link to comment
https://forums.phpfreaks.com/topic/38926-phpmyadmin-help/
Share on other sites

Hmm... i know how it works...

 

try this insted...

 

<?php

include('include/dbinfo.inc');
include('include/functions.php');

$name = "home";
$dir = "hello_mate";

mysql_query("SELECT name, dir FROM link") or die(mysql_error());

mysql_query("INSERT INTO link SET name = '$name', dir = '$dir'") or die("Did not insert info.");

?>

Link to comment
https://forums.phpfreaks.com/topic/38926-phpmyadmin-help/#findComment-187224
Share on other sites

here is the table:

 

Table    Action    Records      Type          Size

nav                  unknown                      unknown 

1 table(s)                          Sum  0  --    0 Bytes

 

but there is info in the table. phpMyAdmin error?

Link to comment
https://forums.phpfreaks.com/topic/38926-phpmyadmin-help/#findComment-187277
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.