Jump to content

fixxxer

Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Contact Methods

  • Yahoo
    fixxxers747474@yahoo.com

fixxxer's Achievements

Member

Member (2/5)

0

Reputation

  1. thanks. dont know whats causing it. its not that the session_start(); is writing anything to the page but that i was under the impression that IE need the DOCTYPE declaration needs to be at the top and for some reason when i put session_start in it causes IE to go into quirks mode and so doesn't read the css correctly. when i leave the session_start() out the page displays fine and the drop down menu works. but when it goes back in i get an error.
  2. it only causes a problem when i put session_start(); above the html doc declaration like in the example in the first post but if i just have code in there like :- <?php echo 'test'; $var = 'test'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> etc.. this will load the menu fine, but as soon as i put session_start(); in there the menu doesn't work. theres nothing wrong with the code becuase it works in firefox fine and the problem only occurs if i put in session_start(); in the php section above the header. has anybody every had a problem like this? I found other posts on the net of people who have similar problems but no solution. it might be becuase im not very good then. but can i then ask how users on here start their pages. ive always done mine as :- <?php //php code ?> <html .... with the doctype here. is this right
  3. hi, ive just built a new menu for a site of mine. it works fine in firefox but in IE it doesn't, ive been told that because my code is :- <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> ....etc that this causes internet explorer to enter some sort of quirks mode and render the page differently. my problem is that i also thought the session_start has to be the first line. is there a way for me to combine them both and ensure IE displays page as firefox does. ive been trying for two days to resolve it but am having no luck thanks
  4. You could (can), but its usually a poor design choice. yeah to be honest ive been pulling my hair out at it for a couple of hours and beginning to realise it wouldn't have worked as well as i wanted to anyway. thanks for the help everyone, with out posting here prob would have wasted a week. thanks.
  5. i thought it might be that i couldnt store code in the database, thanks for letting me know.
  6. well this is the info that i want to come from the database. it is taken from the database and when placed into the page it i want to get to act as php code but when i for example store it as a variable $box and use echo $box it just prints it to the page. I want it to be executed as php code, but its just printed straight on the page. i know im doing something wrong but cant work out what. $result = get_match_info($_REQUEST['id']); $row = mysql_fetch_array($result); echo "Competition: " . $row['name'] . "<br />"; echo "Date Added: " . $row['date_added'] . "<br />";
  7. thanks for the reply, i already have a function file. Basically the snippets of codes make up css boxes and i wanted to be able to get them dynamically depending on what page the user is on, it works fine when i dont put php code in the boxes but as soon as i do it just prints out the code as well, when i want it to print the display code and then execute the php commands. sorry if this doesn't make sense.
  8. Hey, This might sound like an easy question but im stuck, in the website im building i want to store php code snippets in a table on the database and call them when i need them. When i try and put the code onto the site though the code just prints out to the page, can someone tell me what im doing wrong, is there a function i need to use to make it act as php code or am i just barking up the wrong tree. if anyone could point me in the right direction id be grateful thanks
  9. thanks i think i get what you mean, ill give it a try. thanks again, this is the only php site where people actually seem to answer questions. thanks
  10. can someone please help me, its not even the code im looking for just an explanation of the osrt of set up i need e.g database and how i link the different catergories so far ive got :- cat_id parent_id cat_name where i can put the parent id and so can create the breadcrumbs by going back through the db but this seemed quite long winded. can someone suggest to me the best way to do this thanks
  11. This may sound like a stupid query and ive looked on the net for a tutorial. im trying to build a site that contains information stored in categories. to give an example if i wanted to store information about football i would want a structure like this Football > English > Premiership > Liverpool > Steven Gerrard > the problem im having is how do i store this in a database that links it all together i have an idea on how i can do it but it seems long winded and stupid, basically i want each category to be a link to that section so if they clicked liverpool thet would go to one page and if they clicked the parent category it would be another page. i know this might seem a simple one and im not to bad with php coding would just like an explantion of the most efficent way to do this. if anyone can help id be grateful. thanks
  12. Hey, Ive been learning php and have built several very bad sites and while i feel my php coding is improving all the time, i struggle with actual web site design. Not the appearance of the site but the actual design process. As ive had no formal training, i dont how to plan a website from scratch i tend to start a website and then constantly think of things to add, and forget things. Im looking for a book that shows how to design a website. things like flow charts etc.. it doesn't have to be specific to php but id like to get an idea of how a website is designed by professionals. Can anyone offer some advice. Even a tutorial off the net might help thanks.
  13. Hey, Ive been learning php and have built several very bad sites and while i feel my php coding is improving all the time, i struggle with actual web site design. Not the appearance of the site but the actual design process. As ive had no formal training, i dont how to plan a website from scratch i tend to start a website and then constantly think of things to add, and forget things. Im looking for a book that shows how to design a website. things like flow charts etc.. it doesn't have to be specific to php but id like to get an idea of how a website is designed by professionals. Can anyone offer some advice. Even a tutorial off the net might help thanks.
  14. Okay thanks again for all the advice, TBH designing a site is not somthing im particulary good at and Ive only just learned css so all the advice was invaluable, so ill try and make some change and sort the firefox thing out and then show it again. Hopefully im getting closer. lol
  15. [quote author=steviewdr link=topic=111449.msg451825#msg451825 date=1160825222] All the picture boxes look very bunched up. The top menu is a little confusing. The javascript was broken in my IE6. (it did work - just gave the warning note on the bottom left of IE) It did take a while (20-30secs) to load. Novel idea. Seems like a nice bit of work gone into it. You just need to smooth the rough edges. -steve [/quote] I like the idea, have to agree with the previous review. It was a bit confusing and do with make it a bit simpler especially if youre aiming at the myspace crowd. definately like it though and id use it once its up
×
×
  • 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.