8,966 Posted Topics
Re: Are you saying this doesn't work? <script type="text/javascript"> $(document).ready(function() { $("#pgfor").twoitems({header: false}); $("#city").single({header: false}); $("#locality").multiselect({header: true}); $("#roomtype").twoitems({header: false}); $("#pricetype").twoitems({header: false}); $("#price_value").multiselect({header: false}); $('#mega-menu-tut').dcMegaMenu({rowItems: '3', speed: 'fast'}); $('a[id^="edit"]').fancybox({ 'width' : '48%', 'height' : '82%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', onClosed : function() { parent.location.reload(true); … | |
Re: id's are meant to be unique. You can pass `this` to your function. | |
![]() | |
Re: Search this forum for 'pagination' or 'paging'. You'll get a lot of examples. | |
Re: IE is sensitive to missing doctypes, unclosed tags and other minor Javascript typos. Make sure everything is in order. If you debug, do you see your data coming in? | |
![]() | Re: http://www.w3.org/Style/Examples/011/firstcss/firstcss.en.html ![]() |
Re: You may want to try a tool such as TinyMce or CkEditor. | |
Re: The tool of choice appears to be [TCPDF](http://www.tcpdf.org/) within this forum. They also offer paid support. | |
Re: > $httpRequest_OBJ = new httpRequest($url, HTTP_METH_POST); Should be: $httpRequest_OBJ = new HttpRequest($url, HTTP_METH_POST); // Capital 'H' | |
Re: > when i want to delete a page i go to the delete.php?id=XX (XX = ID of the page) > $id = (int) $_POST['id']; This should be $id = (int) $_GET['id']; | |
Re: Looks okay, what is the problem? | |
Re: Filtering the files on the date is not so hard, think a function can be made quickly that does that. However, it is unclear which calendar you use and how you would integrate something like that. ![]() | |
Re: http://stackoverflow.com/questions/43180/what-are-some-resources-for-getting-started-in-operating-system-development | |
Re: The problem is that you will most likely not get the results you want. I suggest you create a query (or view) like this: SELECT `tm_name`, `date`, 't1' AS TableName FROM t1 UNION SELECT `tm_name`, `date`, 't2' AS TableName FROM t2 -- and so on | |
Re: Just loop through the values, and for the right `<option>` set the `selected="selected"` attribute. | |
Re: > <a href='edit.php'>Edit</a> First you will have to tell `edit.php` which user you want to edit, so change this to: <a href='edit.php?id={$row['id']}'>Edit</a> Now you can use `$_GET['id']` in your edit script to retrieve the details. | |
Re: You can use `\b` as word boundary before and after the word you want to match. | |
Re: In the manual it is stated than you can specify keepalive for your session. Look into that to prevent automatic logoff. | |
Re: Sounds like a homework assignment. If you show your code, and state the problems you have, we'll help you fix them. Do not expect to get full code here. | |
Re: Are you sure every page starts with `session_start();` ? ![]() | |
Re: If your website is made up of just HTML files, then you need to learn how to change that. You can change the HTML to reorder things, and you can use CSS to change it's layout. | |
Re: Have you tried the TCPDF forum ? ![]() | |
Re: Did you write this CMS ? Then you should have a category column in your pages table, and on the add screen create a dropdown with the available categories. | |
Re: SELECT DATE(datetimecolumn) AS `date` FROM `table` | |
Re: > MySQL server has gone away Means you somehow lost connection to the server. | |
Re: One obvious issue, is that you are storing the username and userid in the cookie. Are you sure that is necessary? Personally, I'd use a generated code, also stored in the user table, so you can use that to determine who it is. | |
Re: > Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given This warning usually indicates that the execution of your query failed. So use a tool (phpMyAdmin) to check if your query runs correctly. | |
Re: You get that notice because the GET array does not always contain that value. You can solve it by doing something like this: $u1 = isset($_GET['username']) ? $_GET['username'] : ''; $e1 = isset($_GET['enrollno']) ? $_GET['enrollno'] : 0; This way they always get a default value. | |
Re: You can add exception handling around it, so if it fails, it does nothing. | |
Re: Looks pretty good. Would be nice to have a little list, instead of just one ;) | |
Re: Nay for me, but am used to typing markdown. Agree with happygeek on the toggle, for those who like it ;) | |
Re: Probable duplicate of: http://www.daniweb.com/web-development/php/threads/426804/how-do-you-not-submit-a-form-that-was-empty | |
Re: Why don't you install a local server and install them? That way you can try them and see which one best matches your wants/needs. Apart from that, SMF is my personal favourite. | |
Re: That event is only triggered if you use the WebBrowser object from MS. It does not work if you are using a regular browser. | |
Re: Have you tried a different value for `name`? | |
![]() | Re: Are you trying to run this on a shared host? Most likely that you are not allowed to run `chmod`. ![]() |
Re: You need to specify the whole column, including it's type: ALTER TABLE employee MODIFY Emp_name varchar(20) NOT NULL; | |
Re: An INSERT query only returns `true` or `false`, it does not return a result-set, so the `while` loop does nothing (other than generate a warning). For the query itself, you may want to remove the `>`. Also, if your `users` table contains more columns, then the query will fail. | |
Re: You may want to add an additional column for this, and create an insert trigger to automatically generate that id (based on your specifications). | |
Re: It's called 'pagination' and there are a lot of useful examples in the [PHP forum](http://www.daniweb.com/search/query/pagination/17?q=site%3A%2A%2Fweb-development%2Fphp%2F%2A%2F+pagination). | |
Re: Browse this forum, you'll find answers to your questions. | |
Re: Whether you use your current database or a new one is up to you. If you want to store it, you should change the script where the action attribute of the form points to, or write some javascript code to intercept the submit and do an ajax call first to … | |
Re: Instead of echo'ing to standard output, you should capture this info in a variable (add it to `$massage`). | |
Re: On line 19 you select everything. You should execute `$query` there, the one you just built. One issue though, in your WHERE clause, `%each%` should be `%$each%` Line 8 should be: `SELECT * FROM image WHERE ` with a space at the end. | |
Re: Not a tutorial, but I know PEAR has a [tokenizer](http://pear.php.net/package/PHP_CodeSniffer). | |
Re: `new Array` tries to create an object of class "Array". Did you find this somewhere? I do not see it mentioned in the manual, perhaps you have a link. The second is the usual construct. | |
Re: Be so kind as to provide some sample input and output, perhaps that will clear up what you want to achieve. |
The End.