adding mysql record inside post
-
I have installed a php plugin that allows me to execute php inside a plugin when I put php tags around it…
I am successfully able to add code, but when I try to do this:
[php] $link = mysql_connect('localhost', 'dt_wp791', 'MpX7b4zL81'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('dt_wp858'); mysql_query('INSERT INTO <code>dt_wp858</code>.<code>cbpr</code> (<code>cbprid</code>, <code>key</code>, <code>rcpt</code>, <code>time</code>, <code>item</code>, <code>cbpop</code>, <code>cemail</code>) VALUES (NULL, "'.$key.'", "'.$rcpt.'", "'.$_time.'", "'.$item.'", "'.$cbpop.'", "'.$cemail.'")'); [/php]
nothing happens, I don’t even see an error.
How do I make this work?
any ideas?
thank you,
Richard
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘adding mysql record inside post’ is closed to new replies.