Welcome Guest, Not a member yet? Register   Sign In
Looping file
#10

(07-20-2016, 09:37 PM)davy_yg Wrote: This is what I try to print all gallery in rows.  Can somebody help me fix this error message?  Thanks in advance.

Parse error: syntax error, unexpected ';' in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\addslideshows.php on line 114
A PHP Error was encountered
Severity: Parsing Error
Message: syntax error, unexpected ';'
Filename: views/addslideshows.php
Line Number: 114
Backtrace:


Line 114:  <td><img src="<?php echo base_url('uploads/'.base_url($images_item['src']; )); ?>" height="300" width="400"></td>

Despite my better judgment, I'm going to attempt to help you here.

A semicolon (Wink indicates the end of a command in programming languages like PHP, C, JavaScript, etc. If you end a command with a semicolon before you include all of the necessary components of that command, you will get the message "syntax error, unexpected ';'". 

In this case, you're getting the error because you've called base_url() twice, but haven't closed the parentheses for either call before terminating the command.

It would appear that you need to find some PHP tutorials in addition to some CodeIgniter tutorials, and pay a little more attention to the code you're writing as well as the error messages you're receiving. You might even want to spring for a book if you're going to be doing this a while.
Reply


Messages In This Thread
Looping file - by davy_yg - 07-20-2016, 03:25 AM
RE: Looping file - by InsiteFX - 07-20-2016, 03:38 AM
RE: Looping file - by mwhitney - 07-20-2016, 06:42 AM
RE: Looping file - by davy_yg - 07-20-2016, 08:35 AM
RE: Looping file - by mwhitney - 07-20-2016, 01:47 PM
RE: Looping file - by davy_yg - 07-20-2016, 09:37 PM
RE: Looping file - by mwhitney - 07-22-2016, 10:56 AM
RE: Looping file - by Wouter60 - 07-20-2016, 09:00 AM
RE: Looping file - by PaulD - 07-21-2016, 03:09 AM
RE: Looping file - by InsiteFX - 07-21-2016, 03:18 AM
RE: Looping file - by Ivo Miranda - 07-22-2016, 12:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB