Hi I am having the same error, but in a different instance. The error is:
Parse error: syntax error, unexpected $end in /home/elkgrov/public_html/wp-content/plugins/BDLive/bdlive.php on line 91
I am not sure what this means as I am really new to php. I will submit the php cod I am working with, thanks in advance for any help you can provide. `<?php
/*
Plugin Name: Simple Business Directory
Plugin URI: https://www.CityChristians.com
Description: Plugin for displaying churches for users to browse.
Author: J.Wood
Version: 1.0
Author URI: https://www.CityChristians.com
*/
?>
<?php
/* DataBase Table Creation*/
function jal_install () {
global $wpdb;
$table_name = $wpdb->prefix . “sbd_BusinessName”;
$table_name = $wpdb->prefix . “sbd_Street”;
$table_name = $wpdb->prefix . “sbd_City”;
$table_name = $wpdb->prefix . “sbd_State”;
$table_name = $wpdb->prefix . “sbd_Zip”;
$table_name = $wpdb->prefix . “sbd_Phone”;
$table_name = $wpdb->prefix . “sbd_EMail”;
$table_name = $wpdb->prefix . “sbd_WebAddress”;
$sql = “CREATE TABLE ” . $table_name . ” (
id mediumint(9) NOT NULL AUTO_INCREMENT,
time bigint(11) DEFAULT ‘0’ NOT NULL,
name tinytext NOT NULL,
text text NOT NULL,
url VARCHAR(55) NOT NULL,
UNIQUE KEY id (id)
);”;
?>
<?php
require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
dbDelta($sql);
/* Runs when plugin is activated */
register_activation_hook(__FILE__,’hello_world_install’);
/* Runs on plugin deactivation*/
register_deactivation_hook( __FILE__, ‘hello_world_remove’ );
function hello_world_install() {
/* Creates new database field */
add_option(“hello_world_data”, ‘Default’, ”, ‘yes’);
}
function hello_world_remove() {
/* Deletes the database field */
delete_option(‘hello_world_data’);
}
add_shortcode(“bizdir_addform”,”bizdir_addform_shortcode”); //Add ShortCode for “Add Form”
add_shortcode(“bizdir_directory”,”bizdir_directory_shortcode”); //Add ShortCode for “Directory”
if ( is_admin() ){
/* Call the html code */
add_action(‘admin_menu’, ‘hello_world_admin_menu’);
function hello_world_admin_menu() {
add_options_page(‘Simple Business Directory’, ‘Simple Business Directory’, ‘administrator’,
‘hello-world’, ‘hello_world_html_page’);
}
}
?>
<?php
function hello_world_html_page() {
?>
<div>
<h2>Hello World Options</h2>
<form method=”post” action=”options.php”>
<?php wp_nonce_field(‘update-options’); ?>
<table width=”510″>
<tr valign=”top”>
<th width=”92″ scope=”row”>Enter Text</th>
<td width=”406″>
<input name=”hello_world_data” type=”text” id=”hello_world_data”
value=”<?php echo get_option(‘hello_world_data’); ?>” />
(ex. Hello World)</td>
</tr>
</table>
<input type=”hidden” name=”action” value=”update” />
<input type=”hidden” name=”page_options” value=”hello_world_data” />
<p>
<input type=”submit” value=”<?php _e(‘Save Changes’) ?>” />
</p>
</form>
</div>
<?php
}
?>`