RaitisC Posted April 11, 2007 Report Share Posted April 11, 2007 ir izveidots recordset, pienjemsim no 3 laukiem 3 rindaas. Un vai eksistee kaada funkcija kas atgriestu, kaa masiivu vai vienalga kaa, vienas rindas katra lauka veertiibu + ljautu paarvietoties pa rindaam? Link to comment Share on other sites More sharing options...
v3rb0 Posted April 11, 2007 Report Share Posted April 11, 2007 http://lv2.php.net/mysql Link to comment Share on other sites More sharing options...
RaitisC Posted April 11, 2007 Author Report Share Posted April 11, 2007 http://lv2.php.net/mysql varbuut ir kas konkreetaaks un vienkaarshaaks es neesmu programmeetaajs :), un negribas visaa tajaa iedziljinaaties.. Link to comment Share on other sites More sharing options...
andrisp Posted April 11, 2007 Report Share Posted April 11, 2007 Ta ko vispār jautā ? :) $sql = " SELECT * FROM `table`; "; $result = mysql_query($sql); while($row = mysql_fetch_row($result)) { print_r($row); } Link to comment Share on other sites More sharing options...
RaitisC Posted April 12, 2007 Author Report Share Posted April 12, 2007 Ta ko vispār jautā ? :) $sql = " SELECT * FROM `table`; "; $result = mysql_query($sql); while($row = mysql_fetch_row($result)) { print_r($row); } jaa, shis ir labs, paldies! Varbuut ir arii kaada f(). kas paarbiidas pa ierakstiem no apakshas uz augshu. (move internal pointer back.. ) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 12, 2007 Report Share Posted April 12, 2007 hmm ... Nu sakaarto tos datus uzreiz kaa vajag..... Kur probleema? Ja vajag leekaat pa datiem uz augsu un leju var izmantot PHP masiivu funkcijas... ieprieks visu sadzenot masiivaa, bet tieshaam nesaprotu kam tas buutu vajadziigs P.S. Nesaprotu tavu domu gajienu vismaz man neiet kopaa ... shis /cit / (move internal pointer back.. ) /cit end/ /cit/ funkcija kas atgriestu, kaa masiivu vai vienalga /cit end/ ar sho ... /cit/es neesmu programmeetaajs :), un negribas visaa tajaa iedziljinaaties.. /cit end/ Esi baismais Teoretikjis? Vai arii saklausijies gudrus vardus? Link to comment Share on other sites More sharing options...
RaitisC Posted April 12, 2007 Author Report Share Posted April 12, 2007 hmm ... Nu sakaarto tos datus uzreiz kaa vajag.....Kur probleema? Ja vajag leekaat pa datiem uz augsu un leju var izmantot PHP masiivu funkcijas... ieprieks visu sadzenot masiivaa, bet tieshaam nesaprotu kam tas buutu vajadziigs P.S. Nesaprotu tavu domu gajienu vismaz man neiet kopaa ... shis /cit / (move internal pointer back.. ) /cit end/ /cit/ funkcija kas atgriestu, kaa masiivu vai vienalga /cit end/ ar sho ... /cit/es neesmu programmeetaajs :), un negribas visaa tajaa iedziljinaaties.. /cit end/ Esi baismais Teoretikjis? Vai arii saklausijies gudrus vardus? taisu ko liidziiu savai maajaslapai. Man mysql tabulaa glabaajas foto-failu nosaukumi un vajag uz lapas iistenot previous un next pogas. Bet nu. shkjiet, viss ok. Paldies! :) .. move internal pointer ahed ir no taa pasha php.net par mysql_fetch_row() Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 13, 2007 Report Share Posted April 13, 2007 RaitisC --> 1 kart. Domaa ka nespeeju izlasit ko esmu ieprieks uzrakstijis ? Jo kamdelj gan savaadaak taisiitu 'quoti' manam ieprieksejam postam ? 2 kart. Parvietojoties pa bildem/sludinajumiem pietiek saglabaat rindas unikaalo ID nevis VISUS datus... Nu varbuut tavaa gadijumaa ertaak butu pat pashu failu nosaukumus, protams ja bildeem nav parakstu @ komentaaru.... P.S. Sagalabaat datus taalakai izmantoshanai var SESSIJA .... Vai padodot ar GET SERIALIZETU masiivu.... Link to comment Share on other sites More sharing options...
Recommended Posts