Sinisterly
Using AJAX? - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Web Design (https://sinister.ly/Forum-Web-Design)
+--- Thread: Using AJAX? (/Thread-Using-AJAX)

Pages: 1 2


RE: Using AJAX? - troy_odyssey34 - 04-20-2014

Here is the code:

Code:
<?php session_start(); mysql_connect('localhost','root','') or die(mysql_error()); mysql_select_db("quackbook") or die(mysql_error()); if(isset($_SESSION["user"]) === FALSE){ header("location: index.php"); } $find = "SELECT Firstname,Post FROM wall LEFT JOIN info ON info.Username=wall.Username"; $arrow = mysql_query($find); $array = array(); $i = 0; $j=0; while($fire = mysql_fetch_array($arrow)){ $array[$i] = $fire; $i+1; } echo json_encode($array[$i]); ?>



RE: Using AJAX? - Spirit - 04-20-2014

@troy_odyssey34, could you please use the BB code tags for your code?

Just type [Xcode] [/Xcode] around it without the X's.

Example:

Code:
Hello, world.



RE: Using AJAX? - Spirit - 04-20-2014

@troy_odyssey34, could you please use the BB code tags for your code?

Just type [Xcode] [/Xcode] around it without the X's.

Example:

Code:
Hello, world.