Title: plugin href var question
Last modified: August 19, 2016

---

# plugin href var question

 *  [kathymac](https://wordpress.org/support/users/kathymac/)
 * (@kathymac)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-href-var-question/)
 * Hello,
 * I have created a wp plugin that adds a record to a custom table.
    When this task
   is completed, I wanted to display a message depending on what happened
 * In my add.php code I have the following….
 * ….
    $iResult = mysql_query($sSQL) or die (‘Invalid query: ‘ . mysql_error());
 * if ($iResult)
    { $sMsg = “Product successfully added.”; header(“Location: [http://eastcoasttechwriter.ca/?page_id=1758&Msg=’$sMsg'&#8221](http://eastcoasttechwriter.ca/?page_id=1758&Msg=’$sMsg&apos;&#8221););}…
 * in the code for the wp page 1758, I have….
 * <?php
    print (“Message: $Msg”); ?>
 * The variable $Msg is not displaying anything.

The topic ‘plugin href var question’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [kathymac](https://wordpress.org/support/users/kathymac/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-href-var-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
