This commit is contained in:
mstfyldz
2026-02-16 17:42:41 +03:00
commit d42f1405e1
2993 changed files with 1171175 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
The server says: your row order was<br/>
<?php
$result = json_decode(file_get_contents('php://input'), true);
show_results($result, "table-7");
function show_results($result, $id, $indent = null) {
foreach($result[$id] as $value) {
echo "$indent$value<br/>";
if (isset($result["$value"]))
show_results($result, $value, $indent.implode('&nbsp;', array_fill(0, 12, '')));
}
}
?>
See the <a href="server/ajaxJSONTest_php.html" target="_BLANK">PHP Source</a><br/>

View File

@@ -0,0 +1,3 @@
<code><span style="color: #000000">
The&nbsp;server&nbsp;says:&nbsp;your&nbsp;row&nbsp;order&nbsp;was&lt;br/&gt;<br /><span style="color: #0000BB">&lt;?php<br />$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'php://input'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">show_results</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"table-7"</span><span style="color: #007700">);<br />function&nbsp;</span><span style="color: #0000BB">show_results</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$indent&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;foreach(</span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #0000BB">$id</span><span style="color: #007700">]&nbsp;as&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$indent$value</span><span style="color: #DD0000">&lt;br/&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset(</span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$value</span><span style="color: #DD0000">"</span><span style="color: #007700">]))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">show_results</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$indent</span><span style="color: #007700">.</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">'&amp;nbsp;'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">array_fill</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">12</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)));<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /></span><span style="color: #0000BB">?&gt;<br /></span>See&nbsp;the&nbsp;&lt;a&nbsp;href="server/ajaxJSONTest_php.html"&nbsp;target="_BLANK"&gt;PHP&nbsp;Source&lt;/a&gt;&lt;br/&gt;<br /></span>
</code>

View File

@@ -0,0 +1,8 @@
The server says: your row order was<br/>
<?php
$result = $_REQUEST["table-3"];
foreach($result as $value) {
echo "$value<br/>";
}
?>
See the <a href="server/ajaxTest_php.html" target="_BLANK">PHP Source</a><br/>

View File

@@ -0,0 +1,4 @@
<script ></script>
<code><span style="color: #000000">
The&nbsp;server&nbsp;says:&nbsp;your&nbsp;row&nbsp;order&nbsp;was&lt;br/&gt;<br /><span style="color: #0000BB">&lt;?php<br />$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_REQUEST</span><span style="color: #007700">[</span><span style="color: #DD0000">"table-3"</span><span style="color: #007700">];<br />foreach(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$value</span><span style="color: #DD0000">&lt;br/&gt;"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;<br /></span>See&nbsp;the&nbsp;&lt;a&nbsp;href="server/ajaxTest_php.html"&nbsp;target="_BLANK"&gt;PHP&nbsp;Source&lt;/a&gt;&lt;br/&gt;</span>
</code>