Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
88% Quality Score
Upvotes Received
14
Posts with Upvotes
14
Upvoting Members
12
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
7 Commented Posts
~35.4K People Reached
Favorite Tags

103 Posted Topics

Member Avatar for mithesh

Please do not hijack old threads. But as as answer to your problem, do not use + use '.' (dot). For example, [CODE] echo "<script>alert('text".$varName."')</script>" //OR echo "<script>alert('text {$varName} ')</script>" [/CODE] If you have further doubts please start a new thread.

Member Avatar for prabhjots226
0
5K
Member Avatar for Namibnat

[QUOTE=Namibnat;1025305]Okay, I am still going around in circles and not getting it to work. Let me put my actual code rather than trying to make up examples. This is for a blog, which I actually had working fine (well, this part of it), but I am building the whole thing …

Member Avatar for guruparthi
0
727
Member Avatar for cdes1145
Member Avatar for guruparthi
0
663
Member Avatar for davefitze

1. Check if topic_id is set. Execute the query only if it is set. 2. [CODE]$topic_info = mysql_fetch_array($verify_topic_res) [line 29][/CODE] Where did $verify_topic_res come from? Hope this helps.

Member Avatar for Sibzsolutions
0
282
Member Avatar for abelingaw

"database" is a reserved word in mysql. Which die statement is it printing? Cannot connect or the Cannot Find Database?

Member Avatar for abelingaw
0
127
Member Avatar for jonnyboy12

I don't think your code is wrong. It works here and it should work. Try these alternatives, just in case. [code]echo "<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: {$someVariable}px; width: 225px; '></div>"; //OR echo "<div style='background-image: url(boxshadow2small.jpg);border:1px solid #333; text-align:center; height: ".$someVariable."px; width: 225px; '></div>"; [/code]

Member Avatar for jonnyboy12
0
122
Member Avatar for ptara1
Member Avatar for eduardc

Hi, "Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given" This could mean that $result (the first parameter passed) is boolean. Just to check this, could you echo $result right before you start the while loop? Also, I suppose you have made changes to your original code in insert.php. …

Member Avatar for karthik_ppts
0
584
Member Avatar for perohijo

