Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by litebearer

  1. If you elect to use a table layout, check here ... http://forums.phpfreaks.com/topic/11572-multi-column-results/
  2. what differentiates the content of the display columns?
  3. Are you saving the image names anywhere (ie in a db)? if not, you can use GLOB to get the image names. then loop thru the names to display the images.
  4. Being that the OP is looking for the variable to be numeric. wouldn't it be prudent to incorporate a check to ascertain it is numeric?
  5. hint: explode typing too slow LOL
  6. Might consider using SWITCH ( <12, <18, Default would cover 6pm to midnight
  7. There is no REQUIREMENT that a form must have an email. It all depends upon your objectives. Try making a simple form that has 1 text field and a submit button.
  8. $my_desired_value = $str_arr[0]; echo $my_desired_value; or simply echo $str_arr[0];
  9. http://php.about.com/od/learnmysql/qt/change_column_name.htm
  10. not sure, but try... $query = 'SHOW COLUMNS pat_id AS "user_id", pat_fname AS "first name", pat_lname AS "last name" FROM ' . $table; $result = mysql_query($query);
  11. I, personally, would rename the columns - using pat_ in the patient table is 'rendundant' as we already know that is the patient table, so any data coming from there doesn't need pat_ in the name, that would allow you to use up to 64 characters for the column names. (use underscore rather than spaces in the names)
  12. this may help http://www.geeksengine.com/database/basic-select/column-alias.php
  13. I believe you need to wrap the alias' with BACK TICS
  14. Not too difficult; however the compexity would increase dependng upon how may different database tables you are accessing and their column names. ie have an array where the keys are the database field names and the values are the names you want to use. Also if it didn't require too many changes to existing scripts you have in place, simply renaming the database columns would be the easiest way to go.
  15. Perhaps if the names have a pattern ie "pat_ " you could use ... regex, or ... substr or explode using the underscore, remove the first element from that array, then implode using the underscore
  16. just a guess; but try using commas rather than semi-colons to separate your data
  17. You will to do some modications; however, this may give you a start... http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
  18. aside: ereg is deprecated see ...http://forums.phpfreaks.com/topic/268091-ereg-and-deprecated-error/
  19. this may help you get started http://www.nstoia.com/sat/resize/ also... http://www.nstoia.com/sat/crop/
  20. will the images ever be displayed without the text? will the text for a given image change?
  21. You need to decide what YOU want to allow as vaild username content. You could use regex to validate user names. Might look here as a starting point (esp answer 5) http://stackoverflow.com/questions/1330693/validate-username-as-alphanumeric-with-underscores
  22. This may help http://php.net/manual/en/function.getimagesize.php
  23. in image 2 are you trying to edit/delete more than 1 record at a time? If not, then my personal preference would be image 1.
  • 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.