1. CSS Help

    Date: 01/23/06 (WebDesign)    Keywords: browser, css, html

    Hello all. I come to you with yet another question on CSS. I recently read this article about creating tabbed menus with CSS. I'm trying it out, and everything seems to work ok except for the actual tab part. It says in the article/tutorial to use an image for the rounded corners of the tab. I created the images, placed them in the CSS exactly as shown in the article, but they're not showing up on my browser. The link to the layout is here.


    This is the CSS used for the tab menu:

    #navigation a
    {
    color: #000;
    background: #FB7509 url("images/left-tab.gif") left top no-repeat;
    text-decoration: none;
    padding-left: 10px
    }

    #navigation a span
    {
    background: url("images/right-tab.gif") right top no-repeat;
    padding-right: 10px
    }

    #navigation a, #navigation a span
    {
    display: block;
    float: left
    }

    /* Commented backslash hack hides rule from IE5-Mac \*/
    #navigation a, #navigation a span
    {
    float: none
    }
    /* End IE5-Mac hack */

    #navigation a:hover
    {
    color: #fff;
    background: #184A82 url("images/left_tab_hover.gif") left top no-repeat;
    text-decoration: none;
    padding-left: 10px
    }

    #navigation a:hover span
    {
    background: url("images/right_tab_hover.gif") right top no-repeat;
    padding-right: 10px
    }

    #navigation
    {
    list-style: none;
    padding: 0;
    margin: 0
    }

    #navigation li
    {
    float: left;
    display: block;
    margin: 0;
    padding: 0
    }

    This is the HTML (without the spaces of course):

    < ul id="navigation" >
    < li >< a href="index.html" >< span >Home< /span >< /a >< /li >
    < li >< a href="/" >< span >Services< /span >< /a >< /li >
    < li >< a href="/" >< span >Take a tour< /span >< /a >< /li >
    < li >< a href="/" >< span >About us< /span >< /a >< /li >
    < li >< a href="/" >< span >Contact us< /span >< /a >< /li >
    < /ul >


    It's just a dummy layout I'm using to test this out. Would someone mind taking a look? I'm kind of stumped here. Thanks to anyone who feels like helping me out!

    Source: http://community.livejournal.com/webdesign/1048821.html

  2. Dreamweaver to ASP.Net

    Date: 01/23/06 (Asp Dot Net)    Keywords: html, asp, java, web

    So basically I've been assigned to write up a training sign-up web app for my company, and basically when we were working on it some static HTML versions were written up just for show and not for actual functionality. Thing is though that now I gotta use the exact same site design but now give it ASP.Net functionality. I know this sounds easy but I gotta deal with a site built with ALOT of Dreamweaver added code like non-editable tags (great goddamn idea that was,) and image swapping javascript. I don't want to have to rebuild this entire site from scratch, but I also don't want ot go and CONSTANTLY be making stupid design revisions to get it to look like the original page. Any ideas about this? Or is this really not as hard as it sounds?

    Source: http://community.livejournal.com/aspdotnet/55732.html

  3. server driven favicon?

    Date: 01/24/06 (WebDesign)    Keywords: browser, css, html

    I'm working on a project for dws scudder and they have favicon showing in FF 1.5 (yes.. IE is flakey with them)

    Here's the weird thing: I just poured over tons of code in html, jhtml, css and js and not once have I found an actual call for a favicon.

    What's even more strange is when I loaded the css and js in the browser directly from the site to look at, the favicon showed up.

    So, I did some digging and saw that CNN has the same thing going on. I go to CNN.com, look at the code and related items and no where in there is favicon called.

    Digging further, I find that according to Wikipedia:

    -------------- paste --------------

    Note: A file called favicon.ico and located in the document root directory will also be found by some browsers which do not process the link elements, even if it is not linked from anywhere on your site.

    -------------- end --------------

    So.. if this is the case, does this work for all pages (i.e. the loading of css and js?) or only html formed content that's delivered?

    Anyone have a word on this? And should the reliance of favicon.ico in the directory or some other method be allowed in place of an actual call in the ?

    Source: http://community.livejournal.com/webdesign/1049247.html

  4. Help!!!

    Date: 01/25/06 (WebDesign)    Keywords: html, web

    This is giving me one big headache.

    See this: http://www.willow.hackrifice.com/web/respicker.html

    The link which is supposed to be over the text "800x600" on that image, is appearing below the image. I have tried moving it with negative margins, but no matter what margin value I enter.. it won't budge at all. Now this link is supposed to be within the element of the image, so why is it appearing below that element, and is unbudgeable? Even stranger, if I make the image the background image of its element rather than placing the image, the link doesn't show up at all! Can anybody see what I am doing wrong by having a look at my code? I'm sure it's probably really obvious, but I've been trying to fix it for almost an hour and it's getting irritating!

    Source: http://community.livejournal.com/webdesign/1050167.html

  5. RGB color and CSS color discrepancy?

    Date: 01/25/06 (WebDesign)    Keywords: css, html, web

    so i made a photoshop file with the RGB color used at #33cc33. i saved for web as a png-24 file.
    i also made my site's background use #33cc33

    why don't they match? should i use another file format? which one works best at matching html/css-based RGB colors?

    Source: http://community.livejournal.com/webdesign/1050890.html

  6. more PHP, CSS...

    Date: 01/26/06 (Web Development)    Keywords: php, html

    Hey guys, I am a little frustrated... I was doing updates on this page, and the way it's set up is all PHP pages with a style sheet and also a navigation PHP file... so the menu is a separate file, and THEN that navigation file is affected by the style.php so... it's a few files to modify the navigation in order to affect all the pages.

    First, why use PHP? Why not HTML? Then, why not just make a template in Dreamweaver? So then whatever changes are made to the template affect all the pages.

    I ask this last question because I needed to adjust the table where the navigation.php was linked in order to fit it's new large size. But... I had to change each page! He coded it all complicated with sheets and PHP, and then I had to manually change each page. Can anyone explain this? I just need to understand why that method is better...Thanks!

    Source: http://community.livejournal.com/webdev/287706.html

  7. more PHP, CSS...

    Date: 01/26/06 (WebDesign)    Keywords: php, html

    Hey guys, I am a little frustrated... I was doing updates on this page, and the way it's set up is all PHP pages with a style sheet and also a navigation PHP file... so the menu is a separate file, and THEN that navigation file is affected by the style.php so... it's a few files to modify the navigation in order to affect all the pages.

    First, why use PHP? Why not HTML? Then, why not just make a template in Dreamweaver? So then whatever changes are made to the template affect all the pages.

    I ask this last question because I needed to adjust the table where the navigation.php was linked in order to fit it's new large size. But... I had to change each page! He coded it all complicated with sheets and PHP, and then I had to manually change each page. Can anyone explain this? I just need to understand why that method is better...Thanks! [x-posted]

    Source: http://community.livejournal.com/webdesign/1051893.html

  8. Repeaters in Tables

    Date: 01/26/06 (Asp Dot Net)    Keywords: html, database, asp, sql, web

    Ok... Apparently I'm getting a brain cramp here..

    I'm trying to get a repeater to work on an ASP.Net page in a table. For some reason even though I have an example copied DIRECTLY from a website I can't get the damn thing to work properly. I keep getting errors on the HTML side saying like, "Per the active schema, the element 'tr' cannot be nested within 'form'.", and "The active schema does not support the element 'ItemTemplate'.

    And when the page is run, I get the error: 'DataItem' is not a member of 'System.Web.UI.Control'.

    Here's part of the code. Its not 100% complete because this problem is preventing me from proceeding in testing.

    form id="Form1" method="post" runat="server">

    asp:Repeater id="parentRepeater" runat="server">

    HeaderTemplate>
    table>
    tr bgcolor="RosyBrown">
    th>
    %# DataBinder.Eval(Container.DataItem, "infoName") %>
    /th>
    /tr>
    /HeaderTemplate>

    ItemTemplate>
    tr bgcolor="#ffcccc">
    td Performance Objectives/td>
    /tr>
    tr>
    td objectives/td>
    /tr>
    tr>
    td Intended Audience/td>
    /tr>
    tr>
    td> <%# DataBinder.Eval(Container.DataItem, "infoIntendAud") %> /td>




