Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
7
Posts with Upvotes
6
Upvoting Members
7
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
0 Endorsements
Ranked #686
~67.4K People Reached
About Me

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
Favorite Tags

172 Posted Topics

Member Avatar for Duki

Just come back from an all you can eat chinese. I'm having a nice cold drink of Lucozade!! yum yum.

Member Avatar for Dani
22
17K
Member Avatar for cork

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

Member Avatar for Rennie_1
1
10K
Member Avatar for karin21

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.

Member Avatar for melodangdang
0
730
Member Avatar for nathanpacker

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: …

Member Avatar for pocopico
0
1K
Member Avatar for riahc3

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.

Member Avatar for sandrajustin
0
182
Member Avatar for kalaban
Member Avatar for jonatec

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' => …

Member Avatar for jonatec
0
164
Member Avatar for bsimms86

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.

Member Avatar for bsimms86
0
249
Member Avatar for emidevil

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.

Member Avatar for cossay
0
575
Member Avatar for hallianonline

Can you write this question more clearly? It looks like your trying to include a PHP file through the <script> tags...

Member Avatar for vaultdweller123
0
195
Member Avatar for showman13

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] …

Member Avatar for diafol
0
575
Member Avatar for cr7489

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.

Member Avatar for cr7489
0
209
Member Avatar for Danny159

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'); …

Member Avatar for phper
0
89
Member Avatar for Susmita_Sikder

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.

Member Avatar for Susmita_Sikder
0
120
Member Avatar for cskinittest

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]

Member Avatar for baig772
0
148
Member Avatar for muralibobby2015

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.

Member Avatar for phper
0
85
Member Avatar for martin11ph

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

Member Avatar for martin11ph
0
222
Member Avatar for softDeveloper

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]

Member Avatar for softDeveloper
0
143
Member Avatar for John23

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.

Member Avatar for veedeoo
0
154
Member Avatar for Tess James
Member Avatar for greensign
0
222
Member Avatar for ZaphodQB

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....

Member Avatar for robbz
0
391
Member Avatar for drewpark88

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 …

Member Avatar for drewpark88
0
1K
Member Avatar for leemyers
Member Avatar for phper
0
81
Member Avatar for CFROG

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

Member Avatar for ijn1
0
284
Member Avatar for oneillj

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] …

Member Avatar for gromikov
0
742
Member Avatar for Borderline

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 => …

Member Avatar for yashmistrey
0
457
Member Avatar for phper

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.

Member Avatar for tiger86
0
309
Member Avatar for perosf

to get it to go to the german page then you'd use [CODE=php] header('Location: german_page.php'); exit; [/CODE]

Member Avatar for diafol
1
1K
Member Avatar for waleed66

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.

Member Avatar for sylstain
0
90
Member Avatar for sarithak

Id write this line of code as [code=php] createthumb($dir1,$dir.'/thumbs/'.$photo1,100,100); [/code] Give that a try.

Member Avatar for sarithak
0
152
Member Avatar for jbennet

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.

Member Avatar for Stefano Mtangoo
0
834
Member Avatar for guruvarman
Member Avatar for stevehart808

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.

Member Avatar for diafol
-1
81
Member Avatar for emhmk1

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]

Member Avatar for diafol
1
145
Member Avatar for j_limboo

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!

Member Avatar for j_limboo
0
124
Member Avatar for krisfr

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 …

Member Avatar for almostbob
0
146
Member Avatar for Hangfire
Member Avatar for j_limboo

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 …

Member Avatar for phper
0
117
Member Avatar for POPUP

Try putting 32M instead of 32MB in your php.ini file. I had a similar issue and that's how I resolved it.

Member Avatar for phper
0
185
Member Avatar for NoID

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

Member Avatar for cwarn23
0
141
Member Avatar for phper

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 …

Member Avatar for riyas_26
0
290
Member Avatar for Mahesh_J

Use php's but n date function [code=php] <?php echo date('d F Y H:i:s', time()); ?> [/code]

Member Avatar for jbennet
0
98
Member Avatar for jblim

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

Member Avatar for Atli
0
181
Member Avatar for Stefano Mtangoo

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]

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for MSK 7

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?

Member Avatar for phper
0
80
Member Avatar for shasha821110

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.

Member Avatar for Jen0608
0
223
Member Avatar for PinoyDev
Member Avatar for dragonflyuk

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?

Member Avatar for phper
0
68
Member Avatar for tksrules

The user may be specified in a cookie or session. Try deleting temp internet files, history, etc close the browser and try again.

Member Avatar for phper
0
104
Member Avatar for esedic

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]

Member Avatar for phper
0
103

The End.