When I look for file changes in /etc it lists init but when I look in there I can't see anything that's changed.
I noted the boot process as much as I could:
fsck from util -linux-ng 2.17.2
/dev/mapper/servername-root:clean
/dev/sda1 was not cleanly unmounted, check forced
init: (see stuff i...
Thanks for your help Noway2.
These are the files/folders within /etc that were changed in the 2 days before the fail:
init
mtab
samba
network
resolv.conf
I had a look but I don't have any idea what to look for. When I see samba there I remember changing of the the partitions to ntfs which I...
I don't think I did any updates/upgrades but I will have done so in the past few days. It has been a while since I rebooted the server.
There was a further error relating to ureadahead but i deleted ureadahead.conf and ureadahead-other.conf which removed the error.
I did make a couple of...
I have had Ubuntu Lucid server running for a few weeks trouble-free but now I get the following error and boot fails:
init: network-interface (lo) pre-start process (741) terminated with status 1
init: network-interface (eth0) pre-start process (744) terminated with status 1
init...
That's a great idea. I never thought of that,
I've started testing it out and I've just pasted a whole form into each question field which I've never done before but it seems to work fine.
I'm now faced with the problem of how to get a variable field name. My responses table has a row for...
Thanks for your suggestion alan.
I have tried this out as a test and it comes back to the same problem: I need to specify some logic somewhere that specifies the next page. Unfortunately my page progression could be 1,2,4,17,18 etc rather than 1,2,3. I can use the database record for the last...
@vacunita So what you are suggesting is just to get rid of the index.php switch. I suppose the only benefit from the switch really is to avoid duplicating the header and footer includes every time and maybe a bit of security but maybe that's not such a big deal in this case.
Thanks for your help.
OK I'm happy that that is not the best way but maybe you can help me with the logic.
So I have a switch for each question on index.php. Now I need to select that on the basis of a posted field. Do I use the form action along the lines of:
<form action="index.php?p=<?php if ($q1==1) {...
Sorry for the delay and thanks again for your help Vacunita.
I have been trying to figure out how your solution would work.
I need a switch option for each question, which I have already. Do I need a further switch for possible answers within each question?
Yes, my questions are one per file. Index.php has this switch:
switch ($p) {
case 'q01_01':
$page = 'questions/q01_01.inc.php';
$page_title = 'Question 1.1';
break;
case 'q01_02':
$page = 'questions/q01_02.inc.php';
$page_title = 'Question 1.2';
break;
I added your code...
I'm not sure I understand how it would work to dynamically load the file. Do you mean selecting the next page and then using POST?
So the logic would be in the form? So where I have for example:
<form action="index.php?p=q01_02" method="POST" />
I would add my 'if $q1=="1"' or whatever?
I need to redirect users depending on their response to form input questions (it is a questionnaire and respondents don't have to answer all questions). What is the best way to do it? I have tried a redirect like this:
<?php if ($q1 == "1") Header("Location: index.php?p=q01_02"); ?>
Where...
Thanks, that is most helpful.
I have changed the action to GET:
<form action="index.php?p=view_recipes" method="get">
<select name="type">
and I have now added hidden inputs:
<input type="hidden" name="s" value="' .$start . '">
This gives me a url which is nearly useful but misses out the...
Thanks again jpadie. I will certainly try your pagination. Can you help me out with what my GET statement would look like to accommodate the view_recipes switch along with the category choice and page numbers. Do I need to use separate pages now for example or can I self post?
Can you tell me how I would change the next link for example? Can I do this?
'<a href="index.php?p=view_recipes?s=' . ($start + $display) . '?np=' . $num_pages . '"> Next</a>';
Thanks jpadie. I changed to POST because I couldn't seem to combine my page switch:
$url = BASE_URL . 'index.php?p=view_recipes';
with the GET syntax on the url. eg. localhost/oldmeg/index.php?p=view_recipes?s=5?np=3
So I changed it by using POST along with &s=5&np=3.
Is this wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.