- 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
103 Posted Topics
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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' | |
Re: Check array_count_values function. | |
Re: 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. | |
Re: 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. | |
Re: Escape forward slash. ..[ICODE]*)\[\/\]/s', '<div>\\1</div>', $string);[/ICODE] Hope this would help you to carry on. | |
Re: 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. | |
Re: @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. | |
Re: 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] | |
Re: Why? What is that you are exactly trying to do? | |
Re: I suggest you read this thoroughly. [URL="http://www.google.com/support/webmasters/bin/answer.py?answer=35291"]Search Engine Optimization (SEO)[/URL] | |
Re: 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 … | |
Re: 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. | |
Re: Maybe, [U][COLOR="Green"]foreach[/COLOR][/U] part_no get qnty and weeky.... | |
Re: Have a look at this. [URL="http://www.php.net/manual/en/ref.network.php"]PHP network functions[/URL] | |
Re: 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. | |
Re: You should probably ask this in the [URL="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117"]JavaScript/DHTML/AJAX[/URL] forum. ![]() | |
Re: Either define ArrayList list globally or make printHand accept it as a parameter. | |
Re: 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 … ![]() |
The End.