- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 3
70 Posted Topics
Re: This looks very useful, and I'd love to play around with it. However, although the script says to download the class from fpdf.org, when you get there the only downloads offered are manuals in various languages and ports to any language EXCEPT php. | |
Re: you want greenwich? then the test is `if(!isset($_REQUEST['location']) || ($_REQUEST['location']) != "Greenwich")` atm, it will reject if empty, or if equal to Greenwich. | |
Re: I used to use CSE, but as that's windoze only, now I use Gedit, which isn't bad at all, once you've added the optional plugins package and the regular expression search plugin ![]() | |
Re: date("H:i:s") will give the date in 24 hour format. ![]() | |
Re: Android has a much bigger share of the market than apple, so if your developing, may be worth looking at first. otoh ios is more standard across phones. Android updates aren't all applied by all vendors. | |
Re: The problem is on line 151, which is missing closing quote and trailing semicolon. It should probably read: $string .= "<form method='get' action='".$GLOBALS['bloginfo_url']."/' name='searchBox' id='searchBox'>"; | |
Re: $s=mysql_query("SELECT * FROM 'table' WHERE address LIKE '%new%'"); $numrows - mysql_num_rows($s); for ($i=0;$i<$numrows;$i++) { $temp=mysql_fetch_array($s); extract ($temp); } | |
Re: the easiest way is to use wordpress. you need a domain unless you use the wordpress.com site. There are lots of tutorials and stuff online, even on YouTube. | |
Re: It's not a big deal around $7 for a dot com from godaddy - that's per year, of course. Then hosting - I would not host at godaddy, as their system has weirdities. Try hostmonster, they are cheap, not too bad, and their system is pretty standard so if you … | |
Re: This is so basic, I have to assume you're trying to get us to do your homework for you. | |
Re: Consider replacing the snippet for previous and next pages with: if ($page > $start){ echo "<a href=\"?page={$prev}\">Previous page</a> "; } if ($page < $last){ echo "<a href=\"?page={$next}\">Next page</a>"; } Then you'll get one or other, or both, depending on where you are in relation to the table as a whole. … | |
Re: You've made life difficult for yourself by using the same field name for fields that can contain different values. I am referring to **file_name** and **file**. If you put a prefix on these, so you can tell which table it's coming from, you could then just select the whole lot … ![]() | |
Re: It's also unusual (never happens sfaik) to get an error message without information as to the line which is causing the problem. Then you just go look at it. If that line is ok, check back to see if you've forgotten to close quotes or something beforehand. I assume you … | |
Re: It appears that $result contains FALSE, so you should check whether the previous mysql_query is picking anything up. I find the easiest way to do this is to paste the query into phpMyadmin | |
Re: It's true that if you're setting up a sale, you need to use Firefox. Bit of a pain, but there it is. No idea who their web designer is. I'd be glad to replace him or her. lol. | |
Re: You should be able to do this easily with a small php script. Make sure that the shebang line at the top is correct (ask your host for the path to php), and that the file containing the code is set as executable. These are problems I've had in the … | |
Re: If you're picking up the crop info in a browser-side script, you will have to use a browser side script to perform the crop, as the server side stuff has already executed. | |
Re: Not entirely sure what you're trying to do, but how about this: $query2 = "select * from Products where CategoryID = '$CategoryName' "; $result = mysql_query($query2) or die(mysql_error()); if ($result && mysql_num_rows($result)>0) { while($row = mysql_fetch_assoc($result)){ $array[] = $row; } } But why you want to transfer the data from … | |
Re: if you have an issue with a wp plugin, it's usual to contact the plugin author. Otherwise, every time you update the plugin, any fix you've done yourself will be overwritten. If you look in the list of plugins in your browser, you will find the author listed, along with … | |
Re: I've never had a problem with mod_rewrite on many different shared hosting servers, on Plesk, Cpanel and Dreamhost's quirky control panel. Always linux, though. The easiest way to do this is with .htaccess. However, this is hard to get your head round at first. Once you've got it, it's easy. … | |
Re: You need to give your code unless you're using str_replace. If you are using str_replace, since meta tags are above everything else, you can make use of the optional count parameter as per manual: mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] ) | |
Re: You would need to embed the flash file on a page, then have a snippet of code on the page that increments your counter, wherever you are storing that information. If you tell us where you're storing this (flat file? database file? which database?) it makes it possible to give … | |
Re: Check that you've specified the correct size, and that this matches the size of the video you have. If this looks ok, please supply the code you've used to embed the video. | |
Has anyone any idea how I stop chrome from displaying perfectly valid links with a line through them. It looks as if they are broken, but if you click on them, they are fine. I've tried specifying [CODE]text-decoration: none[/CODE], but it still happens. I don't even use this attribute (line-through) … | |
Re: [URL="http://www.htmlgoodies.com/primers/html/"]www.htmlgoodies.com[/URL] is dead simple. Good place to start imvho | |
Re: did you upload the images for the logo and other missing stuff? They have to be uploaded as well. And if they were in a subdirectory (like "images") then you have to create that folder on the server and make sure you upload them into it. The same thing applies … | |
Re: To center an entire web page you need to have this in the css: [CODE]body { position: relative; margin: 0,auto; ...whatever else you have here... }[/CODE] | |
Re: Those are not the same page. But I can see the banner just poking off the top of the ie one. Or is it behind the navigation? You could trying setting the z-index to some high number on the banner to see which it is. Alternatively try setting specific different … | |
Re: .htaccess is supposed to be able to redirect without rewriting the url in the address bar, but I haven't been able to get it to work for probably 5 years. It used to work ok when I first started using it, but no longer. Might be a change in Apache... | |
Re: Back in the day (dos and cp/m) you could send a file direct to the printer by "saving" it to :prn - so if the problem is that php wants always to save a created pdf as a file, then possibly you could redirect the output to the screen in … | |
Re: I also recommend that you download the php manual. The layout of the index page keeps being changed, which is confusing, but if you have a copy of your own, you will get familiar with where to find stuff. ![]() | |
Re: Dunno about best. Cheapest are google's (which I don't like much) and paypal. Most gateways will give you the code you need. | |
Re: I use firefox. I tried swapping to Chrome, but when I found that, in addition to not having an ftp addon, it had issues with PhpMyAdmin as well, plus various other little problems, I soon went back to the fox. The latest version seems to have speeded up a bit, … | |
Re: Seemingly, it's NOT processing the php, then. Perhaps for test purposes you could change the file extension and see if this changes the result. | |
Re: If you really want to get good with regular expressions I can recommend this book: Mastering Regular Expressions by Jeffrey E.F. Friedl, published by O'Reilly & Associates. This book is some 300 pages long! It is very detailed and covers almost any flavor of regex you are likely to come … | |
Re: If you want to use php for this, it would be a lot easier if the school has an api you can tap into. Did you ask about this? | |
Re: The general view seems to be that placing a unique article with Ezine Articles, then spinning it and submitting to the other article directories is a good move in SEO. I know for sure that Ezine Articles has helped to drive rank in the past. I am pretty sure it … | |
Re: I looked up codeigniter and it claims to be a "Web Application Framework that helps you write PHP programs". But from your query, it seems it's not helping you at all, since what you want to do can be done in php without any difficulty. My advice is to use … ![]() | |
Re: If you're trying to assign a value that is one more than the last record to which you assigned a value, then the best way to do this is to store the incrementing value in a global variable such as $recordnumber, and assign it to $parent_menu[$row->parentId]['ecount']. [CODE]$recordnumber++; $parent_menu[$row->parentId]['ecount']=$recordnumber;[/CODE] don't forget … | |
Re: This is a way to do it, but I would amend it to [CODE]<input type="checkbox" id="chb[]" name="chb[]" value="<?php echo $i++;?>" <?php if ($i=1){ echo "checked=\"checked\" ";)/>[/CODE] | |
Re: What OS are you using? setup differs on linux, windoze and so on. Look up "installing LAMP on <your OS>" in google and you should find complete instructions. I have to say that trying to do it on windoze is a bit of a nightmare as i recall | |
Re: No. The syntax of the mail() statement looks fine. The message you're getting indicates that smtp isn't set up or not working. You should contact your host about this. | |
Re: I can't see much obviously wrong with the mysql query, assuming that your values aren't in fact out of sync with your column names. One thing that looks a little strange is that you've missed $ off the variable names $password and $password2 in the values list. Since you've obfuscated … | |
Re: Is there anything in the error logs or are you getting any error messages on screen? | |
Re: OK. For starters, there's no point in storing your POST variable IDnum to the variable $idnum if you're not going to use it. So line 7 should read: [CODE]$insertSql = "SELECT * FROM studenttbl WHERE StudentID = '$idnum'";[/CODE] On line 11, you should be checking the number of rows in … | |
Re: First generate a key. Since you want this to be unique, you can base it on, say the username and the current Universal date, encrypted with your fave encryption method. Store it in a "to be confirmed" list along with the information about user name, password, email, so on. Then … | |
Re: $_SERVER['PHP_SELF'] will surely just end up on the current page, so why not just use # and use hidden fields to transfer any data you need? | |
Re: The error means unexpected termination of a string, in case you were unclear about this. It often comes up because a line before the one listed has a problem, if that line doesn't end in a ; or if you have unmatched quotes etc on that line. It can take … | |
Re: php for today in Mysql format is date("Y-m-d"); mysql for today is CURRENT_DATE | |
Re: I'm not entirely sure what you mean, but if you want to measure the number of seconds between 2 events on a page in php, you'll have to load the page in between, because php is serverside, so it only fires once per page, basically. I can see you're using … |
The End.