kalabox
Reģistrētie lietotāji-
Posts
266 -
Joined
-
Last visited
About kalabox
- Birthday 05/09/1988
Profile Information
-
Location
Latvia
kalabox's Achievements
Newbie (1/14)
-
kā dabūt lai nolasa tikai pēdējos 5 ierakstus?? <?php $file = "viesi.txt"; if (fopen($file, "r")) { $fil = "viesi.txt"; $fo = fopen ($fil, "r"); $con = fread ($fo,filesize ($fil)); fclose ($fo); echo "$con"; } else { echo "<h3>Radās kļūda, sazinies ar mums<h3>"; } ?>
-
ar šo te cīnos.... http://cheaphostelin...ypography/rese… - tajā linkā zem 'book a resource' - vajag ieprogrammēt ārēju linku, uz īpašuma adresi ()nevis iekšējo booking linku) man jau liekas, varbūt var kaut kā ar foreach () vai vēl kaut kā.......un lai tas links no registracijas formas aiziet uz to formulu..... ar if , tad tur būtu jau iepriekš jāzina kas tiek registrēts un aiznemtu puslapu....
-
izveidot php linku lai ID1---> link1 ID2--->Link2 utt. (ID - registretais items(property) Link - registretais Links registrejot ipašumu); Lai lapā ar īpašumu 1 ieliktu Linku 1 , lapā ar īpašumu 2 ieliktu linku ar īpašumu 2 utt.
-
..Joprojām mokos ar Linka izveidi/ pārveidi......Esmu nupat drusku pamācījies php pamatlietas, bet joprojām nesaprotu, kā to uzkombinēt, bet tam taču jābūt kaut kam loti vienkāršam....Lūgums palīdzēt, ja kāds var.... 1.No registrācijas formas tiek iegūts links -->items (atbilstoši katram registrētam item) 2. ( ir arī MySQL izveidota attiecīga aile priekš linka --> no registracijas ) 3. Pie katra atbilstošā item jāpieliek klāt atbilstošais links no itema registracijas. (external link). - Kā to uzkonstruēt?! Pašlaik to vietu aizņem: $link = array(); $url="http://google.com"; $link['LINK']=$url; $link['TEXT']=jr_gettext(''); $bookinglink[] = $link; p.s. Vecais links kas jānomaina bija konstruēts: $url=SITEPAGE_URL."&task=dobooking&selectedProperty=$property_uid"; -bet tas man tagad neder......tas gāja uz booking form pēc $property_uid Jauta kāds paziņa! :)
-
Ok,paldies :)
-
Sveiki, ir tāda lieta ierakstos vārdu viņi visi izvadās viens zem otra, man vajadzētu dabūt lai tiklīdz ir 7 vārdi tā blakus parādās jauna tabula un turpinās vardi tajā.. Ar ko varto panākt?
-
Saskāros ar baigo štelli, bija dokuments ANSI kodējumā, , tiko saglabāju par jaunu utf-8 kodējumā tā parādījās ka headeri jau nosūtīti, kapēc tā? Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\skyboardadm.php:1) inC:\xampp\htdocs\skyboardadm.php on line 1 <? session_start(); include ('db.php');
-
Nesaprotu kur kļūda? Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\index.php on line 73 ( $user_id, $language_id, $_REQUEST['b'], $_REQUEST['page'] );
-
Sveiki, saskāros ar kaut kādu kļūdu.. Noņēmu lapu no maksas hosta uzliku uz PC.. Uzinstalēst xampp.. un tiklīdz pievienoju htaccess failu tā met ārā 500 erroru.. #AddDefaultCharset UTF-8 #php_value magic_quotes_gpc off # Iedarbina modrewrite RewriteEngine on Options +FollowSymLinks #RewriteBase / RewriteRule ^punkt([0-9]+)/?$ index.php?m=grup&k=$1 [QSA,L] RewriteRule ^page([0-9]+).html$ index.php?m=stat&k=$1 [QSA,L] #meklēšana pēc rakstiem RewriteRule ^stpoisk/?$ index.php?m=stpoisk [QSA,L] #Noteikumi apgabala meklējumiem RewriteRule ^metka/(.*)/$ index.php?m=setmetka&k=$1 [QSA,L] RewriteRule ^registr/?$ index.php?m=registr [QSA,L] RewriteRule ^registr/exitavt/?$ index.php?m=registr&exitavt=on [QSA,L] RewriteRule ^registr/inforeg/?$ index.php?m=registr&inforeg=on [QSA,L] RewriteRule ^registr/regrepair/?$ index.php?m=registr®repair=on [QSA,L] RewriteRule ^registr/user([0-9]+).html$ index.php?m=registr&showuser=$1 [QSA,L] RewriteRule ^registr/enter/?$ index.php?m=registr&enter=on [QSA,L] RewriteRule ^modcom/(.*)$ index.php?m=canmailcom&k=$1 [QSA,L] RewriteRule ^guest/?$ index.php?m=guest [QSA,L] RewriteRule ^guest/([0-9]+).html$ index.php?m=guest&guestpage=$1 [QSA,L] RewriteRule ^news/?$ index.php?m=news [QSA,L] RewriteRule ^news/([0-9]+).html$ index.php?m=news&newspage=$1 [QSA,L] RewriteRule ^news/arhiv/?$ index.php?m=news&newsarhiv=on [QSA,L] RewriteRule ^news/arhiv/([0-9]+).html$ index.php?m=news&newsarhiv=on&newspage=$1 [QSA,L] RewriteRule ^photo/?$ index.php?m=photogallery [QSA,L] RewriteRule ^photo/gallery([0-9]+)/?$ index.php?m=photogallery&catphoto=$1 [QSA,L] RewriteRule ^subscribe/?$ index.php?m=subscribe [QSA,L] RewriteRule ^subscribe/deletsub.html$ index.php?m=subscribe&deletsub=on [QSA,L] RewriteRule ^redbanner/bn([0-9]+).html$ moduls/banners/redirectbn.php?ban=$1 [QSA,L] RewriteRule ^redbanner/ / [R=301,L] RewriteRule ^qonline/?$ index.php?m=qonline [QSA,L] #RewriteRule ^doskaadv/?$ index.php?m=doska [QSA,L] RewriteRule ^newadv/?$ index.php?m=doska&k=addadvert [QSA,L] RewriteRule ^category([0-9]+)/?$ index.php?m=doska&k=podcategory&podcategory=$1 [QSA,L] RewriteRule ^category([0-9]+)/num([0-9]+)\.html index.php?m=doska&k=podcategory&podcategory=$1&page_podcat=$2 [QSA,L] RewriteRule ^advert([0-9]+)\.html index.php?m=doska&k=advert&advert=$1 [QSA,L] RewriteRule ^alladv/?$ index.php?m=doska&k=all_advert [QSA,L] RewriteRule ^alladv/page([0-9]+)\.html index.php?m=doska&k=all_advert&page_alladvert=$1 [QSA,L] RewriteRule ^myadverts/?$ index.php?m=doska&k=myadvert [QSA,L] RewriteRule ^myadverts/page([0-9]+)\.html$ index.php?m=doska&k=myadvert&page_myadvert=$1 [QSA,L] RewriteRule ^deladv([0-9]+)\.html$ index.php?m=doska&k=deladvert&del_num_advert=$1 [QSA,L] RewriteRule ^advmetka/(.*)/$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1 [QSA,L] RewriteRule ^advmetka/(.*)/advmpage(.*)\.html$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1&adv_page_metka=$2 [QSA,L] RewriteRule ^searchadv/?$ index.php?m=doska&k=searchadv [QSA,L] RewriteRule ^edit/?$ index.php?m=doska&k=editadvert [QSA,L] RewriteRule ^edit/numadv([0-9]+)\.html index.php?m=doska&k=editadvert&num_adv_edit=$1 [QSA,L] RewriteRule ^advuser(.*)/$ index.php?m=doska&k=adverts_user&adv_numuser=$1 [QSA,L] RewriteRule ^advuser(.*)/advuspage(.*)\.html$ index.php?m=doska&k=adverts_user&adv_numuser=$1&adv_page_user=$2 [QSA,L] Cik saprotu tad no RewriteEule metas tas errors, ko man nokonfigurēt paša xampp, lai tas neb;utu?
-
blin, nonēmu pēdinas tagat rāda par otro tabulu kluudu #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE profiles ( id smallint unsigned not null auto_increment, name VA' at line 15 luuk visa db CREATE TABLE users ( id smallint unsigned not null auto_increment, login varchar(50) NOT NULL, email VARCHAR(50) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', pass VARCHAR(20) NOT NULL, status VARCHAR(15) NOT NULL, ip VARCHAR(30) NOT NULL, pay INT(7) NOT NULL, datepay datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY(ID) ) CREATE TABLE profiles ( id smallint unsigned not null auto_increment, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, city INT(4) NOT NULL, country INT(4) NOT NULL, raion VARCHAR(50) NOT NULL, metro VARCHAR(30) NOT NULL, telephone TEXT NOT NULL, howdrive TEXT NOT NULL, type VARCHAR(50) NOT NULL, birth date NOT NULL, height VARCHAR(3) NOT NULL, weight VARCHAR(3) NOT NULL, bust VARCHAR(3) NOT NULL, eyes VARCHAR(10) NOT NULL, hair VARCHAR(10) NOT NULL, closes VARCHAR(10) NOT NULL, dopusl TEXT NOT NULL, penissize VARCHAR(3) NOT NULL, penisdim VARCHAR(3) NOT NULL, orient VARCHAR(10) NOT NULL, zodiac VARCHAR(15) NOT NULL, languages TEXT NOT NULL, agency VARCHAR(50) NOT NULL, category VARCHAR(30) NOT NULL, tr TEXT NOT NULL, appricehour INT(5) NOT NULL, apprice2hour INT(5) NOT NULL, appricenight INT(5) NOT NULL, homepricehour INT(5) NOT NULL, homeprice2hour INT(5) NOT NULL, homepricenight INT(5) NOT NULL, url VARCHAR(70) NOT NULL, comment TEXT NOT NULL, hairlength INT(2) NOT NULL, colorskin VARCHAR(70) NOT NULL, facetype VARCHAR(70) NOT NULL, grud INT(3) NOT NULL, talia INT(3) NOT NULL, bedra INT(3) NOT NULL, obuv VARCHAR(10) NOT NULL, body VARCHAR(20) NOT NULL, edu VARCHAR(20) NOT NULL, passport VARCHAR(10) NOT NULL, expir TEXT NOT NULL, soglasie TEXT NOT NULL, video VARCHAR(30) NOT NULL, audio VARCHAR(30) NOT NULL, aid INT(9) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', pay INT(9) NOT NULL, dateend datetime NOT NULL default '0000-00-00 00:00:00', expperiod VARCHAR(3) NOT NULL, reiting INT(9) NOT NULL, sum INT(9) NOT NULL, count INT(9) NOT NULL, today date NOT NULL, status VARCHAR(15) NOT NULL, daygirl VARCHAR(15) NOT NULL, alt1 VARCHAR(15) NOT NULL, alt2 TEXT NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE country ( ID SMALLINT UNSIGNED NOT NULL auto_increment, country VARCHAR(100) NOT NULL, city VARCHAR(100) NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE krim ( ID SMALLINT UNSIGNED NOT NULL auto_increment, telephone TEXT NOT NULL, adress TEXT NOT NULL, comment TEXT NOT NULL, aid INT(9) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', alt1 VARCHAR(15) NOT NULL, alt2 TEXT NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE photo ( ID SMALLINT UNSIGNED NOT NULL auto_increment, foto VARCHAR(30) NOT NULL, aid INT(9) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', status VARCHAR(15) NOT NULL, main INT(1) NULL default '0', PRIMARY KEY(ID) ) CREATE TABLE saluncomm ( ID SMALLINT UNSIGNED NOT NULL auto_increment, city INT(4) NOT NULL, country INT(4) NOT NULL, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, raion VARCHAR(50) NOT NULL, metro VARCHAR(30) NOT NULL, telephone TEXT NOT NULL, othercon TEXT NOT NULL, category VARCHAR(30) NOT NULL, tr TEXT NOT NULL, url VARCHAR(70) NOT NULL, comment TEXT NOT NULL, price TEXT NOT NULL, foto1 VARCHAR(30) NOT NULL, foto2 VARCHAR(30) NOT NULL, foto3 VARCHAR(30) NOT NULL, foto4 VARCHAR(30) NOT NULL, foto5 VARCHAR(30) NOT NULL, foto6 VARCHAR(30) NOT NULL, foto7 VARCHAR(30) NOT NULL, foto8 VARCHAR(30) NOT NULL, foto9 VARCHAR(30) NOT NULL, foto10 VARCHAR(30) NOT NULL, foto11 VARCHAR(30) NOT NULL, foto12 VARCHAR(30) NOT NULL, foto13 VARCHAR(30) NOT NULL, foto14 VARCHAR(30) NOT NULL, foto15 VARCHAR(30) NOT NULL, foto16 VARCHAR(30) NOT NULL, foto17 VARCHAR(30) NOT NULL, foto18 VARCHAR(30) NOT NULL, foto19 VARCHAR(30) NOT NULL, foto20 VARCHAR(30) NOT NULL, aid INT(9) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', status VARCHAR(15) NOT NULL, alt1 VARCHAR(15) NOT NULL, alt2 TEXT NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE obyavl ( ID SMALLINT UNSIGNED NOT NULL auto_increment, city INT(4) NOT NULL, country INT(4) NOT NULL, comment TEXT NOT NULL, name VARCHAR(100) NOT NULL, telephone VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, period VARCHAR(4) NOT NULL, aid INT(9) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', status VARCHAR(15) NOT NULL, ip VARCHAR(30) NOT NULL, PRIMARY KEY(id) ) CREATE TABLE bunsip ( ID SMALLINT UNSIGNED NOT NULL auto_increment, bunsip VARCHAR(30) NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE comments ( ID SMALLINT UNSIGNED NOT NULL auto_increment, tid SMALLINT NOT NULL, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, comment TEXT NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY(ID) ) CREATE TABLE saluncomm ( ID SMALLINT UNSIGNED NOT NULL auto_increment, tid SMALLINT NOT NULL, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, comment TEXT NOT NULL, date date NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE votetable ( aid INT(9) NOT NULL, ip VARCHAR(30) NOT NULL, date datetime NOT NULL, PRIMARY KEY(aid) )"); CREATE TABLE orderlist ( ID INT(10) UNSIGNED NOT NULL auto_increment, user VARCHAR(15) NOT NULL, unit INT(10) NOT NULL, number INT(4) NOT NULL, date datetime NOT NULL, status VARCHAR(15) NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE news ( idnum SMALLINT UNSIGNED NOT NULL auto_increment, time varchar(5) NOT NULL, datum date NOT NULL, title text NOT NULL, content text NOT NULL, visible varchar(3) default 'on' NOT NULL, ip text NOT NULL, brouser text NOT NULL, primary key(idnum) ) CREATE TABLE adminip ( ID SMALLINT UNSIGNED NOT NULL auto_increment, uslov TEXT NOT NULL, pass VARCHAR(30) NOT NULL, PRIMARY KEY(ID) )
-
Sveiki, kur kļūda?> Izveidoju baze.sql.. Pievienojot caur phpmyadmin uzrādās šāda kļūda #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''users' ( ID SMALLINT UNSIGNED NOT NULL auto_increment, login VARCHAR(50) NOT' at line 1 CREATE TABLE 'users' ( ID SMALLINT UNSIGNED NOT NULL auto_increment, login VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, date datetime NOT NULL default '0000-00-00 00:00:00', pass VARCHAR(20) NOT NULL, status VARCHAR(15) NOT NULL, ip VARCHAR(30) NOT NULL, pay INT(7) NOT NULL, datepay datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY(ID) )
-
var expDays = 1; // number of days the cookie should last var page = "only-popup-once.html"; var windowprops = "width=300,height=200,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes"; function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function DeleteCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); function amt(){ var count = GetCookie('count') if(count == null) { SetCookie('count','1') return 1 } else { var newcount = parseInt(count) + 1; DeleteCookie('count') SetCookie('count',newcount,exp) return count } } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function checkCount() { var count = GetCookie('count'); if (count == null) { count=1; SetCookie('count', count, exp); window.open(page, "", windowprops); } else { count++; SetCookie('count', count, exp); } } window.onload=checkCount;