TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: JaimePinheiro
Forum: Advanced PHP Programming 08-24-2009, 06:57 PM
Replies: 3
Views: 593
Posted By JaimePinheiro
Oh, just one more thing, the $stringData must...

Oh, just one more thing, the $stringData must concatenate the strings, so inside the while loop you'll have:
$stringData .= "<gallery>\n\n<photos>\n";
...
Forum: Advanced PHP Programming 08-24-2009, 06:55 PM
Replies: 3
Views: 593
Posted By JaimePinheiro
Try to replace this before while loop: $myFile =...

Try to replace this before while loop:
$myFile = "data.xml";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<?xml version=\"1.0\" encoding=\"ISO-8859-7\" ?>\n\n";

And...
Forum: Advanced PHP Programming 08-03-2009, 01:41 PM
Replies: 5
Views: 765
Posted By JaimePinheiro
are you sure about splitting zero index of...

are you sure about splitting zero index of $params? $params is an array, isnīt it?
Forum: Advanced PHP Programming 07-30-2009, 03:05 PM
Replies: 9
Views: 872
Posted By JaimePinheiro
Russel, I don't know this class Mysqli. What...

Russel,

I don't know this class Mysqli. What does $mysqli->query return? A statement or a result?
If is a result, the code should work passing back $result into fetch.
Could you post Mysqli class...
Forum: Advanced PHP Programming 07-30-2009, 01:57 PM
Replies: 9
Views: 872
Posted By JaimePinheiro
//try this way $mysqli = new mysqli("localhost",...

//try this way
$mysqli = new mysqli("localhost", "$vconfig->user","$vconfig->dbpass","$vconfig->db" );
$result = $mysqli->query("SELECT * FROM push_content");
$titles = array();
...
Showing results 1 to 5 of 5

 

All times are GMT. The time now is 05:03 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design