ToonMariner
Members-
Posts
3,342 -
Joined
-
Last visited
Everything posted by ToonMariner
-
display_errors is off on host, but I want to see my errors
ToonMariner replied to jonshutt's topic in PHP Coding Help
ini_set('error_reporting', E_ALL); -
You should not perform multiple inserts inside a for loop - use the loop to construct a single query string that will add all the records you need.... this has already been addressed in one of your other threads.
-
Logan... Just get your host to mke php5 available - many hosts have 4 and 5 engines installed and allow you to select which one in your control panel - if your hosts don't then ask them what you are paying for!!!!!!
-
I love autoload so much I am gutted you can only use it once
-
allthose images wold be on one line - the advantage of floating lists is that they will fill the space available and then start a new line - so fluid widths can be achieved easily.
-
from plasticine or lego???
-
I name my classes xxx.cls.php and if yyy extends or xxx, xxx_yyy.cls.php just the naming convention I use (helps with the __autoload I use). Hope we are all on php 5 and using the __autoload function (which I think is the best function ever added to php!) save syou so much time and ensures you don't go including all kind of rubbish you don't need.
-
don't size the images... this is a job for an unordered list... <ul id="imglist"> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> <li><img></li> </ul> Now you need to know what the max size of your images will be AND include the height and witdh values... THEN some css.. ul#imglist li { list-style-type: none; float: left; margin: 0 0.2em 0.2em 0; width: 100px; height: #maxheight of images#; } ul#imglist li img { margin: auto; }
-
I don't understand why - I had to0 teach html and (it may just be my technique) those who listened said they found divs and css much easier to handle!!!1
-
as always I CAN'T wait for ie 6 to disappear for ever. In fact I think I'll ask evolt to remove it from there offerings when it does. Come on people get ie6 users to switch ot ie7 or better still ff.
-
not sure what you are trying to achieve... maybe a background image? give us a carrot and we may chase it.
-
nope its correct - you could just use this for the span style (would allow you to use for any size image - if you needed it that is and the 450x300 was not there!) .image_450x300 span {position:absolute; top:37px; left:37px; right: 37px; bottom: 37px; border: 1px dashed #fff;} u'll hvae to check it in a few browsers but that should do teh trick quite nicely (nice soln monkey)
-
OOPS sorry - Jessie not properly!!!! jitesh has saved the day...
-
I KNOW the Resource #xxxx menas you are doing $res = mysql_query($qry); $input = mysql_query('INSERT INTO `table` (field) values ($res)');!!!! LIKE I KEEP SAYING!!!!!!!!!! $res = mysql_query($qry); $DATEDIFF = mysql_fetch_assoc($res) $input = mysql_query('INSERT INTO `table` (field) values ($DATEDIFF['somenamethat picks datadiff'])');!!!!
-
images are images... if you want a larger image create one - using the width/height attributes to resize an image is not the way to go - you either use excessive bandwidth or distort the image. there are a few ways I can think of altering images depending on text size BUT they depend on how you are altiering text size.
-
teh best suggestion I had was to drop the tables all together
-
you could absolutley position a gif over the image or you will have to generate a new image and place the border in using the gd library. your options for the latter are to superimpose a gif on the image or to draw lines at the specified coordinates...
-
hmmm.... well the only tool you really have is the list-style-type in css... play with that and see what it does...
-
$remove = array("And", "Or", "If", "We", "An", "A", "I"); $str = str_replace($remove,'',$str);
-
GUYS??? I did that all by myself!!!!!!!!
-
[SOLVED] Quick and easy way to truncate a date string?
ToonMariner replied to Moron's topic in PHP Coding Help
you need to be consistent '01112007' would be fine but '1112007' COULD be 1st of november too!!! if you are consitent then hostfreaks soln without the if statement will do the job. -
this is going on for ever you should let table cells do their own thing - don't restrict or force their width or height - especially in html. us td { width: 80%; height: 5em; } obviously change it to your needs but only when ABSOLUTELY nessescary. make sure your table does not have any ghost cells (particularly important if you use col/rowspan). the VERY best thing to do would be to dump the table layout altogether and use divs and css - much much easier (look at how much trouble you are having now) and you will thoughrily enjoy the learning process.
-
yes which means that you are putting the result of teh query directly into teh database instead of extracting the information form it using one of the functions that does so (mysql_fetch_assoc etc...)
-
you don't seem to be extarcting any data from the query then - use mysql_fetch_assoc or similar to see what is in the results.
-
it sounds like the code in this file shoudl be a function or a class method. much better to call a function lots of times than execute 'standalone' script over and over again.