litt Posted January 2, 2006 Report Share Posted January 2, 2006 Es komenta inserta kveriju rakstītu tā (par sintaksi u.c security tā uz sitienu neatbildu): $q = 'INSERT INTO blog (komentars , komentars_autors , komentars_laiks) VALUES ("' . $komentars ' . " , "' . $komentars_autors ' . " , "' . $komentars_laiks ' . " )'; mysql_query($q); P.S WHERE id='$raksta_id' kas tas par absolūti neloģisku risinājumu? Padomā ko dara INSERT, ko dara WHERE, kāda tev tabulu strukūta un tad ķeries pie ieraksta veidošanas skripta Link to comment Share on other sites More sharing options...
SkyD Posted January 2, 2006 Author Report Share Posted January 2, 2006 Nu un kāda lielā atšķirība ir no tava query un no mana?! Link to comment Share on other sites More sharing options...
SkyD Posted January 2, 2006 Author Report Share Posted January 2, 2006 Tiku galaa.. ;D~ Link to comment Share on other sites More sharing options...
SkyD Posted January 2, 2006 Author Report Share Posted January 2, 2006 Hmm.. Gribu uzlikt katrai adresei savu direktoriju.. ir man vards1.be un vards2.be domēni. Vārdam2.be uzlieku: <VirtualHost vards2.be:80> ServerAdmin mansmails@inbox.lv DocumentRoot C:/vards2/ ServerName vards2.be ErrorLog logs/vards2.be-error_log CustomLog logs/vards2.be-access_log common </VirtualHost> Uzliekaas taa direktorija gan vards2.be, gan vards1.be domēniem.. Link to comment Share on other sites More sharing options...
php_Stopp Posted January 2, 2006 Report Share Posted January 2, 2006 (edited) neesmu eksperts, bet man liekas, ka <VirtualHost vards2.be:80> vietā jāliek <VirtualHost *:80> un tad pārējo to pašu (t.i. ar visiem vards2) Edited January 2, 2006 by php_Stopp Link to comment Share on other sites More sharing options...
SkyD Posted January 3, 2006 Author Report Share Posted January 3, 2006 hmm.. Neiet! Link to comment Share on other sites More sharing options...
SkyD Posted January 3, 2006 Author Report Share Posted January 3, 2006 Mekleeju googlee, bet iisti nevaru atrast kodu, lai noklikojot uz bildes, taa ievietotos INPUT laukaa, kaa, piem. ":bilde:" .. Skjiet, ka tur buus javascript's vajadziigs, un to es iisti nemaaku..!?!?/ Kaa/?? Link to comment Share on other sites More sharing options...
rpr Posted January 3, 2006 Report Share Posted January 3, 2006 katram domēna vārdam savu virtuālo hostu. Link to comment Share on other sites More sharing options...
php_Stopp Posted January 3, 2006 Report Share Posted January 3, 2006 <img onClick="input-lauka-name.value='es šeit ierakstījos pēc bildes nospiešanas';"/> kauko tādu domā ? Link to comment Share on other sites More sharing options...
SkyD Posted January 3, 2006 Author Report Share Posted January 3, 2006 (edited) <img src="bilde.gif" onClick="onclick.value='bilde ievietota';"/> <input name="onclick" type="text" value=""> Bet nestraadaa....!! ? bet OnMouseOver iet... *** Atradu! OnMouseDown .. ---- Bet tomēr neder, jo, kad grib turpināt tekstu, turpinu, uzrakstu, kad atkal gribu nospiest, pazuud rakstiitais teksts.. hmm! Edited January 3, 2006 by SkyD Link to comment Share on other sites More sharing options...
php_Stopp Posted January 3, 2006 Report Share Posted January 3, 2006 <img src="bilde.gif" onClick="onclick.value='bilde ievietota';"/><input name="onclick" type="text" value=""> Bet nestraadaa....!! ? <form name="forma"> <input name="lauks" type="text"/></form> <img src="b.jpg" onClick="document.forma.lauks.value='trallā';"/> Link to comment Share on other sites More sharing options...
SkyD Posted January 4, 2006 Author Report Share Posted January 4, 2006 a kapeec var vienreiz tikai ielikt vinju?!! Ieliekaas, uzrakstu klat vel tekstu, tad atkal spiezhu uz bildes, un teksts pazuud.. Cik es esmu kadreiz redzeejis, tad shito gestbuukos lika ar javaskriptiem.. Nezin kaads kaadu?!! Link to comment Share on other sites More sharing options...
KAC Posted January 4, 2006 Report Share Posted January 4, 2006 tev drausi sarezgjiiti uztaisiit vienu JS funkciju ar vienu IF .. ELSE ? Link to comment Share on other sites More sharing options...
SkyD Posted January 4, 2006 Author Report Share Posted January 4, 2006 Nu bet es nezinu un googlee arii nevaru atrast to Javascript funkciju!! JS nepaarzinu ;P~ Link to comment Share on other sites More sharing options...
php_Stopp Posted January 4, 2006 Report Share Posted January 4, 2006 <form name="forma"> <input name="lauks" type="text"/></form> <img src="b.jpg" onClick="document.forma.lauks.value=document.forma.lauks.value+'trallā';"/> Link to comment Share on other sites More sharing options...
Recommended Posts