Welcome Guest, Not a member yet? Register   Sign In
Unidentified queries
#1

[eluser]wonderbread[/eluser]
I recently picked up code igniter in hope of it helping me out in the development of a small clan/guild website. However I've been getting unidentified query errors on all queries. I've been following the blog in 20 minutes video tutorial when these happend.

On a side note, the scaffolding doesn't work for me either. I followed that through but the 'add' function gives me a 404.

Just leave a reply here.

Thanks
Wonderbread
#2

[eluser]Derek Allard[/eluser]
Welcome to CodeIgniter wonderbread, glad to have you on board. I've moved this into the application development forum, as I think you'll get more eyeballs on it that way.
#3

[eluser]gtech[/eluser]
first thing to check.. have you set the base_url in the config/config.php file?

links to other threads with same problem.
[url="http://ellislab.com/forums/viewthread/60917/"]http://ellislab.com/forums/viewthread/60917/[/url]
[url="http://ellislab.com/forums/viewthread/47270/"]http://ellislab.com/forums/viewthread/47270/[/url]

if that fails you could try the suggestions in the troubleshooting guide.
[url="http://ellislab.com/codeigniter/user-guide/installation/troubleshooting.html"]http://ellislab.com/codeigniter/user-guide/installation/troubleshooting.html[/url]

if you are using a .htaccess file (im guessing you havent) then remove it for now and keep things simple.

If none of these things work let us know, I am sure someone will be happy to help.
#4

[eluser]wonderbread[/eluser]
I feel like such an idiot now.
I didn't edit the config.php file =\

Thanks guys.
#5

[eluser]wonderbread[/eluser]
I appear to have another problem now.Still whilst following the blog tut.


Parse error: syntax error, unexpected T_ENDFOREACH in C:\xampp\htdocs\igniter\system\application\views\cms_view.php on line 15

Code:
<html>
<title><?=$title?></title>
<head>
</head>
<body>
<h1>&lt;?=$heading?&gt;</h1>

&lt;?php foreach($query->result() as $row); ?&gt;

<h3>&lt;?=$row->title?&gt;</h3>
<p>&lt;?=$row->body?&gt;</p>

<hr>

&lt;? endforeach; ?&gt;

&lt;/body&gt;
&lt;/html&gt;


*EDIT*Sorry on the double post, just noticed it.
#6

[eluser]Derek Allard[/eluser]
its the ";" in
Code:
&lt;?php foreach($query->result() as $row); ?&gt;
It should be a ":"

Also, consider changing &lt;? to &lt;?php in the endforeach. Probably won't be a problem, but some servers don't like it.
#7

[eluser]wonderbread[/eluser]
Thanks for that. Nice and fast reply.
#8

[eluser]Derek Allard[/eluser]
You're welcome. I look forward to you helping others as well, we all support each other here Wink
#9

[eluser]wonderbread[/eluser]
I doubt I can help anyone at this moment. My 'skills' are non-existant. Smile




Theme © iAndrew 2016 - Forum software by © MyBB