Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
25
Posts with Upvotes
22
Upvoting Members
18
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
9 Commented Posts
1 Endorsement
Ranked #857
Ranked #377
~42.8K People Reached
About Me

Working as a Consultant for IT. Do projects in PHP for fun. Just bought an Android based phone and learning the Android SDK.

Interests
Collecting Paper Napkins, Computer Gaming, Reading Novels.
PC Specs
Windows Vista
Favorite Forums
Favorite Tags
Member Avatar for jrotunda85

Please let me know if you have already solved the problem. If I understand your problem correctly, you have a list of Cigars which you want people to rate. When a user clicks on a cigar name, he is taken to another page to rate the cigar on different parameters. …

Member Avatar for Vishwajeet_2
0
3K
Member Avatar for baldford

Ok... I'm going to try and help you out even though I'm not sure if my answer is not specific enough for you. I tried out your code and it worked fine. There is one thing I would like you to check. Have you added in the [iCODE]enctype="multipart/form-data"[/iCODE] in your …

Member Avatar for Baldford_1
0
264
Member Avatar for zerey02

This project is not difficult to do. Here are a few tips to get you started. 1. Start out by creating a table with the unique_id, the question, the four options, the question type (Drop Down or MCQ) and the correct answer. 2. Decide on whether the questions will be …

Member Avatar for krishnadaspc
0
178
Member Avatar for jacob21

The SMS API should normally allow sending to multiple recipients by using a comma(,) between the recipient numbers e.g., [CODE]http://www.abulksms.com/pushsms.php?...=your_password&sender=mysenderid&cdmasender=mycdmasenderid&to=[COLOR="red"]myrecipient1,myrecipent2,myrecipient3[/COLOR]&message=Hello [/CODE] If not then you would probably need to use a while loop to send the messages individually. However, try and see if the SMS API has a POST method. …

Member Avatar for bokerinni
0
150
Member Avatar for kakaliki
Member Avatar for mhaselip

Just windering if you got this problem fixed... If not. I'll check it. Although at first glance, I do see a problem with the code at the statement [iCODE]if ($num_rows = 0)[/iCODE] This should be [iCODE]if ($num_rows == 0)[/iCODE] You will have to use a double == to compare rather …

Member Avatar for mhaselip
0
353
Member Avatar for Smudly

Do you have a system for users to login. That way you can make sure that only one user can vote once for a post, just like what[B] vibhadevit [/B]says.In addition to the user_id and post_id, also put in the +1 or -1 which you can then use to calculate …

Member Avatar for coolest_987
0
275
Member Avatar for metalix

Don't you need a [iCODE]$sort=$_GET['sort'];[/iCODE] somewhere. If that statement of code is not included $sort will never be set before the [iCODE]if (!isset($sort))[/iCODE] statement and the table will only sort based on the default value.

Member Avatar for Rogueit
0
853
Member Avatar for jrotunda85

In answer to your questions 1. If you are using one sql statement to make the update then the efficiency should be the same no matter how many fields are getting updated. It all depends on the number of sql calls you are making to the database. If you are …

Member Avatar for diafol
0
167
Member Avatar for oree

That would depend on if you are using the same folder to store all your uploaded files in. If the path is going to remain permanent then, it would be sufficient to store just the filename in the DB. If the folders are different then you would need to store …

Member Avatar for sudeepjd
0
131
Member Avatar for nyler01

I'm pretty sure you can find this code on the internet. The purpose of the DaniWeb Forum is to help people who are stuck with a programming problem and are not able to solve it. Try solving this problem yourself and if you get stuck, we are here to help …

Member Avatar for Hummdis
0
194
Member Avatar for FBG

I suppose you have some kind of a database where you are storing your articles or are you storing your articles as html files in folders? The answer to your question depends on the structure you are using to arrange your articles. For e.g, if you are using a database …

Member Avatar for FBG
0
108
Member Avatar for BHARANIMMAJ

Please note, that we do not just "[B]Give the solution[/B]" here. We try and help you find it for yourself. For what you are trying to do, are you using 2 different pages to show the different members, or are you using the same page with ID increments to show …

Member Avatar for sudeepjd
0
140
Member Avatar for lukemaister

The URL's used are called search engine friendly urls and are made using a redirect from the .htaccess file. Check out [URL="http://www.edinteractive.co.uk/article/?id=48"]http://www.edinteractive.co.uk/article/?id=48[/URL] for more information.

Member Avatar for sudeepjd
0
102
Member Avatar for 99k

You could also use AutoIt's IE UDF to do it as well. However, this is a PHP forum. Are you looking for a PHP specific method?

Member Avatar for diafol
0
116
Member Avatar for hishamaborob

file_get_contents can be used to get the contents of a url into a PHP variable. Check out [URL="http://www.howtogeek.com/howto/programming/php-get-the-contents-of-a-web-page-rss-feed-or-xml-file-into-a-string-variable/"]http://www.howtogeek.com/howto/programming/php-get-the-contents-of-a-web-page-rss-feed-or-xml-file-into-a-string-variable/[/URL] for more details.

