- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 14
- Posts with Upvotes
- 14
- Upvoting Members
- 12
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re: 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. | |
Re: [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 … | |
Re: It might help to know what you have assigned to $trade_users_query, $trade_items_query and $quantity_query. | |
Re: 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. | |
Re: "database" is a reserved word in mysql. Which die statement is it printing? Cannot connect or the Cannot Find Database? | |
Re: 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] | |
| |
Re: 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. … | |
Re: 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. | |
Re: 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 :) | |
Re: 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 … | |
Re: 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. | |
| Re: 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. |
Re: 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 … | |
Re: You might benefit from checking JavaScript Date object. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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. | |
Re: [URL="http://www.w3schools.com/html/html_elements.asp"]http://www.w3schools.com/html/html_elements.asp[/URL] | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 | |
Re: 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] | |
Re: 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 … | |
Re: 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. | |
Re: 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 … |