1,003 Posted Topics
Re: Hi, add this just above $result $band = $_POST['band']; ![]() | |
Re: Hi, did you try adding ??? parent::executeIndex($request); just below public function executeIndex(sfWebRequest $request) { Not sure though, I only used this framework for less a month... So, my memory was not able serialized whatever I did on my practice applications. | |
Re: @Muralikalpana, Just to clear some of my doubts, can you run this script on your wamp server <?php var_dump(curl_version()); ?> Did you see anything on the screen? NO? Run <? phpinfo(); ?> Look for your server **loaded configuration file** .. e.g. apache/bin/php.ini OR php/php.ini.. based on the loaded configuration file, … | |
Re: Your problem is this.. $fileContents = file_get_contents($file); $sql ="insert into invoice(filelocation) values('$fileContents')"; file get_contents is for parsing text, html and coverting it to string. I really don't understand the reasons of using it, unless you want to collect webpages, text and store all of the parse contents in database. I … | |
Re: Hi, Can you load the actual file of this script on your editor and tell us what is on line 51? | |
Re: Hi, Try removing the extra equal operator in your query.. $result2 = MYSQL_QUERY("select title, content, tag, date from article where author == ." .$_SESSION['id']. "."); like this $result2 = MYSQL_QUERY("select title, content, tag, date from article where author = '" .$_SESSION['id']."'"); | |
Re: Hi, This is how I visualize it for me to understand it fully well. They said it is MVC, but for me personally it is CMV or Controller Model View. One might ask why? Because it is easy to remember these in order INPUT->PROCESSOR ->OUTPUT or CMV. In practice, I … | |
Re: try using single qoute for the double quotes and double quoutes for the single quotes. Otherwise, yo can escape it. Another alternative is to use heredoc for a longer string., but for your situation something like this will do.. <?php echo '"'; echo "' '"; ?> | |
Re: first you need to ask godaddy hosting technical support if you have a root access credential on your vps server. These information should be on your account confirmation email. They normally require an additional identification like driver license. I am not sure if they still have the same policy when … | |
Re: Hi, Turn on your xampp server and then click -> http://localhost On your left panel, click on the phpinfo(). I need the following values 1. Loaded configuration file. 2. post_max_size 3 upload_max_filesize | |
Re: Hi, You mean like this? link -->link is clicked -> use "link" string as part of the database query -> script returns result based on the query So, for the above logic the query can be something like this -> select from link, or select from some table where something … | |
Re: what happened if you access yoursite.com/mvc/users/ ? Does it give you an error message about app/Controller/UsersController.php? | |
Re: You can scale the image based on the proportional ratio of your maximum width and the actual height. However, if we properly scale 452x507 to your maximum dimension. The properly scaled output will only be around 54.21px by 60.84 px. Here are the reasons why? To scale we need to … | |
Re: Hi, First, don't get the class occupy your head too much. you can add them later. The most important steps in writing program is to established the barebone of your project (logic wise). Without laying out the proper logical flows of your project, it will confused you even more.. Relax, … | |
![]() | Re: Hi, Shared hosting does not allow direct php.ini file editing. However, you are allowed to add entries to either .htaccess file or create a new php.ini file, depending on your server's API. There are cases where additional entries are needed to be included in .htaccess file, and others has to … |
Re: Here is the [Demo](http://veedeoo.com/formtest/form2.php) I made it for the other question in this forum.. Please feel free to copy the source and save all the javascript files to your server, and do not hotlink them from my site. I am just trying help out that is why I am publishing … | |
Re: Hi, Remove **extra curly bracket on line 111** just below **echo $page_content**. | |
Re: Try rearranging your codes like this <?php session_start(); ## if you want to predefined a session, then it should be here $_SESSION['randomnum']=md5(time()); ## the above can be passed on to your form and then assigned as value of your variable $a.. $a=$_SESSION['randomnum']; $b=$_POST['secure']; echo $a.'<br/>'.$b; if($a==$b){ echo "this is equal"; … | |
Re: Here is the quickest, and yet nothing is pretty dirty.. just to get your fingers wet on blank page, and to taste the model->controller->view concepts. Step One: The **MODEL** Copy codes below and save it **app/Model/Test.php** <?php ## save this in app/Model/Test.php class Test extends AppModel { } Step Two: … | |
Re: Try reading this [Article](http://sqllessons.com/sqlhack75.html) **entitled Minimize Bandwith in One-to-Many Joins**. If it doesn't worked out for you, maybe it's time to move on and find another hosting company. | |
Re: Hi, try reading about the php range function [here](http://php.net/manual/en/function.range.php). This will allow you to define the start and the limit of the array being evaluated. | |
Re: try <?php $ancpopup = "<div id=\"anctrigger\"><a href=\"#\" onclick=\"window.open('m_ancpopup.php?page=".$eid."','ancpopup','width=670px,height=470px,left=0px,top=100px,screenX=0,screenY=100')\">Accident & Conviction EXIST!</a></div>"; if(mysql_num_rows($result)<>0) { echo $ancpopup; } ?> Don't forget to define your $eid, and then your mysql query.. You don't have to escape single quote if you use double quotes to define your echo. The same is true if single … | |
Re: Hi, You can do this by adding another column on your members database table. For example, we have a table member witht he following columns, id --- username --- password --- other stuffs.. We can then modify the above to something like this id -- username -- password --- privs … | |
Re: Did you try [searching for it?](https://www.google.com/search?q=five+star+rating+system+using+jquery) | |
Re: Hi, This should be your own domain's uploads directory or the video loaction of the items in the playlist. clip: {baseUrl: 'YourDomainDotCom/videoDirectory/'} And then, in your database query result while loop, your php codes should be somthing similar to my untested codes below. Echoed brackets are for the javascript. $query=mysql_query("SELECT … | |
Re: Hi, Try, changing either **$result** to something else **e.g. $result2** .. I think your scripts is just experiencing a minor naming collisions when integrated each other. Is this script will be running on production server? If yes, can you at least hash those CC numbers even at the minimum.. I … | |
Re: They are using ajax and other libraries.. Read more about this [here](http://www.w3schools.com/ajax/ajax_xmlhttprequest_send.asp). For the username availability checker,, normally this is written in jquery and php try [this tutorial](http://papermashup.com/jquery-php-mysql-username-availability-checker/) For ajax sample without page reload on click... check out my [demo](http://veedeoo.com/formtest/ajaxform.php) . You can view the source of the page and … | |
Re: Run a phpinfo() , and look for your server's API value. If it says, apache module or anything referring to apache, CHMOD the directory where the written files are saved to 0777 or 777. If the server's API says CGI or fast CGI, CHMOD it to 0755 or 755. If … | |
Re: Hi, Just a recommendation, if you will be working on php codes with html tags in the mix, netBeans is the best IDE to use. NetBeans has a lot to offer than the eclipse. Plus, if you will be experimenting with the templating system like smarty in the future, netBeans … | |
Re: Try this...create a test page by copying the codes below and save it as delete.php <script type="text/javascript"> function check(){ var r = confirm("Are you sure you want to drop this appointment?!"); if(r){ return true; } else{ alert("The appointment will not be cancelled"); return false; } } </script> <a href="delete.php?delete=yes" onclick="return … | |
Re: You could try using ReflectionFunction class as shown here -> http://php.net/manual/en/class.reflectionfunction.php and just call it something similar to this. Will only work on php 5.. $findMyFunction = new ReflectionFunction('Name_Of_Function_You_Need_to_look_At'); ## print will work better here than echo .. print $findMyFunction->getFileName() . ':' . $findMyFunction->getStartLine(); Checking if the function exist before … | |
Re: Hi, These are two different things that will never ever equal to each other, and will never validate to true. if(($_POST['name']) == $_SESSION['uid']) Because at the start of the session, you defined your session['uid'] as 'test'. Therefore, at the time that the form has been posted the condition above will … | |
Re: ok here is the [Demo](http://veedeoo.com/formtest/ajaxform.php) .. Please feel free to look at the page source. The demo is a barebone. Here is the code for the processor, pleas feel free to expand it to your requirements including database inclusions. <?php ## this is for the ajaxform processor if((isset($_POST['send_button'])) && (!empty($_POST['desc']))){ … | |
Re: Hi, You should use md5 for the RecordID, before using it on the url. For example $id = base64_encode($row['id']); ## then your url will be llike this /editprop/RecordID=<?php echo $id;?> ## to parse this info. by way of $_GET['RecordID'], you need to decode it like so $processed_id = base64_decode($_GET['RecordID']; By … | |
Re: try, <div> <span class="bold">Choose a lecturer:</span><br> <select name="lecturer" > <?php // note how the keyword "distinct" in the following query prevents duplicate values from being returned $dbQuery="select distinct lecturer from p3_modules"; $dbResult=mysql_query($dbQuery,$db); // convert this loop to generate a drop down list (3a) // the value of each <option> element … ![]() | |
Re: I don't think there is one book that will cover them all, but this is how I did it on top of the countless nights reading every possible ebook and phpDev articles I could find. Of course, not to forget the w3schools and php.net credits. In fact, I have colletions … | |
Re: Hi, You can read Christopher's tutorial about flat file [Here](http://www.designdetector.com/2012/02/flat-file-database-demo-6.php). The guy is really good in flat file manipulation. A very unique approach. | |
Re: What forum script is running on your site? | |
Re: Hi, Just a question, you mean your supervisor can't tackle this stuff? I am keeping my fingers crossed from now on. I hope I don't work for someone like that after college, or else I will put her in the recycling bin.. Boy, that was a pretty sick thoughts I … | |
Re: Hi, Try this.. open your notepad or any suitable php code editor. Paste codes below ErrorDocument 404 /404.html Save the above as .htaccess , and then upload to your server. Second step.. On your notepad again or html editor, create a new page similar to the google 404 page and … | |
Re: The best way is to log-in to your cpanel and then go to phpMyAdmin, on the top menu click "export", on the export method option, select sql click go, at the prompt confirm the download. Save your sql backup file on your desktop. Prgrammatically, don't even bother it is just … | |
Re: Here is a [Sample](http://veedeoo.com/formtest/form2.php) similar to what you are trying to achieve. Just view the source code of the page and it is pretty much self explanatory. I am experimenting with the jquery chained link plugin. Please do not hotlink the jquery files. That's all we are asking. please play … | |
Re: Here is the daniweb pagination search result, they got bunch of them http://www.daniweb.com/search/query/pagination/0?q=site%3A*%2F+pagination | |
Re: Just like what CoursesWeb suggested, jwplayer is your best choice. Another one is flowplayer both players supports pseudo-streaming by php and RTMP streaming. Depending on video extensions you currently have on your site, you can either decide which one to use. If you site's videos are flv either one can … | |
Re: Hi, You can read more about it [URL="http://papermashup.com/truncate-text-with-the-jtruncate-jquery-plugin/"]here[/URL].. | |
Re: Hi, You can also look at the form validation class in system/libraries/. Class definitions and functions are explained [Here](http://codeigniter.com/user_guide/libraries/form_validation.html). Either extend the class as shown in this [example](http://codeigniter.com/wiki/Assosiative_Arrays_via_POST/), or set new rules `$this->form_validation->set_rules();. ` I remember bumping into this problem two years back, but I can't even remember how and … | |
Re: Hi, Show us the layout of your cURL and I will help you. I could have write it here for you, but I don't write codes for advance user. I don't want to deprive anyone the fun of learning on top what they already know. Show me some codes and … | |
Re: First, take a look at the database table for the client, look for the column names. On the other site (NOT Magento, because I have not installed this script NOR I tested one), this could be any script right? Let the second script connect to magento database and extract the … | |
Re: We need to see your target xml file. It all depends on your xml file structure. There are several methods in parsing xml file. It all depends on the target document. | |
Re: Dude, Cake php is the sweetest of all cakes, but its a hard one to bake second to Zend. You may want to do more research and study more about it. This thread will not have enough space to explain how it works. |
The End.