Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
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
~34.5K People Reached
Favorite Tags
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
716
Member Avatar for cdes1145
Member Avatar for guruparthi
0
658
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
280
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
123
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
119
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
576
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
156
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
153
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
98
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
218
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
119
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
105
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
125
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
97
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
73
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
112
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
86
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
101
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
116
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
188
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
307
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
110
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
180