Jump to content

POG1

Members
  • Posts

    71
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Oxford

POG1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. POG1

    Text Limit

    What you could to stop spam and poo stories is have them be accepted or rejected before they are allowed. 65,000 is good enough for a decent short story (not a novel).
  2. POG1

    ezSQL

    Im stuck with ezSQL. I have decided to upgrade my old version of ezSQL and i'm having some problems with connecting to the database. It needs 2 classes included which I have done. Then when i try to connect it shows about 10 error messages. Here is the code i used; require('lib/connection.php'); // classes are in here $db = new ezSQL_mysql; $db->connect('root', '', 'localhost'); // default login settings for LAMP Any suggestions as to what I can do? Or any suggestions to a better class to use?..
  3. 4 things.. 1. Make them enter their email twice. 2. Show on the page if the email is valid. 3. Do a server side check to see if the email is valid. 4. You could use ajax to show if the email is taken or dHTML to check if the emails match.
  4. $finish = 94438384; // timestamp of when it finishes $width = time() / $finish; if($width > 1) { $width = 1; } echo '<div id="outer">'. '<div id="inner" style="width:'.$width.'%;">'. '</div>'. '</div>'; CSS div#outer { height:10px;width:200px;background:#900;padding:0; } div#inner { height:10px;background:#090;margin:0;padding:0; }
  5. If its in a frame why not just use GET?
  6. Ok it didn't work would there be a better way of getting the class working with just 1 function in it?
  7. Thanks for the help but i have another problem now. how can i use the functions for the db? I tried this... $this->db->qstr($id)
  8. db is defined sorry, i just copy and pasted the class that isn't working. How can I get db to work inside of this class?
  9. I have 2 separate classes, database and user class. Inside the user class I have to do a query and if i try to use the db class it produces an error, is there any way i can make this work? I have tried things but with no success. class User { protected $id; public function getDetails() { $this->id = (int) $_SESSION['user_id']; $query = 'SELECT `Username` FROM `' . DBPREFIX . 'users` WHERE `ID` = ' . $db->qstr ( $id ) ; // do stuff? return true; } } The error it says is "Fatal error: Call to a member function qstr()"
  10. it would be a better idea to do it in JS. The page will not validate correctly with the marquee because it is now depreciated.
  11. echo '<input value="'.$_REQUEST['username'].'" name="username" />'. '<select name="dropdown">'. '<option value="1" '.(($_REQUEST['dropdown'] == '1')?'selected="selected"':FALSE).'>1</option>'. '<option value="2" '.(($_REQUEST['dropdown'] == '1')?'selected="selected"':FALSE).'>2</option>'. '</select>'. '<input type="radio" name="rdo" '.(($_REQUEST['rdo'] == TRUE)?'checked="checked"':FALSE).'/>';
  12. you could wrap each of those underlying rows in a div or you could just put the additional rows in an extra table. Either way you will probably have it working pretty easy.
  13. You will need a JavaScript function. You could probably add it to the on click event for the image and show hide the additional data Here is a function you could use function toggle(obj) { document.getElementById(obj).style.display = (el.style.display != 'none' ? 'none' : '' ); }
  14. <img src="<?php echo $nation['nation_flag']; ?>" style="float:left;" /> <img src="<?php echo $nation['nation_symbol']; ?>" style="float:right;" /> <b><u><center>Government of <?php echo $nation['nation_name']; ?></center></u></b> <br style="clear:both" />
×
×
  • 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.