
chizijs
Reģistrētie lietotāji-
Content Count
171 -
Joined
-
Last visited
About chizijs
-
Rank
Daudzsološais profiņš
Profile Information
-
Gender
Male
-
Parasts insert kods $a1 = $_POST['textBox1']; $a2 = $_POST['textBox2']; $a3 = $_POST['textBox3']; $a4 = $_POST['textBox4']; $a5 = $_POST['textBox5']; mysql_query("INSERT INTO `tabula`(`a1`, `a2`, `a3`, `a4`, `a5`) VALUES('$a1', '$a2', '$a3', '$a4', '$a5')") or die(mysql_error()); p.s source code (CTRL+U) arī kad ir pievienoti laukumi rada tikai <div id="parah"></div>
-
Tātad ir lauks kur ir input'i, kad uzspiež uz Add input pievienojas input. Bet kad vajag to input vērtību ielikt DB, viņš nenolasa pievienotos laukums. Kā to var izlabot, lai mysql_query varētu izlasīt? kods function display() { document.getElementById('parah').innerHTML=""; for (intI=2;intI<arrInput.length;intI++) { document.getElementById('parah').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]); } } function createInput(id,value) { for (i=0;i<2;i++) { return "<p id='heh"+ id +"'>"+ id +". <input type='text' name='textBox"+ id +"' id='textBox"
-
Tātad no *.csv izvelk 10 000 ierakstus EVLA 56.520554 21.112389 EVRA 56.935066 23.973078 .. un man vajadzētu visus 10 000 ierakstus ielikt DB. Un lai šādi sarindojas ICAO | LAN | LOT EVLA | 56.520554 | 21.112389 EVRA | 56.935066 | 23.973078
-
Un ja man vairāki <option.. varianti?
-
Uz FireFox, Opera un IE viss onclick skripts iet, bet Chrome kad uzspiež, nekas nenotiek.. Skripts <select name="country" class="field" size="1"> <option value="Latvia" onclick="javascript:c_lv();">Latvia</option> </select>
-
izmklējos, atradu kaut kādus skriptus, nekā!
-
Tātad vajag dabūt subdomainu ar php vai .htaccess palīdzibu.. Ir mape ar nosaukumu blabla tad ar subdomainu palīdzību vajag attēlot mapi blabla , tas ir, kad adrese ir http://blabla.name.com/ - rada mapes failus. Subdomainu skaits ir bezgalīgs
-
Ir kaut kāda funkcija kas pārbaudā, lai postā būtu sakarīgi teikumu, nevis burtu krājums (dsadasdasdasadsads) ?
-
Error: $("#news_container").mask is not a function Source File: http://localhost/?p=news&id=1 Line: 23
-
Tātad gribu uztaisīt page pagination lai pārlādetu komentāru lapu bez refresh. php daļa if(!isset($_GET['page'])){ $lapa = 1; } else { $lapa = $_GET['page']; } $max_results = 3; $from = (($lapa * $max_results) - $max_results); $c_c = mysql_query("SELECT * FROM c_c WHERE n_id = '".stripslashes($_GET['id'])."' ORDER BY id ASC LIMIT $from, $max_results"); $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM c_c"),0); $total_pages = ceil($total_results / $max_results); if(mysql_num_rows($c_c) == 0){ echo '<div style="width: 460px; height: auto; background: none rep
-
function valid_email($email) { if( (preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/', $email)) || (preg_match('/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',$email)) ) { $host = explode('@', $email); if(checkdnsrr($host[1].'.', 'MX') ) return true; if(checkdnsrr($host[1].'.', 'A') ) return true; if(checkdnsrr($host[1].'.', 'CNAME') ) return true; } return false; } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type = '') { if(!empty($host)) { if($type == '') $type = "MX"; @exec("nslookup -t