Hi, Your problem [B]maybe [/B]because there is no space between function and the function name in the following line. [CODE]functionvalidateWord(.. //this must be function validateWord(... [/CODE] Also, do use CODE tags to wrap your code. :) Hope this solved the issue.

Member Avatar for perohijo
0
157
Member Avatar for pallen

Check [URL="http://php.net/manual/en/book.curl.php"]curl[/URL]. You could use it to check if the url is online. Edit: @ardav: didn't see your reply. sorry :)

Member Avatar for diafol
0
158
Member Avatar for Bar2aYunie

Yunie, You might benefit from following a tutorial on how to update database records. This one [URL="http://www.tizag.com/mysqlTutorial/mysqlupdate.php"]here[/URL] is a good tutorial. I believe that going through this tutorial would give you the basic idea on how to achieve your goal. If you got stuck en route, you could always ask …

Member Avatar for kekkaishi
0
101
Member Avatar for newbi11

Hi, [ICODE].click()[/ICODE] is for mouse click in jQuery. When you are binding it it's called like this. [ICODE].bind('click')[/ICODE] You might also like to check jQuery's toggle() function. Hope this was of help.

Member Avatar for kekkaishi
0
220
Member Avatar for chudapati09

Hi, Check KeyListener interface. A tutorial could be found [URL="http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html"]here[/URL] Hope this helps.

Member Avatar for kekkaishi
0
121
Member Avatar for qazplm114477

You could look for any number of characters ([ICODE][a-z0-9]*[/ICODE]) between '[' and ']' in a preg_match_all. If the string within the brackets are always 'str' and then a number, you could also search for [ICODE]str[1-9][/ICODE] in a preg_match_all. You could also use explode if you first replace one of the …

Member Avatar for kekkaishi
0
108
Member Avatar for ayesha789
Member Avatar for Newskin01

I maybe wrong but the problem sounds like as if the questioner wants to shuffle the array. If that is the case, [ICODE]Collections.shuffle(Arrays.asList(s))[/ICODE], I reckon, could be easier. Not that the above code won't work. Just thought I'd add this in in case this may be of any help. Cheers.

Member Avatar for DarkLightning7
0
126
Member Avatar for error.exe.er

If you want 8 numbers, your loop must continue while count is [B]less[/B] than 8. In your code it is greater than 8. If you want to print UP TO 8, then you do not necessarily need a count. You could just program it to loop until value of [ICODE]b …

Member Avatar for error.exe.er
0
100
Member Avatar for jacob21

Your error could be because your code is missing single quotes around [ICODE]=".$_REQUEST['company']."";[/ICODE]. Try changing it to [ICODE]='".$_REQUEST['company']."'";[/ICODE]. If this is not the error, please post the error message here for it would be easier to identify what is exactly the problem. Hope this was of help.

Member Avatar for kekkaishi
0
78
Member Avatar for cnlengr

Maybe this would help. Declare array [CODE] int[] someArray; //Ask user for a size int size = size_you_got_from_user; //Allocate array size someArray = new int[size]; [/CODE] Size could be the number of elements user wants to enter. Having done that you could loop 'size' times, every time getting the value …

Member Avatar for cnlengr
0
116
Member Avatar for debasishgang7

[B]Maybe[/B] the file (xxs.php) failed to include in comment.php. (Warnings might not be displayed if you have disabled warnings) Could you perhaps check by adding an 'echo' at the top of the xxs.php file, before you start your function.

Member Avatar for debasishgang7
0
1K
Member Avatar for dornaled

[URL="http://www.w3schools.com/html/html_elements.asp"]http://www.w3schools.com/html/html_elements.asp[/URL]

Member Avatar for edith135
0
88
Member Avatar for professor123

It is best if you ask a networking question on the networking forum. But as per my limited networking knowledge I'd say it is possible. You'll need to connect the two using the CO cable and give them both IP addresses of the same subnet. Eg: 192.168.2.x (x different in …

Member Avatar for professor123
0
105
Member Avatar for Limiter

Inside Bookshelf you could have a method that returns the 'shelf' array. If you merely want to print the elements of 'shelf' then you could override toString method in Bookshelf. That way when you need to print the elements, you would only need to call toString method after creating an …

Member Avatar for Limiter
0
2K
Member Avatar for rom.

Refer to this to get an idea. Join [B]workflow [/B]and [B]content [/B]on [B]workflow[/B].content_id = [B]content[/B].id Perform a normal 'select all' statement on the resulting table.

Member Avatar for diafol
0
120
Member Avatar for virus.exe
Member Avatar for sumprit

Check [ICODE]Collections.max[/ICODE] Sample usage: [CODE] ArrayList<Integer> al = new ArrayList<Integer>(); //add values Object o = Collections.max(al); System.out.print("Max: " + o ); [/CODE] Hope this helps

Member Avatar for sumprit
0
191
Member Avatar for Sorcher

you have to specify the full file name inside include. If header.php is in the same directory as your other files then [ICODE]include 'header.php'[/ICODE]. Otherwise, [ICODE]include 'your file path/header.php'[/ICODE]

Member Avatar for diafol
0
312
Member Avatar for musfirah

Make sure you properly mark the closing of a statement using semi-colons. In your code, for instance, the following statement needs closing. [CODE] $msgText="TISSUE CULTURE PARAMETER EXCEED!!!"; //add semi colon if this is the end of the statement. [/CODE] If the following lines are a part of this statement, then …

Member Avatar for anilashanbhag
0
2K
Member Avatar for kokfui

echo it inside the while loop. Now that it is outside, the $name variable will hold the last name. Hope you understood and hope this was of help.

Member Avatar for anilashanbhag
0
115
Member Avatar for sureronald

I am no expert and this might not be the answer you are looking for. But, I thought I'd share this knowledge. To my knowledge, line ending convention may be different in different OS platforms. [ICODE]auto_detect_line_endings[/ICODE] allows you to check which convention the data in the file is using when …

Member Avatar for sureronald
0
181
Member Avatar for devinodaniel

I am no expert in jQuery but I can suggest some changes that would enable you to achieve what you are trying. 1. change all your IDs into classes (although it would work with IDs, if you are following W3C standard you are not allowed to have more than one …

Member Avatar for devinodaniel
0
117
Member Avatar for Taimoor Rana

Your program runs just like Vernon described. You are using Netbeans IDE and probably you think that it is not doing anything because the output window does not show anything. That is because your output is infinitely long. Try pressing the 'stop building' button on the left of the output …

Member Avatar for Taimoor Rana
0
1K
Member Avatar for LloydFarrell

Use a preg_split to split the string from '-' character. preg_split returns an array and at the first index would be 'id' and the second index would hold the 'quantity'

Member Avatar for LloydFarrell
0
102
Member Avatar for zeeshan_kust
Member Avatar for Sorcher

Have you tried [URL="http://php.net/manual/en/function.date.php"]date [/URL]function? Some information on the functions you've tried with: getdate function returns an array and I do not think sql's date format would accept it. strftime function, to my knowledge, has compatibility issues and it requires you to set the locales. strtotime gives you a timestamp.

Member Avatar for tiggsy
0
151
Member Avatar for sumprit

The string that you are trying to cast into an integer must be an integer. Eg: [CODE]String value = "2"; int intFromValue = Integer.parseInt(value);[/CODE] Hope this helps.

Member Avatar for sumprit
0
143
Member Avatar for RoyalElite96

Escape forward slash. ..[ICODE]*)\[\/\]/s', '<div>\\1</div>', $string);[/ICODE] Hope this would help you to carry on.

Member Avatar for kekkaishi
0
110
Member Avatar for bharath54321

Check [URL="http://download.oracle.com/javase/tutorial/uiswing/events/mouselistener.html"]MouseListener[/URL] interface. Counting the number of clicks is one way to go about it. Hope this helps.

Member Avatar for mKorbel
0
130
Member Avatar for jrotunda85

@RisTar: md5 is one way encryption (hashing). Decrypting it is close to impossible. @Joel: How about storing the information in a session variable? In #3 you could check if the variable is set, and if it is, execute db query and reset it.

Member Avatar for jrotunda85
0
1K
Member Avatar for jrotunda85

How about joining all the tables together using UNION and renaming columns using AS keyword so that you could identify from which table which result is from. EDIT: link to [URL="http://dev.mysql.com/doc/refman/5.0/en/union.html"]MySQL UNION[/URL]

Member Avatar for jrotunda85
0
208
Member Avatar for ofir0803
Member Avatar for PinoyDev

I suggest you read this thoroughly. [URL="http://www.google.com/support/webmasters/bin/answer.py?answer=35291"]Search Engine Optimization (SEO)[/URL]

Member Avatar for PinoyDev
0
320
Member Avatar for rmerry

Is Date covered in single quotes? If so it should not be. [CODE] $query="SELECT JourneyID FROM Journey WHERE 'Date' //no single quotes [/CODE] However, . date("Y-m-d", $searchDate) should be covered in single quotes. i. e. [CODE] $query="SELECT JourneyID FROM Journey WHERE `Date` = '" . date("Y-m-d", $searchDate)."'"; [/CODE] Hope this …

Member Avatar for rmerry
0
171
Member Avatar for sariberri

Maybe this will help you. A long/long is long. long/int is long. double/int is double. double/long is double. long/double is double ... and so on. Apply this to line 16 of your code. Hope this helps.

Member Avatar for sariberri
0
218
Member Avatar for prithivi

Maybe, [U][COLOR="Green"]foreach[/COLOR][/U] part_no get qnty and weeky....

Member Avatar for prithivi
0
117
Member Avatar for alexia_net

Have a look at this. [URL="http://www.php.net/manual/en/ref.network.php"]PHP network functions[/URL]

Member Avatar for alexia_net
0
84
Member Avatar for joban.ali

line 11 and line 13: you are doing comparison so there should be double equal operators. [CODE]else if ($_SESSION['type']== 1){ //single = means you are assigning [/CODE] Apart from that the code looks ok. Hope this helps.

Member Avatar for kekkaishi
0
208
Member Avatar for supriyabirje

You should probably ask this in the [URL="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117"]JavaScript/DHTML/AJAX[/URL] forum.

Member Avatar for diafol
0
222
Member Avatar for newbieha
Re: List

Either define ArrayList list globally or make printHand accept it as a parameter.

Member Avatar for sourabh17
0
82
Member Avatar for hawx

You are posting the input values so you have to use $_POST[name of the input field]. i.e. [CODE] //in your form <input name="mobile" type="text" id="mobile" value="<?=$mobile_no?>" //in your php script, to get the value from this input field $value = $_POST['mobile']; //$_POST['mobile'] because <input name="mobile" ..>[/CODE] Also, you need to …

Member Avatar for TechySafi
0
172

The End.