101 Posted Topics
Hi, Been looking for a way to get value of items within a handler object. From the below i would need to call the value of the image with console.log(this.image);. I doubt that is the way to do it. but I cannot find something that can point me in the … | |
Hi all, I have an issue where I can console log the url when it in a var but the moment that I add it back to the page within html it strips the forward slashes. does anyone know why this would happen. I have tried to change this in … | |
Hey all, I have done a lot of research on this subject but cannot seem to get this to work again. I recently went from tinymce 3 to 4 and it seems that its kind of broken with jquery ui tabs. I have one main textarea that shows the editor … | |
Re: Are you pulling all the countries from your DB? or are their just select contries in your DB typically I have an array of states or countries before I call this. $countries = array("list of all the countries"); $country = "USA"; echo '<select name="country">'; foreach($countries as $key => $value){ echo … | |
I have having a hard time with this problem and anything that I try seems not to work. This is the code that I am working with if (strpos($content,'{blog:blogtitle}') !== false) { echo 'true'; } echo $blogname; if($blogname != ""){ $replaced_content = str_replace('{blog:blogtitle}', $blogname, $content); }else{ $replaced_content = str_replace("{blog:blogtitle}", '', … | |
Re: There is a way to do it with adobe air. But you will have to keep the DB and php scripts on your server and call the data you need to print out via javascript/jquery. The best way to do this is build and API script into your web app … | |
Re: just a side note you can convert this: <?php echo $msg; ?> to this <?=$msg?> | |
Re: The only thing that I can think of is that 1. the DB has the incorrect number, in which case its the updating file that has the issue 2. line 243 should be a - instead of a +. I can only assume that you have the quantity of product … | |
Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); … | |
first off hi again. Now i dont know where to start this one script or let alone how to execute it. This is what i would like to learn how to do. I would like to output the current DB structure then take that and update another db with the … | |
ok so i am using jquery ajax to send post data to the php page to get processed. since im using a textarea with an editor on it i have to call the content like so var content = $('#pagecontent').val(); then post it through to the php page. which works … | |
ok so after some time i can do some simple reg exp but this one is confusing me. I currently am testing my reg exp on regexpal.com but php wants to work differently this is what im using [CODE] preg_match_all('/{(\w+)(([:]\w+)*)}/', $page_content, $matches, PREG_SET_ORDER); foreach($matches as $match) { $src = $match[1]; … | |
ok so i know how to write a reg expression for something more specific but i dont know how to make it more dynamic. right now i am matching {tour:right} with this {tour:([A-Za-z0-9_]+)} But the question is how do i write it so that i can use {tour} and {tour:right} … | |
ok so im working with execCommand and trying to make a function to insert a youtube video into a content editable div with execcommand inserthtml. Now this works with every other browser except, OMG IE. now i am trying to use pasteHTML(), found that some people have gotten it to … ![]() | |
Re: this is disappointing. i like the ipad alot and have been waiting for a tablet like that for a long time. but i dont like the O.S. I also dont own a apple puter. also android has a shit load more free apps. i dont want to pay for all … | |
ok so i am pulling my hair out here trying to figure out why php doesnt want to work right with this reg expression [B] what i am looking for [/B] {blog:name_of_blog} [B]what i have[/B] preg_match_all('\{blog:[A-Za-z0-9_]+\}', $replaced_content, $matches, PREG_SET_ORDER); [B] this is the error it is out putting[/B] Warning: preg_match_all() … | |
ok so i am trying to find any href that has a css file in it and append a template directory to the beginning while keeping intact this is what i have to begin with [CODE] preg_replace('/href=(?:")[^A-Za-z0-9].css/', 'href="'.$dir.$template.'/[^A-Za-z0-9].css', $content); [/CODE] i dont think that i am doing this right cause … | |
Re: ditto. improve your current programming skills. then you can start venturing into php/oop (object-oriented programming) which is a really great skill to know. It has made my current skills even more powerful ![]() | |
Re: a little off topic but a few suggestions session_start(); always go at the top of the page right after the opening tag. or you will run into some issue about headers already being sent also you can clean this up with single quotes instead of escaping all of your double … | |
Re: no you dont have the from email as there email. It would be from [email]no-reply@domian.com[/email] or an actual replying email ex: [email]admin@domian.com[/email]. take a look at [url]http://php.net/manual/en/function.mail.php[/url] for more info and some great examples. Even look through the comments they have good info too. | |
ok so i believe that i should know this but i have not really dove into dates with php. Ok so what i am trying to do is find the latest date between 2 dates. And if the dates are the same then find the latest time then echo out … | |
ok so i have this in query: [CODE] $(document).ready(function(){ $("input#copy").click(function(){ if ($("input#copy").is(':checked')) { // Checked, copy values $("input#owner_address").val($("input#subject_address").val()); $("input#owner_city").val($("input#subject_city").val()); $("input#owner_state").val($("input#subject_state")); $("input#owner_zip").val($("input#subject_zip").val()); } else { // Clear on uncheck $("input#owner_address").val(""); $("input#owner_city").val(""); $("input#owner_state").val(""); $("input#owner_zip").val(""); } }); }); [/CODE] That works fine for input:text boxes but doesnt work for dropdown menus. How to … | |
ok i think that i am missing something here but i not sure what. i have a function with a class that is supposed to take all the data make a query and then put into an array the data i would like to collect later function [CODE] function getDataLoop($strDbType, … | |
ok so i know how to do this within theory but not how to code this one. i have within my page a {blah:6}. i know that if i want to call a static string i would do this [CODE] $replaced_content = str_replace("{blah}", $page_name, $page_content); [/CODE] but the problem is … | |
ok so what i am trying to do is loop through the POST data to create an array of the data to be used later. this is what i have but when i use is_array it returns not an array. i swear it was working at one point but now … | |
ok so i am including a html file that has a css file within it. but when i include it, it breaks the relative css location. is there a way before i include the html file that i define the relative area. example include("admin/template"); html file <link href="css/style.css" rel="stylesheet" type="text/css" … | |
hi all, I dont really know jquery that well but im looking for a function that maybe you would know. What i would like to do is insert text into a text area where the cursor last was. I do have this little piece that i found on the web. … | |
Re: why dont you just use mysql_query instead of mysqli_query. also you could write your query like this too. [CODE] // run the query $result = mysql_query("SELECT * FROM Pet WHERE petType='petType'"); //check the query. if not successful the print error if ($result) { $message = 'Yay the query was successfully … | |
i am just learning how to code for oop and i have an error that i have not seen Fatal error: Class 'queryUpdate' not found in testingfile.php on line 28 line 28 [CODE] $queryUpdate = new queryUpdate($table, $fields, $condition); [/CODE] what i am trying to run. which is in another … | |
Re: wouldnt it be [CODE] md5("som3_admin",$username)setcookie($password$_POST$username$_POST); [/CODE] im not sure what your doing here $password$_POST$username$_POST | |
Re: on a side note. instead of escaping all of your " you can just start the string with a ' and end it with a '. I typically use ' for most things cause i have html and they have lots of ". ![]() | |
| |
Re: on another note you could use javascipt to do the same thing [CODE] echo '<script>setTimeout("window.location.replace('edit.php')",3000);</script>'; //3000 is 3 seconds [/CODE] | |
| |
i know i should know this but for the life of me i forgot it. what i want to do is within my loop. I want a single variable that has multiple info in it that can be separated by a , ex: loop one { $store = "fieldone='$fieldone'"; } … | |
ok so i am messing around with php trying to see what i can do to improve the way i make/do things. right now i am playing around with a query set that automatically makes the variables with the database information in it then to echo it later on when … | |
i have been getting the error Parse error: syntax error, unexpected '.', expecting T_VARIABLE or '$' and the line that has the issue is $ . $ [CODE] foreach ($fields as &$value) { $ . $value = $myrow[$value]; } [/CODE] all im trying to do is make a variable with … | |
ok so i am running into this problem that i cant seem to fix. trying to make a dynamic query. i am grabbing variables from post data and trying to put them in the query but everytime i try to run the query it doesnt work. [CODE] $id = $_POST["id"]; … | |
hey all i have been trying to get the ext from a file so that i can append it back on. but it seems not to be working here is what i have tried [CODE]$tempFile = $_FILES["Filedata"]["tmp_name"]; $targetPath = $_POST["path"]; $filename = $tempFile; $filename=str_replace(" ","_",$filename);// Add _ inplace of blank … | |
how would i find out if an number is in between certain values. ex number 33 Set values 0-10 10-20 20-30 30-40 output 30-30 thanks in advance ![]() | |
hi all, i have been using uploadify lately but i think that it no longer works correctly given the lastest flash updates. or idk what the problem is. my question to you is do you know of a better multiple/single file uploader that uses jquery and php. something that would … | |
i dont know what is the issue and it is not giving me a error in the error_log. i have a variable that collects from the url to be put into the query were the DB field would go. i know that is is the part that is not working … | |
ok so i have a time that i need to order by but i dont know how to make it order, in order by am then pm. Ex: i have to events that i put in the calendar one for 6:00 am and one for 9 pm. I put order … | |
Warning: array_sum() [function.array-sum]: The argument should be an array in pdf.php on line 112 i am getting this error and i dont see what the problem is. it calls values and adds them [CODE]$result = mysql_query("SELECT * FROM sold_produce WHERE invoice_id='$invoice_id' "); while($myrow = mysql_fetch_assoc($result)) { $total2[] = $myrow['total']; } … ![]() | |
hey all, i know in this day and age tech it linked with each other. is there a way to send faxes and receive faxes just using php. or if there is a service what is the cheapest. what i would need to do is have a system set up … | |
ok so i was trying to look into making a loading spinner be put up when i am using a get or post method but it started to get a little overwhelming with what some people did. if you could help i would like to know how to make it … | |
ok so what i have going right now is a little system that takes a value of %address% and turns it into what is stored on the database. and i am using a str_replace example (note there are more in the array) [CODE] $searchArray = array("%address%"); $replaceArray = array($address); $content … | |
ok i had a thought and i know that i can do it with jquery but dont know if it could be done with php. i would like to create a function where, if called it could see if the necessary files and code that it needs are in the … | |
ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i … |
The End.