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