-
Span won't go above Img
Thanks for the help, it worked to allow the span to now go over the image but it displays at the top of the image rather than at the bottom, I've tried using margin to move it down yet it will move the image with it. As for the PHP stopped working as it should, I'm using a while loop from the database to feed the content for the slider, the images go in the order they should but after the first slide in which all the 'content' displayed in the span is the same for all images despite being different.
-
Span won't go above Img
Hi guys, I'm having difficulty getting my span tag to go above my img tag in my image slider. My HTML: $CONTENT.=" <div class='my_slider'> <ul>"; $connection = db_connect(); $result = db_query("SELECT * FROM news"); while($row = mysqli_fetch_array($result)) { $CONTENT.="<li><span>$row[articlename] - $row[body]</span><img src='images/$row[imagepath]' /></li>"; } $CONTENT .=" </ul> </div>"; My CSS: .my_slider ul { margin:38px 0 0 0; } .my_slider ul li{ height:285px; max-height:285px; max-width:940px; list-style:none; } .my_slider ul li img { min-width:940px; position:inherit; } .my_slider ul li span { width:100%; background:#232323; opacity:0.5; height:38px; color:#ffffff; font-weight:400; padding:4px 0 8px 10px; } I've tried various methods, the most successful was using position:absolute on the span but that stopped the PHP while putting the text above the correct image. Any help would be appreciated
-
Register_Global Help
Hi everyone, I haven't done anything in PHP for a while, not done any website development for ages and finally getting back into it. I used to use the following in a config file. if (!ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET); if (isset($_SESSION)) { array_unshift($superglobals, $_SESSION); } foreach ($superglobals as $superglobal) { extract($superglobal, EXTR_SKIP); } } To which I would have a 'switch' on the page I am wanting to have multiple functions on switch($process) { case "checkLogin": valLogin($validate); break; default: Login($alert); break; } The functions would then be chosen when a form was submitted with a hidden variable within the form using the name as 'process' then the value selecting the required function. It used to work perfectly fine but coming to try this today, I keep getting 'Undefined variable' on the lines for '$process' and '$alert'. I have tried declaring these first by $process = ""; etc but this stops the 'switch' from working. Could anyone shed any light ? Regards, Tom.
-
-
Opinions ?
Thanks for the feedback, the home page has the location, opening times etc and there is a separate page for price list. I will be making the website responsive to change whether they are using a phone/tablet etc. As for CMS, I created the structure for my own a while ago, was planning on using that. This is the homepage: https://dl.dropboxusercontent.com/u/34738464/shine_home.png
-
Opinions ?
I haven't done any web design work for sometime, the cousin of my partner is opening a salon soon and I said I'd do the website for free, more for practice than anything, This is one of the pages, just looking for a bit of critique on it. https://dl.dropboxusercontent.com/u/34738464/shine_about.png
-
-
Creating an online Marketplace
I am tempted to do so, but I am a developer myself just in the basic/early stages, I'm fairly confident with PHP and have done scripts in the past for various things, I was just hoping for some starting pointers, I can mentally map out how to make one if I was to have it as only one seller, but cannot map out how I would get it to work with multiple sellers (users).
-
Creating an online Marketplace
Hello guys and girls, I am working on a project and a feature would include a Marketplace in which users can submit their own work to sell and for others to buy, I was going to code this myself using PHP however its more advanced than anything I've tried before could someone please give me some pointers or starting areas ? Also is it a big task in which another already made script would be better using ? Regards, Tom.
-
Opinions on new website idea.
Hi everyone, I've been out of the game for a while in terms of designing and developing, I had originally started a design/idea for a model/photographer/artist website similar to ModelMayhem but to be specific for the UK/EU as I couldn't seem to find one that did this, I'm aware it would be competing with something that has been around for a while however after using ModelMayhem myself I feel that the website is outdated and lacks a lot of functionality. I am in two minds whether or not to pick this project up again. As today I had another idea which is similar to the model idea but for musicians instead also offering people to post 'ads', music for sale etc I haven't come up with a full plan for this idea yet, I did a bit of digging around online and can't seem to find anything similar, I've found 'Post an Ad' type websites but nothing like I am thinking of. Personally out of everyone on here which do you think would be a more worthwhile project ?
-
Changing background color
It's hard to guess whats wrong just from CSS, either post HTML too or link to it somewhere like others have said, If you have changed the background colour and has no effect then I'm guessing you have a DIV thats covering your background ?
-
Unsetting Cookie won't work ?
I have done this many times before and for some reason the cookie just won't unset or expire ? session_destroy(); unset($_COOKIE['CPUsername']); setcookie("CPUsername","",1); header("Location: index.php"); exit(); For some reason it just won't unset regardless of what I try. Edit: I just realised once I posted it as to why .. silly me! being a while since doing PHP work. Any mods who see this if you want to delete it as its sorted now.
-
-
-
Shorten/Hide URL
It's been a very long time since I did any PHP work, before I took a break I had only just learnt how to shorten/hide URLs I mean say the following: www.website.com/profile?=signup to be changed into www.website.com/profile/signup I remember briefly that it has something to do with htdocs but honestly cannot remember anymore than that If anyone can help jog my memory would be much appreciated.
-
PC or MAC?
I used to use Windows and bought my first iMac a few years ago and haven't looked back since as in there isn't anything I miss about Windows. I now have a nice Apple collection consisting of an iMac, MacBook Pro, iPad, iPhone and even bought Apple TV for the hell of it.
-
A Favour to ask
Thanks for that
-
A Favour to ask
Hello everyone, Just a quick favour to ask anyone out there who plays video games, I am working on a website and I have created a small survey online a few questions, if you could please take a few minutes to complete it so I can get a better idea on what people think/want. http://www.surveymonkey.com/s/ZRRG3WS
-
Need help with big project
Well for the design part you should be okay as you have said you know HTML/CSS for the content of the site you would have to use some server side script so PHP and a database (MySQL) which would be used for inputting data into the site from a control panel then also display it on the front end of the site.