- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
PHP developer. Co-Founder of SocialRel8.com
- Interests
- PHP, Apache, MySQL, Twilio, REST API's, Javascript, jQuery, CSS, NGINX, Linux, Fedora, CentOS
- PC Specs
- MacBook Pro 8GB, iMac 27inch 8GB, AWS
172 Posted Topics
Re: Just come back from an all you can eat chinese. I'm having a nice cold drink of Lucozade!! yum yum. | |
Re: There are many ways that you can join 2 tables. You can read-up further on joins here: [url]http://en.wikipedia.org/wiki/Join_(SQL[/url]) Regards, Alex | |
Re: for this to work in php you would need to get the page to reload/refresh. personally, if i ever wanted to do something like this i'd use Javascript. I'd more than likely use the Jquery Javascript framework to do it. | |
Re: If you are seeing unwanted line breaks preceded by exclamation marks ("!") in the emails you send with mail(), you may be having the same problem I had: exceeding the maximum line length (998 chars) specified in RFC 2822 ([URL]http://www.faqs.org/rfcs/rfc2822.html[/URL]). You can get around this restriction by using base64 encoding: … | |
Re: A web service should be able to cope with simultaneous users but it's all dependent on how it's written. I suppose if you had a service that counted something then you may get users having different responses. | |
Re: How are you dates being stored in the database? | |
Re: As cereal says you will need to use json_encode and you'll need to loop. Looking at your code, Line 13 may make it difficult to parse in JSON. [CODE]$buf .= $id . '^' . $dept_name . '|';[/CODE] I would use this instead: [CODE] $buf[] = array('id' => $id, 'dept_name' => … | |
Re: Try creating a .htaccess file in the folder you want to allow directory listing for. In that file add in your AuthType, etc - that way the user can click into the folder and when they do they'll then be prompted for the credentials. | |
Re: In your @item.class.php file I would write [CODE] echo $sql; [/CODE] And see what the query actually is. It sounds like there's something missing in the query or it's not vein written correctly. | |
Re: Can you write this question more clearly? It looks like your trying to include a PHP file through the <script> tags... | |
Re: I agree with Ardav. Just incase you're interested. If you ever need to add 30 days on to a time from now I just do; [CODE] $time_now = time(); $days_to_add = 30; $seconds_to_add = 86400 * 30; // There are 86400 seconds per day $future_timestamp = $time_now + $seconds_to_add; [/CODE] … ![]() | |
Re: Are you getting any error messages? Please post. Thanks. Also, on line 45, I usual add in MYSQL_ASSOC just for completeness - may not make a difference but it's good practice. | |
Re: So you have an array with your data? And you just want to create something like the above out of that array - try this: [CODE] $data[] = array('title' => 'Apple', 'desc' => 'green', 'keyword' => 'round, green'); $data[] = array('title' => 'Banana', 'desc' => 'yellow', 'keyword' => 'long, yellow'); … | |
Re: I've just put this query into my MySQL database and it's let me create the table so there doesn't seem to be anything wrong with the query. Maybe you don't have the correct permission's on the database to allow tables to be created. | |
Re: What's the problem with the code? Please don't use this site to host code snippets if there's no question you have - use [url]http://snipplr.com/[/url] | |
Re: Store the URL's in the cookie as an array. Then when you click on the NEXT or PREVIOUS link you can add or increment 1 to the current array position. | |
Re: Its probably something in the CSS code - maybe there's a margin or padding being added in the textfieldRequiredMsg class. Take a look in this file: SpryAssets/SpryValidationTextField.css | |
Re: You could try this code (it will require jQuery) [CODE] $('#click').click(function(){ var range = window.getSelection().getRangeAt(0); var selectionContents = range.extractContents(); var span = document.createElement("span"); span.style.color = "red"; span.appendChild(selectionContents); range.insertNode(span); alert(range); });​ <p>Some text</p> <button id="click">Click</button>​ [/CODE] | |
Re: Why don't you store the images as files on your web server and keep a link to the image in the database? That's alot easier and it minimises the space taken up in the DB - meaning faster searches. | |
Re: What error messages are you getting? Can you post them on here. | |
Re: I don't think it's possible. Once the file is parsed then it's parsed so there would be no point. I don't know what you mean by a footprint.... | |
Re: I prefer storing dates using the time() function. Id then just do a query called [CODE] $today = mktime(00,00,00,date('n', time()), date('j', time()), date('Y', time())); $query = "DELETE FROM datatable WHERE date_time > $today"; $result = mysql_query($query); [/CODE] I find this easiest to use especially when I want to SELECT data … | |
Re: I think you need to explain this problem more clearly... | |
Re: You could use a for or while loop to do this. For Example: [code=php] $pictures = array('beach.png' => 'Image of the Beach', 'mountain.png' => 'Picture of a mountain'); foreach($pictures as $image => $title){ echo '<img src="'.$image.'" /><br/>'.$title.'<br/>Edit | Delete<br/>'; } [/code] Hope this helps | |
Re: There are many ways you could do this. The simplest way could possibly be for you to use sessions. [url]http://uk3.php.net/manual/en/ref.session.php[/url] If you follow that link it gives you some information on what session are and how to use them. An example of how you could implement it would be: [code=php] … | |
![]() | Re: I would use the following code: [code=php] <?php $db = mysql_connect($hostname, $username, $password) or die ("Unable to connect to MySQL"); $sql = "SELECT url, thumb, ref, info FROM others LIMIT 15"; $result = mysql_query($sql); $table_template = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/style/gallery_template.htm'); while ($data = mysql_fetch_assoc($result)) { $mytable = $table_template; foreach ($data as $key => … |
Hi! Does anyone know of a good tutorial for installing Ruby with Php, Apache and MySQL. I have tried InstantRails but i want to install it without using the instant option! Thanks. | |
Re: to get it to go to the german page then you'd use [CODE=php] header('Location: german_page.php'); exit; [/CODE] ![]() | |
Re: My view is that the image is best saved on to the hard drive and a link to the image gets saved into the database. You'll save space in your DB and speed up any queries that are run to find the image. | |
Re: Id write this line of code as [code=php] createthumb($dir1,$dir.'/thumbs/'.$photo1,100,100); [/code] Give that a try. | |
Re: I'm in the process of constructing an application for my work. If you get Hamachi and log on to my network you can take a look. | |
Re: Do you have permissions setup to allow file uploads? | |
Re: rename the variable to something else. Rather than call the Variable $show call it $project_id and then have one for sub menu called $sub_menu. It's much easier to call the variable something meaningfull. ![]() | |
Re: your going to need to have more than one option to input the H and W. Once you have that then make the inputs into an array and then loop through the array. [code=php] $sizes = array('5X4', '3X8', '2X6'); foreach($sizes as $current){ // YOUR MYSQL STUFF HERE } [/code] ![]() | |
Re: Your javascript is requesting a value that isn't there. Why do you need to do this? What benefit would this be? It would surely take more time to type a query, click a button, generate text to create a link then click it to finally get to google! | |
Re: When I started out i used Dreamweaver but there are plenty of other IDE's you can use such as Komodo. I setup with Apache HTTP Server, MySQL 5, PHP all on my Win XP. An easier option may be Wamp Server. Id recommend Apache as you can learn about it's … | |
Re: You have correctly set the UL to hidden/visible accordingly? | |
Re: This should be posted in the Javascript category. However, you're javascript is requesting the Value of the hidden text box yet you have no value attribute... this will cause a java error. You should use a return value to ensure that the form doesnt get sumbitted through to google. There … | |
Re: Try putting 32M instead of 32MB in your php.ini file. I had a similar issue and that's how I resolved it. | |
Re: You can also use [code=php] ini_set("register_globals", "off"); [/code] rather than use .htaccess or if you can't amend the php.ini file | |
I'm new to ASP.NET so i'm probably asking a very stupid question so apologies!! I have 4 pages in my site so far. I want all of them to display the same page title. E.g My Website Title > A Small Description of the page Do i need to create … | |
Re: Use php's but n date function [code=php] <?php echo date('d F Y H:i:s', time()); ?> [/code] | |
Re: Do you have any download accelerators on your PC? I don't think that this post would be for the PHP category anyway. Sorry Alex | |
Re: This post may be better in the Web Design forum as it's not a PHP issue. [url]http://www.daniweb.com/forums/forum15.html[/url] | |
Re: by this I'm assuming you mean the regular expression? I'm assuming your validating clientside with javascript and further validation server-side incase javascript is disabled. What characters can the user input? Can they use as many spaces as neccesary? | |
Re: I would go for Notepad++ [url]http://notepad-plus.sourceforge.net/uk/site.htm[/url] When you use Dreamweaver to write your php code, in my opinion, it looks very messy and some parts are just unnecesary. | |
Re: It all depends where it's getting cached. It could be through a web proxy cache like Squid. Unless you specify an expiration date when the feed is retrieved the the proxy cache / browser will fetch the cached version. How are you generating the feed? | |
Re: The user may be specified in a cookie or session. Try deleting temp internet files, history, etc close the browser and try again. | |
Re: Use this code: [code=javascript] <script type="text/javascript">//<![CDATA[ document.write('<a href="<?php echo $product_flypage ?>">'); document.write( '<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" target="_self" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?></a>' ); //]]> </script> [/code] |
The End.