<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create a Photo Admin Site Using PHP and jQuery</title>
	<atom:link href="http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/</link>
	<description>Web Development &#38; Design Tutorials</description>
	<lastBuildDate>Sat, 21 Nov 2009 18:53:09 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: willian</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-132986</link>
		<dc:creator>willian</dc:creator>
		<pubDate>Wed, 18 Nov 2009 00:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-132986</guid>
		<description>very good tutorial, congratulations for all videos published in the site....</description>
		<content:encoded><![CDATA[<p>very good tutorial, congratulations for all videos published in the site&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-130102</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-130102</guid>
		<description>John

This tutorial has helped me immensely

Thank you very much Jeffery.</description>
		<content:encoded><![CDATA[<p>John</p>
<p>This tutorial has helped me immensely</p>
<p>Thank you very much Jeffery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-130093</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 13 Nov 2009 15:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-130093</guid>
		<description>I&#039;m new to this too and likewise had trouble with the confirm_login_credentials.php file. After an interesting afternoon searching the web I finally figured things out and this seems to work - try replacing your confirm_login_credentials.php with this code ...

real_escape_string($_POST[&#039;username&#039;]);
	$password = $mysqli-&gt;real_escape_string($_POST[&#039;password&#039;]);
	
	echo $username.&#039;&#039;.$password;

	$q = &quot;SELECT id FROM users WHERE user_name = &#039;$username&#039; AND password = &#039;$password&#039;&quot;;
	
	$result = $mysqli-&gt;query($q) or die(mysqli_error());
	$num_rows = $result-&gt;num_rows;
	
	if ($num_rows == 1) {
		setcookie(&#039;authorized&#039;, 1, 0);
		header(&quot;Location: index.php&quot;);
	} else {
		header(&quot;Location: login.php&quot;);
	}
?&gt;

I think this works because database.php declares a mysqli object and the subsequent code in the confirm_login_credentials.php file now uses object notation instead of a procedural flavour of coding. Hope this works for your problem.</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to this too and likewise had trouble with the confirm_login_credentials.php file. After an interesting afternoon searching the web I finally figured things out and this seems to work &#8211; try replacing your confirm_login_credentials.php with this code &#8230;</p>
<p>real_escape_string($_POST['username']);<br />
	$password = $mysqli->real_escape_string($_POST['password']);</p>
<p>	echo $username.&#8221;.$password;</p>
<p>	$q = &#8220;SELECT id FROM users WHERE user_name = &#8216;$username&#8217; AND password = &#8216;$password&#8217;&#8221;;</p>
<p>	$result = $mysqli->query($q) or die(mysqli_error());<br />
	$num_rows = $result->num_rows;</p>
<p>	if ($num_rows == 1) {<br />
		setcookie(&#8217;authorized&#8217;, 1, 0);<br />
		header(&#8221;Location: index.php&#8221;);<br />
	} else {<br />
		header(&#8221;Location: login.php&#8221;);<br />
	}<br />
?></p>
<p>I think this works because database.php declares a mysqli object and the subsequent code in the confirm_login_credentials.php file now uses object notation instead of a procedural flavour of coding. Hope this works for your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Useful PHP &#38; jQuery Components &#171; Developer Suite</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-129988</link>
		<dc:creator>Useful PHP &#38; jQuery Components &#171; Developer Suite</dc:creator>
		<pubDate>Fri, 13 Nov 2009 09:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-129988</guid>
		<description>[...] 2 &#8211; Create a Photo Admin Site Using PHP and jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 2 &#8211; Create a Photo Admin Site Using PHP and jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-129747</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Thu, 12 Nov 2009 06:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-129747</guid>
		<description>LOL - I had this issue as well. Unfortunately this was the first pit of php/mysql I&#039;ve ever worked with and isolating this issue was a f-ing nightmare...</description>
		<content:encoded><![CDATA[<p>LOL &#8211; I had this issue as well. Unfortunately this was the first pit of php/mysql I&#8217;ve ever worked with and isolating this issue was a f-ing nightmare&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-129382</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 11 Nov 2009 04:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-129382</guid>
		<description>I have had some of the same problems with the mysqli that have been stated.

Changing it means you have to change well quite a few things.... I actually took out the cookie verification and bypassed the login completely as i don&#039;t need it I&#039;m testing this local and will implement something else when i go live.

database.php

$db_name = &quot;db&quot;;
$db_server = &quot;localhost&quot;;
$db_user = &quot;root&quot;;
$db_pass = &quot;***&quot;;

$mysqli = mysql_connect($db_server, $db_user, $db_pass);
if (!$mysqli)
  {
  die(&#039;Could not connect: &#039; . mysql_error());
  }
mysql_select_db($db_name, $mysqli);


and the getPhotos.php

require &#039;database.php&#039;;

$result = $result = mysql_query(&quot;SELECT * FROM photos&quot;);

if ($result) {
	
	echo &quot; \n&quot;;
	
	while ($row = mysql_fetch_array($result)) {
		$title = $row[&#039;title&#039;];
		$src = $row[&#039;src&#039;];
		$id = $row[&#039;id&#039;];
		
		echo &quot;&lt;a href=&#039;images/$src&#039; rel=&quot;nofollow&quot;&gt;&lt;/a&gt; \n&quot;;
		echo &quot;$title \n&quot;;
		echo &quot; \n \n&quot;;
		}	
		
		echo &quot;&quot;;
	
	
	
}</description>
		<content:encoded><![CDATA[<p>I have had some of the same problems with the mysqli that have been stated.</p>
<p>Changing it means you have to change well quite a few things&#8230;. I actually took out the cookie verification and bypassed the login completely as i don&#8217;t need it I&#8217;m testing this local and will implement something else when i go live.</p>
<p>database.php</p>
<p>$db_name = &#8220;db&#8221;;<br />
$db_server = &#8220;localhost&#8221;;<br />
$db_user = &#8220;root&#8221;;<br />
$db_pass = &#8220;***&#8221;;</p>
<p>$mysqli = mysql_connect($db_server, $db_user, $db_pass);<br />
if (!$mysqli)<br />
  {<br />
  die(&#8217;Could not connect: &#8216; . mysql_error());<br />
  }<br />
mysql_select_db($db_name, $mysqli);</p>
<p>and the getPhotos.php</p>
<p>require &#8216;database.php&#8217;;</p>
<p>$result = $result = mysql_query(&#8221;SELECT * FROM photos&#8221;);</p>
<p>if ($result) {</p>
<p>	echo &#8221; \n&#8221;;</p>
<p>	while ($row = mysql_fetch_array($result)) {<br />
		$title = $row['title'];<br />
		$src = $row['src'];<br />
		$id = $row['id'];</p>
<p>		echo &#8220;<a href='images/$src' rel="nofollow"></a> \n&#8221;;<br />
		echo &#8220;$title \n&#8221;;<br />
		echo &#8221; \n \n&#8221;;<br />
		}	</p>
<p>		echo &#8220;&#8221;;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Moreen</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-125972</link>
		<dc:creator>David Moreen</dc:creator>
		<pubDate>Sat, 31 Oct 2009 16:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-125972</guid>
		<description>Great tutorial Jeff I had fun doing it. I have a question, do you have a source that provides a good explanation of what &quot;mysqli&quot; is and how I would replace &quot;mysql_connect&quot; with it?</description>
		<content:encoded><![CDATA[<p>Great tutorial Jeff I had fun doing it. I have a question, do you have a source that provides a good explanation of what &#8220;mysqli&#8221; is and how I would replace &#8220;mysql_connect&#8221; with it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-111508</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Fri, 25 Sep 2009 09:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-111508</guid>
		<description>Hi,
This is a brilliant tutorial and I have got it all working for me except for when I click on an image it opens it in a new window rather than the lightbox.  Any ideas what is causing this error?

I will definately be a regular visitor to this website</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This is a brilliant tutorial and I have got it all working for me except for when I click on an image it opens it in a new window rather than the lightbox.  Any ideas what is causing this error?</p>
<p>I will definately be a regular visitor to this website</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arkad</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-108392</link>
		<dc:creator>Arkad</dc:creator>
		<pubDate>Fri, 18 Sep 2009 08:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-108392</guid>
		<description>just to reiterate on that last comment .. that fact that the page is set on a variable display that can go into a million pixals effects the scrolling control in the right side bar (which I prefer to use over the mouse) in terms of usability.

Maybe it&#039;s just me

Sick site though, by far the best content with a nice clean feel</description>
		<content:encoded><![CDATA[<p>just to reiterate on that last comment .. that fact that the page is set on a variable display that can go into a million pixals effects the scrolling control in the right side bar (which I prefer to use over the mouse) in terms of usability.</p>
<p>Maybe it&#8217;s just me</p>
<p>Sick site though, by far the best content with a nice clean feel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G-force</title>
		<link>http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/#comment-99753</link>
		<dc:creator>G-force</dc:creator>
		<pubDate>Sun, 30 Aug 2009 22:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://nettuts.com/?p=1530#comment-99753</guid>
		<description>This is highly useful - say if I wanted to create links from the images though having already made the lightbox activate on rollover - how could I avoid just going to the image page  due to the &lt;a href rel=&quot;nofollow&quot;&gt; which is needed to point to the image in order to generate the picture in the lightbox?</description>
		<content:encoded><![CDATA[<p>This is highly useful &#8211; say if I wanted to create links from the images though having already made the lightbox activate on rollover &#8211; how could I avoid just going to the image page  due to the <a href rel="nofollow"> which is needed to point to the image in order to generate the picture in the lightbox?</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/7 queries in 0.070 seconds using memcached
Content Delivery Network via 

Served from: psdtutsplus.com @ 2009-11-21 11:30:25 -->