ToonMariner
Members-
Posts
3,342 -
Joined
-
Last visited
Everything posted by ToonMariner
-
marquee is proprietary markup - only works in IE. If I found anyone offering themselves as 'experts' in only two tags of html (one of them pointless) I'd rather pay them to stop advertising... As for what you can do with them... well span is subject to css - so learn your css and you can do what you like with it! Marquee - better off with a span that is controlled by javascript as text moving across a screen is considered a 'Document Effect'
-
ANDY! For the love of God mate - the correct markup for showing a list of images is to use a liat tag - in this case UL or even a definition list so you can associate and text with the image! Floating the li (or dt/dd) left will ensure the display would be fluid - so the number of items on each line could change with screen resoultions - the ideal solution at the very least!!! Why are people STILL obsessed with tables for layout. The images (and their associated info) in that context are not even tabular data so tables are NOT the appropriate markup...
-
do i get a brownie point then?
-
why not just tlet it be as high as it needs to be - that way you need not worry!
-
i would try my best to forget anything but the input type="file" for browsing your local machine FF is very funny about opening files in the manner with whihc you speak...
-
xml/xhtml web validator incorrectly parses php page
ToonMariner replied to golbasche's topic in HTML Help
looks like you have php short tags on in your ph.ini file... -
better still - avoid frames like the plague - they are a relic of poor site planning/design...
-
some wap enabled phones will actually use the screen media type instead of the handheld... the iphone uses some cleaver bits and bobs to display a page as it would on a normal monitor but has the capability to magnify content. bottom line is you can only provide the ability for devices to choose a style sheet that will render the page properly on the appropriate device - what the device actually does will either be a strength or weakness in its marketability...
-
the inner div should have the absolute position...
-
For those who have ie7 and still need to test on older versions this is useful... http://tredosoft.com/Multiple_IE
-
then maybe your server doesn't allow hotlinks - other wise test you script by putting the url directly into the browser and turn error reporting on see what it says...
-
maybe they don't allow hotlinking outside the site for images....
-
I don't think yours would redirect any pages with any url data after the .php
-
<img src="http://www.yoursite.com/imagescript.php?param1=x¶m2=y"> that should work fine... there are a couple of users on here that have that in their profile bit!
-
err put the div with link in it in your html, give it an id. in your css give the parent element position: relative; and give the div you just added position: absolute; bottom: 0; right: 0;
-
I will add to that that you should set up 2 account for your mysql database - give one all the permissions you require for admin (insert/edit/delete etc.) and the other give the minmum amount of access to do the job - use this account for accessing the database from public site.
-
html is a bit of a mess but just go through and give relevant elements a margin: 0 I fear though that as you have no doctype declaration this site will fail to mee the needs of the web! (not as many people are still stuck with ie6 remember!)
-
php is finished before the client sees the page - one on the client on js is available. Your options are - send a new request loading the page once more but with some data sent (like a form) to use in flow control and call functions you need etc. OR send an ajax request which could run some php code and return some html that your ajax request can place in a specified element...
-
yeah what problem are you facing????? It helps to give some idea of what not is working so we can identify possible causes...
-
[SOLVED] FOREACH error? Makes no sense to me...
ToonMariner replied to NerdConcepts's topic in PHP Coding Help
It is saying that $_POST['news_id'] is not what it is expecting - print_r($_POST) prior to this will show you all teh info you sending to the form; that will allow you to check you are sending the data you think you are! -
modrewrite (.)*\.php(.)*? $1.php5$2
-
you would need preg_split(); the regex would have to search for '.' that are not inside an a tag (you maybe want to control whether its in other tags too!!) $str_arr = preg_split('/(?!<a(.)*?>)(.)*?\.(.)*?(?!<\/a/)',$str); something like that (don't expect that to work straight off but someone much better at regex will correct me! )
-
well you can read the $_POST or $_GET arrays and grab the index of each element. ideally when a users does this you should create a db table with fieldnames identical to the input names they have given (need a bit of management - especially if you let them use check boxes/radio buttons/select boxes/file inputs etc.) but will make you code much more manageable...
-
to mask the permission value if the setting is 2 then you using chmod(0755) would result in the permissions being (533) - so it mask the true value of a permission by 2
-
you need to create an array from each result set I suspect you are doing someting like... <?php $result = mysql_query('SELECT...'); $isaresult = mysql_query('SELECT...'); $mergedresult = array_merge($result, $isaresult); ?> If so you have missed out the array formation... <?php $result = mysql_query('SELECT...'); $isaresult = mysql_query('SELECT...'); $resultarr = array(); while($row = mysql_fetch_assoc($result)) { foreach($row as $key => $val) { $resultarr[$key][] = $val; } } $isaresult = array(); while($row = mysql_fetch_assoc($result)) { foreach($row as $key => $val) { $isaresult[$key][] = $val; } } $mergedresult = array_merge($resultarr, $isaresultarr); ?> the field names present in the two datasest should be the same - otherwise you may give yourself a bit of a headache!