Jump to content

mitzleah

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

About mitzleah

  • Birthday 07/16/1984

Contact Methods

  • Website URL
    http://ordinarywebguy.wordpress.com
  • Yahoo
    mitch_pascual@yahoo.com

Profile Information

  • Gender
    Male
  • Location
    Manila, Philippines

mitzleah's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Try PEAR DB: http://pear.php.net/package/DB or AdoDb: http://adodb.sourceforge.net/ or My Class: http://www.phpclasses.org/browse/package/3714.html
  2. the form used to remember cookies that were set... the problem now is even when the input text username and password were empty, I was able to login via submitting it... weird! As far as security issue is concern... putting a value to it is unsecured. eg. <input type="textfield" name="uname" value="<?= $_COOKIE['uname'] ?>"> as well as in password. My question is: HOW COULD I BE ABLE TO PUT SET COOKIES OR MAKE IT VISIBLE TO THE FORM (USERNAME AND PASSWORD INPUT TEXT)???
  3. how to put the cookie values to username and password textfield?
  4. I already seen some tutorials about it, downloaded the files and tried it. But it seems it's not working at all. :( Username and password were set to cookies. I wonder how could the usename and password textfield will remember set cookies??? Please help here! Thanks in advance!
  5. You then use javascript. Here's a good source: http://javascript.internet.com/forms/limit-textarea.html
  6. In your Insert Query, you must first Select if the email address is in the database: $query = "SELECT * FROM yourtable WHRE email_field = '{$_POST['EMail']}' "; $result = mysql_query($query) or die(mysql_error()); $num = mysql_num_rows($result); if ($num == 0) { //Your Insert Query Here } Hope this helps! :)
  7. use session variables instead of get variables
  8. PHP5: http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf Smarty: http://www.ebooksportal.org/2006/07/30/smarty-php-template-programming-and-applications/
  9. Hey, Try this link: http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm
  10. after storing all email addresses to a variable: $to = implode(",", $array); mail($to, $subject, $message, $headers);
  11. Hey Guys, I need to trim a sentence based on its word content. For example I only want to display 50 words. In a string this would be: substr($str, 0, 50); My question is how about in word? Thanks!
  12. You must first put the data into variables. For example: $query = "Your query here..."; $result = mysql_query($query); $count = mysql_num_rows($result); $x = 0; while ($row = mysql_fetch_array($result)) {         $data1[$x] = $row[0];         $data2[$x] = $row[1];         $x++; } Then format it any way you wanted: echo "<table>"; $temp = 1; $columns = 2; // number of columns for ($i = 0; $i < $count; $i++) {     if ($temp == 1) {           echo '<tr>';     }     if ($col != $columns) {           echo '<td>'.$data1[$i].'</td>';           $col++;     } else {           echo '<td>'.$data1[$i].'</td></tr>';           $col=1;     } } echo "</table>";
  13. Here's my table structure for blog. CREATE TABLE `blog` (   `id` int(11) NOT NULL auto_increment,   `display` tinyint(2) NOT NULL default '1',   `archive` tinyint(2) NOT NULL default '0',   `date` datetime NOT NULL default '0000-00-00 00:00:00',   `title` varchar(255) NOT NULL default '',   `entry` text NOT NULL,   PRIMARY KEY  (`id`),   KEY `date` (`date`),   KEY `archive` (`archive`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 PACK_KEYS=1 CHECKSUM=1 AUTO_INCREMENT=2 ; Hope this helps!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.