39,393 Topics
![]() | |
Am I right to assume that autoload is a performance issue rather than making my life easier as a developer? I mean if I put all my classes in one include, and I don't have any performance issues, should I be worried about autoloading at this early stage of my … | |
I have a problem to get result from mysql. I want this average result when i have for example two reviews: food: 5.0 prices: 5.0 lodging: 6.2 but i got this results separatly instead: food: 8.0 prices: 6.0 lodging: 3.0 food: 2.0 prices: 4.0 lodging: 10.0 and i cant figure … | |
Hello friends, i am having a trouble, and the server is throwing me this: *Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object hasn't 'Sdt_coleccionretornoitemsagrupacion' property in /var/www/sitios/webservices/Diego.php:129 Stack trace: #0 /var/www/sitios/webservices/Diego.php(129): SoapClient->__soapCall('Execute', Array) #1 {main} thrown in /var/www/sitios/webservices/Diego.php on line 129 * I have this code: echo 'SEGUNDO XML------------------------------' … | |
Hi, This is my php code for category UL and LI recursive. Now is working fine but the output is not what I expected. Here is the HTML output of the code I provided: <ul><li> <a href="#">Electronic Gadgets </a><span class="subDropdown plus"></span><ul><li> <a href="#">Pant</a></li><li> <a href="#">Aircond</a></li><li> <a href="#">Shoe</a></li><li> <a href="#">test</a></li><li> <a … ![]() | |
Hi All, I'm trying to read/pass a value from a dropdownlist on a ASP.NET page to a PHP page so I can excute the required SQL command in the background. Can anyone assist with this? Background: - jQuery autocomplete search box getting results from PHP page that connects to a … | |
Hi, I have this date picker and what i want to do is, how many days, months and years are left from the today's date until the date i chose. <?php $secondDate = '2012-08-02'; // date i picked $currentDate = date('Y-m-d'); //current date $datechose=explode ('-',$secondDate); $todaysday=explode ('-',$currentDate); $daysleft=$datechose[2]-$todaysday[2]; ?> Thank … | |
Hi, How can I add ul and li tag and add `<span class="subDropdown plus"></span>` before sub category `<ul>` called? ? my database: ID,CatName,ParentID This is the output I expected: <ul> <li><a href="#">Car Accessories</a></li> <li><a href="#">Clothing & Shoes</a> <span class="subDropdown plus"></span> <ul> <li><a href="#">Shoes</a></li> <li><a href="#">Sndals</a></li> <li><a href="#">Dresses</a></li> <li><a href="#">Jeans</a></li> </ul> … | |
Hi... I'm seeking out some suggestions, ideas, or anything that could help... my .xl report is taking too long to generate... I'm doing this report under php and html but then It takes too long too generate... Is there any suggestion you could give me to fix such kind of … ![]() | |
I have a query that selects data and places it into an array. This array can contain 'null' as a results. I want to remove all the varaibles that say 'null'. I have a code that is suppse to remove all the null variables but instead it replaces them with … ![]() | |
How do I use htmlspecialchars to escape all html but then allow two tags? I've escaped my text but want to allow the following two tags: img iframe Is there an easy way to do this? I never had a class on php so everything I know is self taught. … ![]() | |
![]() | Hello I have this code to detect the user browser, using if and else: [CODE]<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) echo 'Internet explorer'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== FALSE) echo 'Mozilla Firefox'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== FALSE) echo 'Google Chrome'; else echo 'Something else'; ?>[/CODE] Is there a way to do this using the … ![]() |
Hi guys, I have got a problem with scraping the data from a third party website. I'm currently using a preg_match_all method with each different title tags including the values to output the data from a third party website to my website where I can see some of the data … ![]() | |
Hi, How can I use modulus to add TR tag for my output below? <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> In the example above got 2 set of … | |
Any one can give a hand figure it out were is my errror in my clean url. This code is on my vhost and it's not working as I expected. I have try to rewrite the code and put in .htaccess file and still is not working. RewriteEngine On RewriteCond … | |
hi Iam new for php and trying to learn, i want to know what is this line of code mean : $_PROFILER->mark('afterRoute') : null; $_PROFILER ?? -> ?? what does it used for and what is it mean ? mark()??? : ?? null?? and 'afterRoute' ??? thanks for all ;) | |
<?php include_once("connectDB.php"); if ($_SESSION["loggedin"] != "true") header("Location : member_login.php"); $aname = $_SESSION["aname"] ; $aid = $_SESSION["aid"]; $result = mysql_query("select * from member where m_ID = $aid"); $row =mysql_fetch_assoc($result); $ticketid = $_REQUEST["ticketid"]; // Use this var to check to see if this ID exists, if yes then get the product $result … | |
hi, hope if someone can help me, my conact form works and i receive the mail, but it shows me just the email and phone this is a test: Email = test@live.fr Name = Phone = 06 09 56 89 45 Message = Email = forza-ayoub@live.fr Name = Phone = … | |
Hi there, I have some code which quite nicely uploads PDF files to the server: [CODE] if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check if the file is JPEG image and it's size is less than 350Kb $filename = basename($_FILES['uploaded_file']['name']); $ext = substr($filename, strrpos($filename, '.') + 1); if (($ext == "pdf") … | |
My version of Netbeans 7.3.1 freezes at startup. I've already deleted the cache to no avail. Cannot say I can make a lot of sense of what I read on Google. Should I use another ide? | |
Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something … | |
Hello I've been getting these weird code on my site. Here is a sample "#74ed9f# if(empty($doo)) {$doo = "";echo $doo;} #/74ed9f# ". My antivirus also gets alerted when I received visit my site. Here is my site's link http://callumco.com/agranex_cms/ What is this and how to fix? Thanks! | |
Here is my Code ::: <?php if ($handle = opendir('images/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; while (false !== ($entry = readdir($handle))) { echo "$entry\n";?><br/> <?php } /* This is the WRONG way to loop over the directory. */ while ($entry = readdir($handle)) { echo "$entry\n"; } closedir($handle); } … | |
Hi, now I've a function which is add product to cart: function addtocart($pid,$q,$attribute){ if($pid<1 or $q<1) return; if(is_array($_SESSION['cart'])){ $max=count($_SESSION['cart']); $_SESSION['cart'][$max]['productid']=$pid; $_SESSION['cart'][$max]['qty']=$q; $_SESSION['cart'][$max]['attribute']=$attribute; } else{ $_SESSION['cart']=array(); $_SESSION['cart'][0]['productid']=$pid; $_SESSION['cart'][0]['qty']=$q; $_SESSION['cart'][0]['attribute']=$attribute; } } And now my remove product function is : $id is generate from for loop in cart page which is same … ![]() | |
dear friends. have been having problems on my new web page. i want to create chat,like,poke or wink, but i dont know how to go about this. please helpme out. (kazzysky2000@yahoo.com) my bbm pin is(2950df97).thanks ![]() | |
In VB.net this works: client.Host = "smtp.gMAIL.com" client.Credentials = New System.Net.NetworkCredential("b040Mail2@gmail.com", "*****") client.Port = 587 client.EnableSsl = True I'm trying this in php (from Xampp) but it gives me an error: ini_set("SMTP","ssl://smtp.gmail.com"); ini_set("smtp_port","587"); ini_set("username","b040Mail2@gmail.com"); ini_set("password","*****"); $to = "p806Antwerp@gmail.com"; $subject = "testing"; $message = "This is the message"; mail($to,$subject,$message). Is there … | |
Hi all I know how to sort an array but I dont know how to sort an array according to a value in the second array... <?php $array1 = array( array('name'=>'01','number' => 1), array('name'=>'07','number' => 7), array('name'=>'05','number' => 5), array('name'=>'06','number' => 6), array('name'=>'02','number' => 2), array('name'=>'03','number' => 3), array('name'=>'11','number' => … | |
Hi, Can some one tell me where I can find the function `get_user_by_identity_row_array() `in the flexi auth system? it is usauly called like : $this->data['user'] = $this->flexi_auth->get_user_by_identity_row_array(); I have looked every where, but maybe I’m missing it.. where can I find this? Thanks in advance. | |
Hi, is there any preg_match only allow `a-zA-Z0-9():[space]` ? Please help me =( ![]() | |
Hi guys....ammm...I created a table in one function and then used it in another function. The temporary table is created this way: $tmpTable = "tmpTable"; myCreateTable($intHandle,$tmpTable,$schoolYr,$semester); CREATE TEMPORARY TABLE $tmpTable type = heap SELECT Payment.No FROM (Payment INNER JOIN Othr ON Payment.Autokey = Othr.key) I am passing the table name … ![]() | |
Hello there, My query is like- I have one pdf and xls file as link. When any employee try to click on that link, then it should ask me for credentials as name(pmp) and password(123) if these two things matches, thwn only it should allow you to view/download taht xls/pdf. … ![]() |
The End.