Jump to content
php.lv forumi

Palaist php no mysql'a


cucumber

Recommended Posts

Ir parasta izvade no mysql, lauka tips ir BLOB binary, vai ir iespeja uztaisit ta, lai php kods stradatu, tas ir ierakstit ieksh mysql failu un pie shadas izvades to palaist?

 

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr>\n";
foreach ($line as $col_value) {
	echo "\t\t<td>$col_value</td>\n";

Edited by cucumber
Link to comment
Share on other sites

Ja, palaist php scriptu, tikai man nav iespejas neko mainit.

Link to comment
Share on other sites

Kaut kada veida ir jasaglaba php scripts, lai pie shi scripta (pirmais posts), varetu to palaist.

Link to comment
Share on other sites

Ne iebraucu ko tu gribi man pateikt ar to linku?

Ne es saprotu, ka ir javeics insert, tani lauka. Bet kadam scriptam jaiskatas, ja uzraksta <?php echo "aa"?>, tad php neizpildisies.

Link to comment
Share on other sites

Ja. Ir kaut kads variants, lai spidetu? Tabluas strukturu ir iespejams mainit.

Link to comment
Share on other sites

Visnotaļ naivi. :)

 

Bet XXS gan tu vari uztaisīt.

Par pamatpiemēru -- ievieto tabulā

<script>location.href="http://www.sex.com";</script>

 

Atkarībā no sistēmas, var saņemt sesijas ID, izdzēst profilu... Have fun! :D

Link to comment
Share on other sites

Nezinu labi javascript, bet ka var dabut sessijas ID un ko tas dos?

Link to comment
Share on other sites

Doma bija tada, ir uzlazts saits un ieguta mysql administreshana (phpmyadmin). Ta ka var redzet ka saitu update labi ja vienreizs gada, tad uzmest shellu un vienkarshi likt uz ta savus scriptus talakam sliktam lietam ?). Taka tads halavnijs hostings.

Edited by cucumber
Link to comment
Share on other sites

×
×
  • Create New...