Member Avatar for hishamaborob
0
143
Member Avatar for d3rck

Instead of using buttons, I suggest you use links, it will make your work simpler. Take a look at the code below... [CODE]echo "<tr>"; echo "<td>" . $whilesitename . "</td>"; echo "<td>" . $whilesiteaddress . "</td>"; echo "<td>" . $whilerateyes . "</td>"; echo "<td>" . $whilerateno . "</td>"; echo "<td>" …

Member Avatar for d3rck
0
226
Member Avatar for rohit b k

I really like chrishea's answer. Try out the problem yourself. I know the answer to this question as soon as I saw the problem since I have seen this problem before and solved it myself. That is how you develop a good head for logic and programming skills, not by …

Member Avatar for sudeepjd
0
96
Member Avatar for tomjrjones

Get the user to type the name of the file in a text box and get that into the $myFile variable using [iCODE]$myFile=$_GET['[COLOR="Red"]<textbox_name>[/COLOR]'][/iCODE]. Check if the file exists on the server and delete it. [CODE]if (file_exists("users/".$myFile)){ unlink("users/".$myFile); } else { echo "The file does not exists"; }[/CODE] However, it is …

Member Avatar for 84hd0ns
0
130
Member Avatar for Lioshenka

The <iframe> is not a form element so you will not be able to transfer data from an Iframe through a $_POST or $_GET via the url. You will most probably have to use a <textarea> which is a form element in order to transfer data. If you have to …

Member Avatar for Lioshenka
0
165
Member Avatar for ankit.pandey3

Instead of creating a search engine, why don't you use [URL="http://www.google.com/cse/"]Google's Custom Site Search[/URL]. It's configurable and its free.

Member Avatar for ankit.pandey3
0
136
Member Avatar for ebanbury

Do you have to make your code so complex? From the code, I see that the output of the page would be whatever is in the [B]prop_saletype[/B] field of the [B]first row[/B] of your [B]property_details[/B] table. Please let me know what output you intend to see and I should be …

Member Avatar for sudeepjd
0
171
Member Avatar for Prerequisite

Checkboxes works like this. A Checkbox, is assigned a [B]name[/B] and a [B]value[/B]. When you send checkbox data to a php page, the url would show [B]name=value[/B] as part of the url. For a checkbox, the name is required while the value is optional. Let's look at this in cases. …

Member Avatar for Prerequisite
0
132
Member Avatar for puvi

Just after the while loop i.e., Line 13 in your previous post, add the following statement [CODE]mysql_data_seek ($resComp, 0);[/CODE] It should fix the problem. What I believe is happening, is when you make a call to get the value from the $resComp, the internal pointer moves forward, so the next …

Member Avatar for sudeepjd
0
115
Member Avatar for new_developer

Instead of opening the image on another page, I suggest you use a Lightbox. Check out [URL="http://www.huddletogether.com/projects/lightbox/"]http://www.huddletogether.com/projects/lightbox/[/URL]. It looks much better and avoids those pop-up blockers. If you still want to know how to open a new window with the larger image, post back and I'll show you. However, till …

Member Avatar for sudeepjd
0
78
Member Avatar for puvi

A standard way to do it would be [CODE]while ($empname=mysql_fetch_array($result)){ echo $empname['emp_name']; }[/CODE] or if you want it as an array you could always [CODE] $empArray = array(); while ($empname=mysql_fetch_array($result)){ $empArray[]=$empname['empname']; }[/CODE]

Member Avatar for puvi
0
88
Member Avatar for slrobinson1983

Try [CODE]@mkdir("C:\\wamp\\www\\uma\\member media\\member tracks\\".$memberid) or die(mysql_error());[/CODE] [B]On Edit:[/B] Javvy's right... You do need the double backslash. This is because a single backslash(\) is an escape character.

Member Avatar for Javvy
0
76
Member Avatar for rohit b k

Isn't it list way easier to use a TIMESTAMP Datatype and then use mySQL's ON UPDATE CURRENT_TIMESTAMP clause. [B]I'm pretty sure this could have been got from google. [/B]

Member Avatar for sudeepjd
0
93
Member Avatar for AMADH

That's because you are using a singe "=" operator which is an assign operator rather than a double "==" operator which is an equivalent operator. Change your [B]if statements[/B] to [CODE]if($row['service']=='AM' && $row['award']=='Winner') {[/CODE] and [CODE]if($row['service']=='AM' && $row['award']=='Notables' || $row['award']=='Honorable Mentions' ) {[/CODE] then, it should work fine.

Member Avatar for sudeepjd
0
193
Member Avatar for abhi10kumar

Your question is not very clear. Could you please clarify if you want to get the data into a JavaScript variable or a PHP variable. Thanks.

Member Avatar for abhi10kumar
0
167