194 Posted Topics
Re: convert this to actual code func(address) loop object addr in object[i].area ? then addr += object[i].postcode else continue end loop for arrays or make it recursive | |
Re: > $this->db->like('invoice_master.date',$this->input->post('invoice_id')); > $datecondition; should probably be something more like this $this->db->like('invoice_master.date',$datecondition); of course given your question you should probably be using a between operator and have 2 date conditions | |
Re: new PDO("mysql:host=" . $this->host . ";**dbname=**" . $dbn, $usr, $pwd, array( | |
Re: PHP file from the manual Return Values ΒΆ Returns the file in an array. Each element of the array corresponds to a line in the file, with the newline still attached. Upon failure, file() returns FALSE. your search is failing because the value is really `'<p>\r\n'` | |
Re: looks good you may want to consider a category table for search purposes ie firstdance/friends/bridesmaides albums would be likely to contain pics from multiple categories also i would break the photo out of the album table and use a crosswalk table between album and photo you want to be able … | |
Re: create an array and in your loop do something like array[int(score/10)]++; not sure what the exact sytanx is as i dont work with java | |
Re: >while($row = mysql_fetch_array($rs)){ >echo "<option value=".$row["Email"].">".$row["Position"]."</option>"; > >$_POST['Email']='".$row["Email"]."'; >echo $email=$_POST['Email']; >} no idea what this is supposed to be doing this however >echo $mail->AddAddress('$email'); ` assuming `$email` has a value should read `$mail->AddAddress($email); ` | |
| |
Re: if (!isset($_SERVER['HTTPS']) OR empty($_SERVER['HTTPS']) isn't that redundant doesn't `empty()` check `isset()` why have both | |
Re: your data should be an array data : [["id", imgdata], ["var2", val2]] | |
Re: like broj1 said add the sql string to your die also instead of using mysql look into http://php.net/manual/en/book.mysqli.php http://php.net/manual/en/book.pdo.php | |
Re: when uploading a file through a file input you'd access the actual file through its "uploaded" or temp name $file = $_FILES["file"]["tmp_name"]; $file_handle = fopen($file, "r"); | |
Re: post some come please when you say to scripts, do you mean 2 sections like `<?php ?>` are you talking about sharing variables between functions | |
Re: the syntax for insert/select is usually INSERT INTO myTable(num, num2) select 15, myFunction(15); | |
Re: php is a server side language you can't make a dynamic site using php alone you need to use a client side language to send the info back the server as well as make the display changes on the client side google ajax | |
Re: http://api.jquery.com/slideUp/ is used for hiding elements it decreases the element hight technically you would want to use http://api.jquery.com/slideDown/ which increases element hight ![]() | |
Re: you're not going to be able to create multiple instances with the same name each time you loop your telling the edit button to only work on the last one ![]() | |
| |
Re: are those pages being loaded properly by the site check firebug/other tool to make sure your urls are correct may seem basic but... | |
![]() | |
Re: assuming the order of the columns matters //get maxHeight from the columns + 1 for the header (mid) maxHeight = count(biggest) + 1 loop menuItems //curHeight needs to include all mid and bottom already printed if curHeight + nextColLength + 1 > maxHeight nextCol else printCol if the order doesn't … | |
Re: you're going to want to do this client side (js) so that you can detect when a user has input text into one of the boxes //my sudo code (write your own code) func boxchanged() { if has value set enabled else call checkboxes() } func checkboxes() { foreach box … | |
Re: `move_uploaded_file($_FILES['fileup']['tmp_name'], $uploadpath` change $uploadpath | |
Re: when naming your form fields add brackets to the name to indicate an array `<input name="child[1]['name']"/>` | |
Re: do you have a return in your submit button | |
Re: your `$sql` variable is your mysqli obj most likely you meant to use `$query` in your url | |
Re: what kind of events are you trying to catch? | |
Re: use an alias http://www.w3schools.com/sql/sql_alias.asp | |
Re: add a counter when counter reaches 3 print a new line ![]() | |
Re: > UPDATE student_info SET total_mark=$total_mark WHERE c_id=$c_nam in any query string values in quotes are treated as text where as string values not in quotes are assumed to be sql (column names in this case) in this case `(col)total_mark = (col)[value from $totalmark]` just need to add single quotes around … | |
Re: as pritaeas said make the field readonly datepicker will still work | |
Re: do you have anything to show us we wont do it for you but we will help you work through it | |
Re: max-height just sets a limit on how high the element can get you dont have a specification for actual hight or min-height if you always want that margin to display your max-height should be 100% - margin ![]() | |
Re: use a loop to go through posted fields and build your query in that loop loop $_POST where .= and field = value | |
Re: whats the issue? always verify login before returning results about anything else ie license | |
Re: check the content of the db field in what format are those chars stored ![]() | |
Re: not a .net guy but distinct is only going to help you if all the values on the line are the same not sure what the command would be but better off grouping on emplid | |
| |
Re: post it with a form filebox | |
Re: school = ""; loop (rows) { if rows[school] != school { print school school = rows[school] } do other stuff } ![]() | |
Re: you could always use includes to load whatever page you actualy want them to see | |
Re: $stmt->bindValue(':over_14', $_POST['over_14']); try this instead $stmt->bindValue('over_14', $_POST['over_14']); | |
The End.