topical media & game development
portal-cms-edit_article.php
<?php
if (isset(contentid = title = addslashes(contentdate = addslashes(binary = addslashes(sourcename = addslashes(sourceurl = addslashes(state = addslashes(articlelanguages = addslashes(description = addslashes(health = politics = wildlife = energy = business = climate = pollution = technology = lifestyle = environment = region = keywords = _POST['update']){
keywords);
/* De basis velden worden hier geupdate */
title',
content.content_date = 'binary',
content.content_source_name = 'sourceurl',
content.content_state = 'description',
content_type_article.article_languages = 'contentid'";
/* De categorieen worden geupdate door te kijken naar welke checkboxes er geset zijn en welke niet */
health',
content_matrix.politics = 'wildlife',
content_matrix.energy='business',
content_matrix.climate='pollution',
content_matrix.technology='lifestyle', content_matrix.environment='region'
WHERE content_matrix.content_id='keywords = split(' ', strtolower(query3 = "DELETE from `content_keywords` WHERE content_id = 'result = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
foreach (word) {
word);
word')";
query3);
if(!query3 = "SELECT * from keywords WHERE keyword_name = 'result3 = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
result3);
row['keyword_id'];
contentid','result = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
}
query);
query2);
if(!query = "SELECT * FROM `content` , `content_type_article` WHERE content.content_id = 'contentid'";
query);
if(!query2 = "SELECT * FROM `content_matrix` WHERE content_id='result2 = mysql_query(result2) {
die('Invalid query: ' . mysql_error());
}
contentid' AND content_keywords.keyword_id= keywords.keyword_id";
query3);
if(!row = mysql_fetch_array(row2 = mysql_fetch_array(row['content_title']; ?>" />
</td>
</tr>
<tr>
<td width="150">
Date:
</td>
<td>
<input type="text" name="date" size="30" value="<?php echo row['content_description']; ?>"/>
</td>
</tr>
<tr>
<td width="150">
Binary:
</td>
<td>
<textarea rows="30" cols="40" name="binary"><?php echo row['content_source_name']; ?>"/>
</td>
</tr>
<tr>
<td>
Source url:
</td>
<td>
<input type="text" name="sourceurl" size="30" value="<?php echo row['content_state']; ?>"/>
</td>
</tr>
<tr>
<td>
Categories:
</td>
<td>
Health:
<input type="checkbox" name="health" value="1" <?php row2['health']; if(politics=politics == "1"){echo " CHECKED";}?>>
<br />
Wildlife
<input type="checkbox" name="wildlife" value="1" <?php row2['wildlife']; if(energy=energy == "1"){echo " CHECKED";}?>>
<br />
Business
<input type="checkbox" name="business" value="1" <?php row2['business']; if(climate=climate == "1"){echo " CHECKED";}?>>
<br />
Pollution
<input type="checkbox" name="pollution" value="1" <?php row2['pollution']; if(technology=technology == "1"){echo " CHECKED";}?>>
<br />
Lifestyle
<input type="checkbox" name="lifestyle" value="1" <?php row2['lifestyle']; if(environment=environment == "1"){echo " CHECKED";}?>>
<br />
</td>
</tr>
<tr>
<td width="150">
Region:
</td>
<td>
<input type="text" name="region" size="30" value="<?php echo row['article_languages']; ?>"/>
</td>
</tr>
<tr>
<td width="150">
Keywords:
</td>
<td>
<input type="text" name="keywords" size="30" value="<?php while(result3)) { echo
contentid; ?>">
</form>
<p><br />
</p></td>
</tr>
</table> </td>
<td width="4"> </td>
<td width="574"> </td>
</tr>
<tr>
<td colspan="6">
<img src="file: D|/Program%20Files/%5Bwebdesign%5D/dreamweaver%208/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif"
alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td width="15"> </td>
<td width="4"> </td>
<td width="50"> </td>
<td width="536"> </td>
<td width="4"> </td>
<td width="574"> </td>
</tr>
</table>
</body>
</html>
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.