-->

The Code-Behind:
Dim sDSN As String = System.Configuration.ConfigurationSettings.AppSettings("DSN2")
sCmd = "SELECT * FROM courseInfo WHERE infoID=" & queryID & ""
Dim sReqID As String
iReturnCode = oDataAccess.ExecuteSqlStatement(sDSN, sCmd, dsCourses, sErrMsg)
parentRepeater.DataSource = dsCourses.Tables(0)


Page.DataBind()

The iReturnCode thing is part of a utility class that we use for Database queries.


I know the code here looks REALLY weird but LJ is being a bad word that rhymes with runt and is actually compiling the code that I'm posting. I don't know if thats good or bad, but all I Know is that its not running on my machine and I'm getting these complilation errors. The <'s and >'s were modified to get it to display, but I think you get the idea.
Any help would be appreciated. Am I just going insane? This seems like such a simple thing yet it just doesn't seem to want to work.

Source: http://community.livejournal.com/aspdotnet/56888.html

  • Little Help?

    Date: 01/27/06 (PHP Community)    Keywords: php, html, web

    I've got this mailing script, it's a work in progress, I'm getting  this error:

    Parse error
    : parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxxx/public_html/mailer2.php on line 55

    Line 55 is this: $form .= "

    ";

    Any ideas why?


    #assign form values
    $name = $_POST['name'];
    $mail = $_POST['email'];
    $phone = $_POST['telephone'];
    $message = $_POST['message'];
    $sent = $_POST['submit'];

    #HTML page to be written
    $form = $head;
    $form .= "
    ";
    $form .= $nav;
    $form .= "
    ";
    $form .= "If you wish to contact us for any reason please don't hesitate to do so. Details of how to contact us can be found below:";
    $form .= "

    E-mail: xx@xxx.co.uk";
    $form .= "
    ";
    $form .= "Telephone: xxxxx Note: This is a temporary number, we will have a land line soon.
    ";
    $form .= "MSN Messenger: xxx@xxx.co.uk";
    $form .= "
    ";
    $form .= "ICQ: xxxxxxxx

    ";
    $form .= "

    Or alternatively you can use the form below to contact us.

    ";
    $form .= "
    ";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= ""
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "";
    $form .= "
    Name:
    E-mail:
    Telephone:
    Message:
    ";
    $form .= "";
    $form .= "
    ";
    $form .= "
    ";
    $form .= "
    ";
    $form .= "
    ";
    $form .= $footer

    #execute code if form has been submitted once
    if ($sent)
        {
            $valid=true; #set variable default value
                if (!$name) #check name field not blank
                    {
                        $errmsg .= "Please go back and enter your name
    ";
                        $valid=false;
                    }
                if (!$mail)#check E-mail field not blank
                    {
                        $errmsg .= "Please go back and enter your E-Mail address
    ";
                        $valid=false;
                    }
                if (!$phone) #check Phone No. field not blank
                    {
                        $errmsg .= "Please go back and enter your Phone Number
    ";
                        $valid=false;
                    }
                if (!$message) #check Message field not blank
                    {
                        $errmsg .= "Please go back and enter your Message
    ";
                        $valid=false;
                    }
            }
        if ( $valid != true ) # if not valid write this
            {
                echo ( "$errmsg . $form" );
            }
        else #if valid send e-mail
        {
            $to = "xxx@xxxx.co.uk";
            $re = "Website Enquiry";
            $msg = "Name: $name";
            $msg .= "

    Telephone: $phone

    ";
            $msg .= "

    Message: $message

    ";
            $headers = "MIME-Version: 1.0\r\n";
            $headers .= "Content-type: text/html;";
            $headers .= " charset=iso-8859-1\r\n";
            $headers .= "From: $email \r\n";
        if (mail ( $to, $re, $msg, $headers ) )
            {
                echo ( "$head
    $nav 

    Thankyou for your enquiry.

    Message from $name \($mail\) has been sent
    We will reply shortly

    The xxxxxx Team

    $footer" );

    Source: http://community.livejournal.com/php/403005.html

  • still having problems with apache! :(

    Date: 01/29/06 (Apache)    Keywords: html, web, apache

    I posted here about a month and a half ago about my *issues* with apache.
    It seems that everyone I know basically knows NOTHING about the apache webserver, even the person who originally turned me toward it. So I was hoping I could get some info as to what is going on with the server and why it is having problems.

    I don't know what types of errors I am having or what the errors mean, but I'll just copy and paste the error log here and maybe (crosses fingers, prays, wishes on shooting stars, etc.) someone, anyone, will take a crack at it. I've had this insane problem with apache not working for so long and before that it seemed that everything ran really smoothly so this is really boggling my mind. To refer to my previous post, you can go here: http://community.livejournal.com/apache/27907.html

    here is the error log:

    [Mon Dec 12 17:15:41 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 12 17:15:41 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 12 17:15:42 2005] [notice] Parent: Created child process 4060
    [Mon Dec 12 17:15:42 2005] [notice] Child 4060: Child process is running
    [Mon Dec 12 17:15:42 2005] [notice] Child 4060: Acquired the start mutex.
    [Mon Dec 12 17:15:42 2005] [notice] Child 4060: Starting 250 worker threads.
    [Mon Dec 12 17:29:28 2005] [notice] Parent: Received restart signal -- Restarting the server.
    [Mon Dec 12 17:29:28 2005] [notice] Child 4060: Exit event signaled. Child process is ending.

    [Mon Dec 12 17:29:28 2005] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.

    [Mon Dec 12 17:29:29 2005] [notice] Child 4060: Released the start mutex
    [Mon Dec 12 17:29:30 2005] [notice] Child 4060: Waiting for 250 worker threads to exit.
    [Mon Dec 12 17:29:30 2005] [notice] Child 4060: All worker threads have exited.
    [Mon Dec 12 17:29:30 2005] [notice] Child 4060: Child process is exiting
    [Mon Dec 19 19:51:48 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 19 19:51:48 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 19 19:51:48 2005] [notice] Parent: Created child process 2648
    [Mon Dec 19 19:51:48 2005] [notice] Child 2648: Child process is running
    [Mon Dec 19 19:51:48 2005] [notice] Child 2648: Acquired the start mutex.
    [Mon Dec 19 19:51:48 2005] [notice] Child 2648: Starting 250 worker threads.
    [Sat Dec 24 14:12:32 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sat Dec 24 14:12:33 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Sat Dec 24 14:12:33 2005] [notice] Parent: Created child process 704
    [Sat Dec 24 14:12:33 2005] [notice] Child 704: Child process is running
    [Sat Dec 24 14:12:33 2005] [notice] Child 704: Acquired the start mutex.
    [Sat Dec 24 14:12:33 2005] [notice] Child 704: Starting 250 worker threads.
    [Mon Dec 26 01:51:39 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 26 01:51:39 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 26 01:51:40 2005] [notice] Parent: Created child process 1060
    [Mon Dec 26 01:51:40 2005] [notice] Child 1060: Child process is running
    [Mon Dec 26 01:51:40 2005] [notice] Child 1060: Acquired the start mutex.
    [Mon Dec 26 01:51:40 2005] [notice] Child 1060: Starting 250 worker threads.
    [Mon Dec 26 14:32:48 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 26 14:32:48 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 26 14:32:48 2005] [notice] Parent: Created child process 1232
    [Mon Dec 26 14:32:48 2005] [notice] Child 1232: Child process is running

    [Mon Dec 26 14:32:48 2005] [notice] Child 1232: Acquired the start mutex.
    [Mon Dec 26 14:32:49 2005] [notice] Child 1232: Starting 250 worker threads.
    [Mon Dec 26 16:29:13 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 26 16:29:13 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 26 16:29:13 2005] [notice] Parent: Created child process 1228
    [Mon Dec 26 16:29:13 2005] [notice] Child 1228: Child process is running
    [Mon Dec 26 16:29:13 2005] [notice] Child 1228: Acquired the start mutex.
    [Mon Dec 26 16:29:14 2005] [notice] Child 1228: Starting 250 worker threads.
    [Mon Dec 26 16:35:13 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 26 16:35:13 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 26 16:35:13 2005] [notice] Parent: Created child process 1244
    [Mon Dec 26 16:35:13 2005] [notice] Child 1244: Child process is running
    [Mon Dec 26 16:35:13 2005] [notice] Child 1244: Acquired the start mutex.
    [Mon Dec 26 16:35:13 2005] [notice] Child 1244: Starting 250 worker threads.
    [Mon Dec 26 18:55:33 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Mon Dec 26 18:55:33 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Mon Dec 26 18:55:33 2005] [notice] Parent: Created child process 1376
    [Mon Dec 26 18:55:33 2005] [notice] Child 1376: Child process is running
    [Mon Dec 26 18:55:34 2005] [notice] Child 1376: Acquired the start mutex.
    [Mon Dec 26 18:55:34 2005] [notice] Child 1376: Starting 250 worker threads.

    [Wed Dec 28 15:14:34 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Wed Dec 28 15:14:34 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Wed Dec 28 15:14:34 2005] [notice] Parent: Created child process 616
    [Wed Dec 28 15:14:35 2005] [notice] Child 616: Child process is running
    [Wed Dec 28 15:14:35 2005] [notice] Child 616: Acquired the start mutex.
    [Wed Dec 28 15:14:35 2005] [notice] Child 616: Starting 250 worker threads.

    [Wed Dec 28 15:20:14 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Wed Dec 28 15:20:14 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Wed Dec 28 15:20:14 2005] [notice] Parent: Created child process 720
    [Wed Dec 28 15:20:15 2005] [notice] Child 720: Child process is running
    [Wed Dec 28 15:20:15 2005] [notice] Child 720: Acquired the start mutex.
    [Wed Dec 28 15:20:15 2005] [notice] Child 720: Starting 250 worker threads.


    [Thu Dec 29 11:03:40 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.

    [Thu Dec 29 11:03:45 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
    [Thu Dec 29 11:03:48 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
    [Thu Dec 29 11:03:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
    [Thu Dec 29 11:03:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.

    [Fri Dec 30 03:14:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.



    [Sat Dec 31 16:14:15 2005] [notice] Server built: Oct 9 2005 19:16:56
    [Sat Dec 31 16:14:15 2005] [notice] Parent: Created child process 708
    [Sat Dec 31 16:14:15 2005] [notice] Child 708: Child process is running
    [Sat Dec 31 16:14:15 2005] [notice] Child 708: Acquired the start mutex.
    [Sat Dec 31 16:14:16 2005] [notice] Child 708: Starting 250 worker threads.
    [Sun Jan 01 17:00:25 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
    [Sun Jan 01 17:00:25 2006] [notice] Child 708: Exit event signaled. Child process is ending.
    [Sun Jan 01 17:00:26 2006] [notice] Child 708: Released the start mutex
    [Sun Jan 01 17:00:27 2006] [notice] Child 708: Waiting for 250 worker threads to exit.
    [Sun Jan 01 17:00:27 2006] [notice] Child 708: All worker threads have exited.
    [Sun Jan 01 17:00:27 2006] [notice] Child 708: Child process is exiting
    [Sun Jan 01 17:00:28 2006] [notice] Parent: Child process exited successfully.
    [Sun Jan 01 17:00:32 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Jan 01 17:00:32 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Jan 01 17:00:32 2006] [notice] Parent: Created child process 9200
    [Sun Jan 01 17:00:32 2006] [notice] Child 9200: Child process is running
    [Sun Jan 01 17:00:32 2006] [notice] Child 9200: Acquired the start mutex.
    [Sun Jan 01 17:00:32 2006] [notice] Child 9200: Starting 250 worker threads.
    [Sat Jan 07 03:06:52 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sat Jan 07 03:06:52 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sat Jan 07 03:06:52 2006] [notice] Parent: Created child process 572
    [Sat Jan 07 03:06:53 2006] [notice] Child 572: Child process is running
    [Sat Jan 07 03:06:53 2006] [notice] Child 572: Acquired the start mutex.
    [Sat Jan 07 03:06:53 2006] [notice] Child 572: Starting 250 worker threads.
    [Sun Jan 22 18:30:36 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Jan 22 18:30:37 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Jan 22 18:30:37 2006] [notice] Parent: Created child process 2248
    [Sun Jan 22 18:30:38 2006] [notice] Child 2248: Child process is running
    [Sun Jan 22 18:30:38 2006] [notice] Child 2248: Acquired the start mutex.
    [Sun Jan 22 18:30:39 2006] [notice] Child 2248: Starting 250 worker threads.

    Source: http://community.livejournal.com/apache/29753.html

  • PHP messing with HTML?

    Date: 01/28/06 (PHP Community)    Keywords: php, html

    I am definatly no where near as good as most of you with PHP, but I have been coding HTML for about 6 years and I like to think I'm pretty good at it. In my most recent project I was using php pages (eg ?p=whatever), and I have used this type of navigation before, however on this recent project it seems to be screwing with my tables. The weird thing is, If I click refresh the tables fix themselves, But whenever the page loads it ALWAYS messes them up (screws with the alignment)

    to see what I mean check out saintsstudios.com.

    If anyone here can tell me how to fix this it would be greatly appreciated.

    Source: http://community.livejournal.com/php/403210.html

  • Little help please.

    Date: 01/31/06 (PHP Community)    Keywords: php, html

    Wondering if someone can give me a hand with this code I'm trying to use. I can't find my error so I'm hoping someone can be my second eyes and catch it. I used a tutorial as I'm quite a newbie to php so anyone that can help, I'll be grateful.

    I get this error - "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/silveri/public_html/beta/index.php on line 7"

    Here is the code from index.php that I'm trying to use:

    require_once("lib/template.php");

    $page = new Page("template.html");

    $page->replace_tags(

    array(
      "title" => "HOME",
      "descript" => "Welcome to my website!",
      "main" => "dat/index.dat",
      "menu" => "dat/menu.dat",
      "left" => "dat/submenu.dat",
      "right" => "dat/right.dat",
      "footer" => "dat/footer.php"
    );

    );

    $page->output();
    ?>

    Is there something I missed?

    Update After many hours and with some help, problem fixed.

    Source: http://community.livejournal.com/php/404849.html

  • Не могу удержаться

    Date: 01/31/06 (Code WTF)    Keywords: html


    $ext_list = "";
    $lastext = "no";
    if(isset(
    $_POST['ext_jpg'])) { $ext_list = "jpg"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_jpeg'])) { $ext_list .= "jpeg"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_gif'])) { $ext_list .= "gif"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_bmp'])) { $ext_list .= "bmp"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_png'])) { $ext_list .= "png"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_pdf'])) { $ext_list .= "pdf"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_txt'])) { $ext_list .= "txt"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_html'])) { $ext_list .= "html"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_htm'])) { $ext_list .= "htm"; $lastext = "yes"; }


    АААААААААААА!!!!!!!!! ТОЛЬКО НЕ МОЙ МОСК!!!!!!!!!!!!!!

    Source: http://community.livejournal.com/code_wtf/26078.html

  • Search Engine Stuff

    Date: 02/01/06 (Web Development)    Keywords: html, web

    I have questions about search engine optimization. Well I have one question actually. How do I do it? The firm for which I worked before I went out on my own took care of all that with a web marketing director. On occasion I needed to put certain words or phrases in certain places, above photos toward the bottom of the page and so on, but I never learned what sort of reasoning was behind it. I don’t even know how to submit to search engines. I know I need meta tags and that they get pasted in the header html somewhere, but what goes into the meta tags? Help!

    Source: http://community.livejournal.com/webdev/289466.html

  • Search Engine Stuff

    Date: 02/01/06 (WebDesign)    Keywords: html, web

    I have questions about search engine optimization. Well I have one question actually. How do I do it? The firm for which I worked before I went out on my own took care of all that with a web marketing director. On occasion I needed to put certain words or phrases in certain places, above photos toward the bottom of the page and so on, but I never learned what sort of reasoning was behind it. I don’t even know how to submit to search engines. I know I need meta tags and that they get pasted in the header html somewhere, but what goes into the meta tags? Help!

    Source: http://community.livejournal.com/webdesign/1053902.html

  • Tables of doom

    Date: 02/01/06 (HTML Help)    Keywords: html

    Ok, I copied and pasted someones HTML they gave to display icons and it had decided to put MILES of space in between the tables. I know a bit about HTML, but I've never really learned much about tables, so I'm a little confused. If you'd like to check it out and let me know what I can do to fix it, I'd really appreciate it! Thanks in advance!

    The post is here at my icon community

    Source: http://community.livejournal.com/htmlhelp/2247908.html

  • Help needed with login script..

    Date: 02/03/06 (PHP Community)    Keywords: php, mysql, html, database, sql

    I have the following login script when it logs in it just goes straight to back to the login page. Now I've worked out it's something to do with the else or if ( $num != 0) statement as when commented out it goes thru ish but it doesn't print the $msg variable which I have an echo statement calling on it in the html body..The session start/auth isn't being worked on atm hence why it's been commented out.



    #set variables
    $usr = $_POST['username'];
    $pass = $_POST['password'];
    $self = $_SERVER['PHP_SELF'];
    /*#Start session and auth it
    if (isset( $usr ) and isset( $pass ) )
     {
         session_start();
         $_SESSION['authorized'] = 'ok';
         $url = (isset($_GET['url'])) ? $_GET['url'] : 'index.php';
         header("Location: $url");
       }*/
    #check form not empty
    if ( (!$usr) or (!$pass) )
     {
      header ("Location:{$_SERVER['HTTP_REFERER']}");
      exit();
     }
    #connect to sql db
    $conn = @mysql_connect( "localhost", "xxx", "xxx" ) or die( "Could not connect to SQL" );
    $rs = @mysql_select_db ( "xxx", $conn ) or die ( "Could not select database" );
    #select db
    $sql = 'select * from users where \'user_name\'=\'$username\' and \'password\'= password(\'$password\')';
    #execute the query
    $rs = mysql_query($sql, $conn) or die ( 'Could not execute query' );
    #get no. of matching rows
    $num = mysql_num_rows ( $rs );
    #check for match
    if ($num != 0 )
     {
      $msg = 'Welcome $usr - you are now logged in';
     }
    else
     {
      header ("Location:{$_SERVER['HTTP_REFERER']}");
      exit ();
     }

    Source: http://community.livejournal.com/php/406868.html

  • word to html

    Date: 02/03/06 (WebDesign)    Keywords: css, html

    What's the best way to translate 2,000 pages of formatted text from a Word document into html so that the formatted text stays the same?

    I don't want to do it by hand! Is there a way to link up the style sheet in word to a CSS page in Dreamweaver?

    Source: http://community.livejournal.com/webdesign/1054878.html

  • Exporting a web page...

    Date: 02/03/06 (Web Development)    Keywords: html, web

    I have a web based reporting package which produces summary of data for me. I have to churn through these and make summary Word .doc reports for someone else.

    If I could copy'n'paste from the Web to Word and maintain the table it would be ideal. When I copy from IE, Firefox or Opera and paste into Word - Word crashes on me. I can copy'n'paste from IE into Excel and maintain something of the
    structure but none of the background cell colours, etc.

    Does anyone know of a Firefox extension (or any other way) of quickly grabbing an HTML table and turning it into a Word doc?

    Ta.

    Source: http://community.livejournal.com/webdev/290383.html

  • RAWR.

    Date: 02/04/06 (HTML Help)    Keywords: html

    I CANT GET MY ADD ME AND MESSAGE ME LINKS ON MYSPACE TO WORK!!

    HELP ME. What i need help with is how i can get a link button with colors and the one at funky chickens doesn't work

    the HTML is in the text area



    if you see any errors, tell me! if you can, reply with the overrides!

    Source: http://community.livejournal.com/htmlhelp/2249932.html

  • Previous page  ||  Next page



    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home