Jump to content

jstern

Member
  • Posts

    93
  • Joined

  • Last visited

jstern's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. All script is code, but not all code is script
  2. jstern

    Irregular Shap CSS

    Eddie, The only image I have is the 'idea exchange' icon. You've made reference to my 'triangle image' that I don't have. Do i need to get my design team to supply me with one to use your recommendation, I was hoping to make the dotted borders using only css, if that was possible. I do have the design team making me transparent image of the popup and the rounded corner border as well in case i want / need to use it
  3. jstern

    Irregular Shap CSS

    I have create a hover popup on a new feature I'm implementing, and I'm not to sure if what i'm looking to do is possible or not. Ive seen some similar examples on Google, but all of them use large border widths to create triangles and polygon shapes using css.. i believe I this will not work with what i need to create since i want to fill and a dotted pink (#FEF1F2) border. I have attached an example of the spec I'll be creating, if anyone has an idea of how to make the oddly shaped popup bubble, could you please help me out. (I think I'm going to be asking the design team for an image, but I'd like to try it do it in just css if possible?). Im not very good with css, only the basics really so in any examples please explain as best you can so i can try to understand this. Thanks!
  4. I noticed a problem on your lines: $stefan = new person(); $jimmy = new person; should be: $jimmy = new person(); ...but I don't see why this would make it work on windows and not linux, the only differences / annoyances I come across between O/S coding is case capitalization's. Ubuntu server giving you any specific errors?
  5. try wrapping it in a span tag? html: <p>You can download a joining form <span class = "span_underline"><a class="here" href="../text/joining.doc">here</a></span>.</p> css: .span_underline { text-decoration: underline; } ---edit--- or a better solution, dont add span class at all and "text-decoration: underline;" to your .here class in the css file
  6. jstern

    This Forum

    I see the link at the bottom of the forum "Community Forum Software by IP.Board 3.1.1" and as far as I can tell, they charge a monthly fee to download / use this forum? I really like this board and was hoping to download a version of it to use on a personal site, but I'm not in the market to pay for a message board. Should i continue a search for freeware PHP forums, or did I misinterpret that website?
  7. One other thing i noticed that might be causing you a problem is your bind_param() might be throwing "ERROR: Could not prepare SQL statement."" try changing : $stmt->bind_param("ss", $clientname, $address, $city, $telephoneno, $mobileno, $email, $sno); to $stmt->bind_param("sssssss", $clientname, $address, $city, $telephoneno, $mobileno, $email, $sno); as I believe you have to specify the type of each value (though i might be wrong, I dont use bind_param() very often, i hope someone corrects me on this if i am incorrect See more info @ "http://php.net/manual/en/mysqli-stmt.bind-param.php" )
  8. if your seeing "'ERROR: Please fill in all required fields!'" error after trying to edit i think this is a problem: if ($clientname == '' || $address == '' || $city == '' || $telephoneno == '' || $mobileno == '' || $email == '' || $sno) { $error = 'ERROR: Please fill in all required fields!'; renderForm($clientname, $address, $city, $telephoneno, $mobileno, $email, $sno, $error, $userid ); } change the first line to read: if ($clientname == '' || $address == '' || $city == '' || $telephoneno == '' || $mobileno == '' || $email == '' || $sno =='') $sno was being treated as ' if true/set, then throw the error' im not sure if that is what you were expecting? (same thing when adding new record as well..)
  9. When do you receive an error, when adding or when editing?, and what is the error you get?
  10. Heya, PM me your MSN or FB info if you'd like to add me. You seem to be playing with Zend / PHP a lot and I wouldn't mind helping out when i can

  11. do you need to set this rowset to an array? I used to do this a lot when I was learning, just because i knew arrays better than objects, but if you dont need to, I would remove the ->toArray() when your returning. When you use fetchAll() your setting yourself up to retrieve more than 1 row if the condition are met. If more than one is returned this example could produce unexpected results; As an Array(): (not sure what you've assigned getUser() to, but lets say its $rows) $rows = $this>getUser($username, $password); $uname = $rows['username']; //replace 'username' with the name of your database column. $role = $rows['role']; //replace 'role' with whatever the column name is to get the value. //your array contains the databse column names as the array keys and the values as your array values. Play with var_dump($rows); and refresh to see everything contained. As an object / rowset (omitting the toArray() $rows = $this>getUser($username, $password); $uname = $rows->username;//replace 'username' with the name of your database column. $role = $rows->role; //replace 'role' with whatever the column name is to get the value. //leaving as a rowset you keep yourself open to doing other functions to your results, whereas as an array, you are more limited. Like I said, if your $rows has more than one result brought from the SQL query this wont work, since each result will be in its own array (multi-dimensional array). use fetchRow() instead of fetchAll() when selecting if you only want / expect one result.
  12. I might be confused with what your looking for, but you'll want to extend "Zend_Db_Table_Abstract" in your Models if your using Zend <?php class Jobseeker extends Zend_Db_Table_Abstract { //i create constants for my column names so if one is ever renamed, i can quickly rename every query with one change const COL_ID = 'id'; const COL_JOBSEEKERNAME = jobseekername; protected $_name = 'jobseeker'; // declare your table as is in your database protected $_dependentTables = array(); //add your dependent tables to access to to them through this object / rowset protected $_referenceMap = array(); //add your refernce map Best to checkout Zend's documentation for what this and dependent Tables can do for you. public function retrieveAll() { [indent]return $this->fetchAll($this->select());[/indent] } public function retrieveOne($condition) { //in my example condition must be a int / product id to return anything [indent]return $this->fetchRow($this->select() ->where(self::COL_ID = ?, $condition));[/indent] } } ?> Hope this helps?
×
×
  • Create New...