Jump to content

Error


Mod-Jay

Recommended Posts

Error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\Users\cory\Desktop\xampp\htdocs\Starter Kit(2)\inc\slider.php on line 13

 

Code used:

 <?php

$rr = mysql_query("SELECT * FROM news");
while($r = mysql_fetch_array($rr))
{
$name1=$r["name"];
$desr=$r["desr"];
$link1=$r["link"];
$date1=$r["date"];
$datem1=$r["datem"];
}
echo "
                            <div class="cs_article">
                            	
                                <div class="left">
                                    <h2>$name1</h2>
                                    <p>$desr</p>
                                    
                                    <div class="button"><a href="$link1">Read more</a></div>
                               	</div>
                                <div class="right">
							<h1>$name1</h1>"
							</div>
                                                                
                            </div>
";
?>

 

Line 19 is:

 <div class="cs_article"> 

Help me please.. Im trying to actully get it to do that for every topnews i have..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.