litebearer
Members-
Posts
2,356 -
Joined
-
Last visited
Everything posted by litebearer
-
If you elect to use a table layout, check here ... http://forums.phpfreaks.com/topic/11572-multi-column-results/
-
what differentiates the content of the display columns?
-
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.
-
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?
-
hint: explode typing too slow LOL
-
The easiest code in the world and yet it doesn't work - WTF!?
litebearer replied to SciFiSi's topic in PHP Coding Help
Might consider using SWITCH ( <12, <18, Default would cover 6pm to midnight- 7 replies
-
- good morning
- night
-
(and 1 more)
Tagged with:
-
Feedback form that doesn't require user to input email
litebearer replied to mordekaiser's topic in PHP Coding Help
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. -
$my_desired_value = $str_arr[0]; echo $my_desired_value; or simply echo $str_arr[0];
-
Its a new stealth feature
-
http://php.about.com/od/learnmysql/qt/change_column_name.htm
-
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
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); -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
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) -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
this may help http://www.geeksengine.com/database/basic-select/column-alias.php -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
I believe you need to wrap the alias' with BACK TICS -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
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. -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
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 -
PHP script not exporting as csv showing errors
litebearer replied to Russia's topic in PHP Coding Help
just a guess; but try using commas rather than semi-colons to separate your data -
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/
-
aside: ereg is deprecated see ...http://forums.phpfreaks.com/topic/268091-ereg-and-deprecated-error/
-
this may help you get started http://www.nstoia.com/sat/resize/ also... http://www.nstoia.com/sat/crop/
-
will the images ever be displayed without the text? will the text for a given image change?
-
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
-
This may help http://php.net/manual/en/function.getimagesize.php
-
need help file_get_contents("test.txt");....
litebearer replied to ShivaGupta's topic in PHP Coding Help
hint key word : explode -
how to edit,delete records from 1 common place ?
litebearer replied to RroniDT's topic in PHP Coding Help
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.