39,320 Topics
| |
Hello to all. I have a problem I can not solve. I have a table where there is a date field (datatime) where it goes automatically inserted the date and time of insertion. So 2013-09-02 12:00:00 AM. For me, this field is essential. Now I wanted to make a search … | |
Hello, I am making a wordpress theme by myself. I register the menus in my theme's function.php and show the menu using wp_nav_menu(). But problem is that the registered menu is not showing on wordpress dashboard>appearance>. In appearance tab there are themes and editor tab but no menu tab. **my … | |
I already have a php file that catches data from an uploaded CSV file to MySQL but the problem is, every time I upload the csv file, it duplicates the data into the MySQL What i really want is, if I uploaded the first csv file, and edit some data … | |
I'm getting this -> [Tue Sep 10 10:42:46 2013] [error] [client 127.0.0.1] PHP Warning: SQLite3::exec(): unable to open database file in /var/www/ET/insert.php on line 21, referer: http://localhost/ET/ I changed the owner of the DB file (et.sqlite3) to www-data and now this is what I'm getting. Before I changed the owner … | |
Actually this is a common problem for all who work with php mail function. Before I start this new thread, search for 2 days a proper/correct solution for my probem. But i couldn't find of any. When I send email through my web site, It is sent as spam to … | |
I am trying to refactor some code that selects a category from a database and then displays the listing on a website. Basicly it looks like this: if($_GET['category'] == 'All') { $results = mysql_query("SELECT * FROM members ORDER BY company ASC"); } elseif($_GET['category'] == 'Alterations') { $results = mysql_query('SELECT * … | |
hi im trying to create an php email script that will also submit the session data from a multi part form but somehow its not working the session data is not getting submited.take a look at my code hope someone can help out <?php //let's start the session session_start(); //now, … | |
Hello everyone, I am trying to retrieve some info from a remote site using PHP DOMDocument and I cannot figure out why the code returns NULL, although the provided ID exists on the page. Please help. $dom = new DOMDocument("1.0", "utf-8"); @$dom->loadHTMLFile('http://sports.yahoo.com/news/messis-tax-hearing-put-back-122033643--sow.html'); $content = $dom->getElementById('yog-content'); var_dump($content); | |
PFA...!! **Please look at the table data carefully.** I need to delete the rows. I need urgent help..!! Table: CREATE TABLE IF NOT EXISTS `version` ( `nidt` varchar(11) NOT NULL, `noeud` tinyint(3) NOT NULL, `VERSION` float NOT NULL, `ETAT_FONCT` varchar(20) default NULL, `idnap` varchar(25) NOT NULL, `nidtint` bigint(20) NOT NULL … | |
Hi, Im working on a PHP script in which I have to run shell script, I have 2 option , 1. If im able to send php veriable value to shell 2. Or i can write shell directly in PHP I used shell_exec(dirname(__FILE__) ."/shl.sh"); for execute shell .... Now the … | |
I Need some help.i just have some tables in data base, that is school ---Name(primary key),phonenumber,street,town,state,country college---Name(primary key),phonenumber,street,town,state,country Railwaystation---Name(primary key),phonenumber,street,town,state,country Hotel---Name(primary key),phonenumber,street,town,state,country In the front end, i will put two combobox and a submit button. All i need is first combo box will have to select the table.Second combobox shows … | |
Basically i have the search script working well, but i need to replace the $input with $inputused if word is found. I have tried str_replace() with no luck any ideas? Thank you <html> <body> <form name="form" method="post"> <br><input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> <br><input type="submit" name="submit" value="Search for … | |
Hi, I've got a page that allows the upload of multiple files at a time (while inserting filename to db). I've added the ability to arrange the file submission's display with a click and drag ui, this is also working fine...sort of. In order for the click and drag rearrange … | |
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 = … |
The End.