wordtubepress
Account Closed
- Impact
- 1
ok so i made a pornstars add on for my adult site but when i fill all informations and click ''submit'' got a mesage saying Pornstar Successfuly added! Problem is there's nothing showing up
Here's the sql code
And here's the add.php file
Any idea what's wrong ? i don't mind spending on this if someone can fix it.
Here's the sql code
PHP:
CREATE TABLE IF NOT EXISTS `pornstar` (
`PSID` bigint(20) NOT NULL auto_increment,
`name` varchar(120) NOT NULL default '',
`website` text NOT NULL,
`views` int(11) NOT NULL,
`height` text NOT NULL,
`hair` text NOT NULL,
`born` text NOT NULL,
`measurements` text NOT NULL,
`performer` text NOT NULL,
`astrology` text NOT NULL,
`birthplace` text NOT NULL,
`years` text NOT NULL,
`weight` text NOT NULL,
`brazzers` text NOT NULL,
`ethnic` text NOT NULL,
`related` text NOT NULL,
`total_videos` bigint(20) NOT NULL default '0',
`about` text NOT NULL,
`images` text NOT NULL,
`rate` float NOT NULL default '0',
`ratedby` int(11) NOT NULL default '0',
PRIMARY KEY (`PSID`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;
ALTER TABLE `video` ADD `pornstar` INT( 11 ) NOT NULL AFTER `hd`
And here's the add.php file
PHP:
<div id="rightcontent">
{include file="errmsg.tpl"}
<div id="right">
<div align="center">
<div id="simpleForm">
<form name="add_pornstar" method="POST" enctype="multipart/form-data" action="pornstars.php?m=add">
<fieldset>
<legend>Add a New Pornstar</legend>
<label for="name">Pornstar Name: </label>
<input type="text" name="name" value="{$pornstar.name}" class="large"><br>
<label for="name">Performer AKA: </label>
<input type="text" name="performer" value="{$pornstar[0].performer}" class="large"><br>
<label for="name">Pornstar Born: </label>
<input type="text" name="born" value="{$pornstar[0].born}" class="large"><br>
<label for="name">Pornstar Astrology: </label>
<input type="text" name="astrology" value="{$pornstar[0].astrology}" class="large"><br>
<label for="name">Birthplace: </label>
<input type="text" name="birthplace" value="{$pornstar[0].birthplace}" class="large"><br>
<label for="name">Years Active: </label>
<input type="text" name="years" value="{$pornstar[0].years}" class="large"><br>
<label for="name">Pornstar Height: </label>
<input type="text" name="height" value="{$pornstar[0].height}" class="large"><br>
<label for="name">Pornstar Weight: </label>
<input type="text" name="weight" value="{$pornstar[0].weight}" class="large"><br>
<label for="name">Pornstar Hair: </label>
<input type="text" name="hair" value="{$pornstar[0].hair}" class="large"><br>
<label for="name">Pornstar Measurements: </label>
<input type="text" name="measurements" value="{$pornstar[0].measurements}" class="large"><br>
<label for="name">Pornstar Ethnicity: </label>
<input type="text" name="ethnic" value="{$pornstar[0].ethnic}" class="large"><br>
<label for="name">Pornstar Website: </label>
<input type="text" name="website" value="{$pornstar[0].website}" class="large"><br>
<label for="name">About: </label>
<textarea name="about" style="width:420px; height:260px;">{$pornstar[0].about}</textarea><br>
<input name="picture" type="file"><br>
</fieldset>
<div style="text-align: center;">
<input type="submit" name="add_pornstar" value="Add Category" class="button">
</div>
</form>
</div>
</div>
</div>
</div>
Any idea what's wrong ? i don't mind spending on this if someone can fix it.





