Search found 1391 matches

by hellfire
Sun Oct 28, 2007 6:35 am
Forum: PHP MySQL ASP.NET
Topic: eregi..обяснение
Replies: 10
Views: 2277

мда ей са ще ти напиша нещо <form action="" method="POST"> <input type="text" name="url"> <input type="submit" name="submit" value="Газ"> </form> <?php if($_POST['submit']) { $url = preg_replace("#(\?sid=|\#vid)([a-z0-9\#\%\^&*!@]+)#i", "", $_POST['url']); $url =...
by hellfire
Sun Oct 28, 2007 4:03 am
Forum: PHP MySQL ASP.NET
Topic: eregi..обяснение
Replies: 10
Views: 2277

mne preg е по добре ! тукмо пишех една система такава за добавяне на клипове ето ти add.php <?php include ( "config.php"); if(isset($_POST['submit'])) { $url = $_POST['URL']; $title = html_specialchars(trim(stripslashes($_POST['title']))); $opisan...
by hellfire
Fri Oct 26, 2007 7:26 pm
Forum: PHP MySQL ASP.NET
Topic: Странициране особено
Replies: 14
Views: 1947

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#ffffff"> <tr> <form action="upload_ac.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <t...
by hellfire
Fri Oct 26, 2007 6:59 pm
Forum: PHP MySQL ASP.NET
Topic: Странициране особено
Replies: 14
Views: 1947

как да не работи О_o
виж коя папка съм задал...
by hellfire
Fri Oct 26, 2007 6:51 pm
Forum: PHP MySQL ASP.NET
Topic: Странициране особено
Replies: 14
Views: 1947

10 min раота търсачка <form action="" method="GET"> <input type="text" name="search" value="<?php echo htmlspecialchars(stripslashes($_GET['search']));?>"> <input type="submit" value="Търси"> </form> <?php $flag=0; $dir="images/"; $search = $_GET['search']; $broinastranica = 2; funct...
by hellfire
Fri Oct 26, 2007 6:14 pm
Forum: PHP MySQL ASP.NET
Topic: str_replace как да го вкарам
Replies: 21
Views: 2334

никога не прави това str_replace ето ти един bbcode function bbcode($text,$active_clip = false) { $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#'); $code_entities_replace = array('<', '>', '"', ':...
by hellfire
Fri Oct 26, 2007 6:09 pm
Forum: PHP MySQL ASP.NET
Topic: +1 отдолу
Replies: 7
Views: 1080

echo "<table width=\"30%\" align=\"center\" border=\"1\"><tr><td style=\"text-align:center\">$files[$i]</td></tr>";
каде е краиния таг на table ?
виж си таблиците ...
by hellfire
Fri Oct 26, 2007 3:13 pm
Forum: PHP MySQL ASP.NET
Topic: Search как ?
Replies: 1
Views: 429

ами научи малко за Мysql как се записва и селектира http://bg2.php.net/manual/en/function.explode.php http://bg2.php.net/manual/en/function.urldecode.php http://bg2.php.net/manual/en/control-structures.foreach.php http://bg2.php.net/manual/en/function.fopen.php http://bg2.php.net/manual/en/function....
by hellfire
Fri Oct 26, 2007 2:20 pm
Forum: PHP MySQL ASP.NET
Topic: preg_replace
Replies: 1
Views: 533

оправих се :]
$code = preg_replace('/\{lang:(.*?)\}/e', '$user->lang[\'$1\']',$code);
by hellfire
Fri Oct 26, 2007 2:04 pm
Forum: PHP MySQL ASP.NET
Topic: preg_replace
Replies: 1
Views: 533

preg_replace

защо не става

function lqlq($promenlivite..)
{
global $user;
$code = preg_replace('#{lang:(.*?)\}#i', $user->lang['$1'],$code);
..
..
}