- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
22 Posted Topics
Re: No 100% sure what you mean. The above would work. But the Pagination class does have a config setting where you can set the page segment the class looks for: $config['uri_segment'] = 3; All the details you could ever need at https://ellislab.com/codeigniter/user-guide/libraries/pagination.html :) | |
Re: What are you trying to acheieve exactly? Mixing server side sessions with onclick events usually indicates you need to rethink your logic. Nonetheless, for your question you need a bit of JavaScript: Change: <a href="#" onclick="doSomething();"> To: <a href="#" class="clickable" data-session="something"> ... Then, to catch the click: $('.clickable').click(function() { var … | |
Re: In short: session_start() should be called once only, at the top of the page, before any output is sent to the browser :) | |
Re: To output the job as you want, there are a few ways. YOu could remove your three 3 loops and have a single loop: [code=php] while(list($key,$value) = each($_POST['job'])) { $job = $_POST['job'][$key]; $material = $_POST['material'][$key]; $quantity = $_POST['material'][$key]; $job_output .= $job . ' - ' . $material . ' - … | |
Re: Please please don't get caught up in the whole Page Rank saga. At the end of the day it's a metric Google uses to asses the importance of yuour site. There are many examples of where lower Page Rank sites rank above higher PR sites. E.g. Google 'web design' and … | |
Re: [QUOTE=almedajohnson;1484149]I don't understand your question. please specify it. And the 2 URL you have posted are from the same site...[/QUOTE] He's asking if it's betetr to inclide a .html to the url, the urls he's posted aren't the same at all. | |
Re: install wordpress on your own server. THis way you'll get some seo benefit when someone links to your blog. If you have a really large site, install the blog on a subdomain. | |
Re: Just to double check, the file you posted is called upload.php, as that is where your form data is being posted. If so, change the submit button code to the following and report back: [CODE] if ( isset($_POST['submit']) ) { $name = $_FILES['myfile']['name']; $tmp_name = $_FILES['myfile']['tmp_name']; $location = "avatars/$name"; move_uploaded_file($tmp_name,$location); … | |
Re: It will always return 1 as you're not incrementing $i within your loop - at the minute you're passing the function the number 0 and then adding 1 to it - your logic is flawed. You need to change your function: [CODE="php"] function width($theid,$i) { $get = mysql_query("SELECT * FROM … | |
Re: Lol, says I have to wait 40 minutes to download your file, no thanks. ![]() | |
Re: So you're basically just getting all records within a certain period of your 'dateofservice' column. Can be done using sql only - something along the lines of [ICODE] SELECT `servicearea`, `date`, `customerid`, `clientID`, DATEDIFF(dateofservice, NOW()) As countDaysDiff FROM `servicesrendered` WHERE countDaysDiff = '80' AND `servicearea` = 'Oil Change' ORDER BY … | |
Re: Following works for me fine: [CODE]$name = $_GET['record']; $the_catagory = $_POST['catagory']; //the variable from the if ($the_catagory == "players") { } elseif ($the_catagory == "events") { } elseif ($the_catagory == "sales") { }[/CODE] | |
Re: Things like this are good for learning, but I really wouldn't recommend it on a live site as thumbs are being recreated each time the script is called - which is bad practice and unecessary. You should really be caching the generated images. There's quite a good one that caches … | |
Re: Slightly off topic, but have you considored using MySQL's full text searching instead of LIKE? | |
Re: [QUOTE=sslguru;1466633] One way to find out such links is - define your targeted keywords - Search in google for those keywords one by one - write down top website urls - search top websites link (backlinkwatch.com) - place your link there[/QUOTE] Lol, you make getting a backlink from .gov and … | |
Re: Submit it to Google, all you need. /thread | |
Re: Slightly off topic, you should clean the contents of $_POST['search'] before using it in the SQL query as $search=$_POST['search'] represents a security risk | |
Re: Like many SEO things this is no exception - no one knows for sure :) Personally, I think it's down to how much a site gets updated with fresh content. On a recentish static 5 page website a change to the main desc took nearly a week. On my personal … | |
Re: [QUOTE=galaxyweblinks;769764]Hello all, What is mean by SEO? Is the SEO work will useful for marketing the website? Send me your suggestions as posts. Thank you for your replies…[/QUOTE] stop spamming please. | |
Re: I'm confused :) Do you mean you want to parse another XML feed or display extra information for your current feed? It may help if you do a print_r on your feed data to see all available information of have to work with: [code=php] <pre> <?= print_r($feeds->data); die(); ?> </pre> … | |
Re: [QUOTE=evstevemd;1471557] What are risks when uploading files other than limiting some extensions (like exe's)?[/QUOTE] That also depends on how you're checking your extension. E.g. say you're getting the extension from the filename via $_FILES['myfile']['name'] using PHP's string functions, the value of $_FILES['myfile']['name'] can be faked. For images you can use … | |
Re: Yes, as above, would need some more info on your order items table. A common way of storing orders and items is to have two tables - an order header table and order items: [B]OrderHeader[/B] order_id (PK) customer_id (FK) order_date etc. [B]OrderItems[/B] order_item_id (PK} product_id (FK) quantity attributes For the … |
The End.