39,320 Topics

Member Avatar for
Member Avatar for FarrisFahad

I am trying to paginate through a set of results. I know how to do a simple pagination, but I have a lot of records in the database. So the problem is that when I have a lot of pages, the number of links are also high, therefore breaking the …

Member Avatar for broj1
0
380
Member Avatar for AntonyRayan

I want to add photos to the user after they logged in , in their user profile . Will it possible? how?

Member Avatar for broj1
0
98
Member Avatar for Osagie_1

i'am testing an xml structure: <Articles> ... <Article ID="333"> <author>Paul</author> <title>i hate xpath </title> <child1>bla</child1> <child2>blabla <subchild> <subsubchild DEEP = "Attribute"></subsubchild> //this is my nightmare </subchild> </child2> <child3>testing</child3> </Article> ... </Articles> what xpath expression will fetch and update the subsubchild attrib value ? i am mostly concerned with fetching and …

Member Avatar for Osagie_1
0
128
Member Avatar for davy_yg

dashboard2.php if (isset($_POST['ok'])){ if (empty($_GET['class_id'])) { $class = $_SESSION['class']; $sqlstr = "INSERT INTO material2(`subject`, `title`, `content`) VALUES('".$class."', '".$title."','".$content."')"; echo $sqlstr; } else { $class = $_SESSION['class']; //echo $class; $sqlstr = "UPDATE material2 SET subject='".$class."', title='".$title."', content='".$content."' WHERE class_id=".$_GET['class_id']; echo $sqlstr; } $result = mysql_query($sqlstr) or die(mysql_error()); //Jika mode edit, maka …

Member Avatar for pritaeas
0
170
Member Avatar for OsaMasw

Hello guys, I know there is a ton of webmail scripts and works with cPanel, but no one I found that support register new users like : Google,Yahoo,etc.... I need php webmail so new users can register and using my doamin as there mail service. best regards .

-1
95
Member Avatar for prachi123

I have some code help. <?php error_reporting(0); //$cat = $_POST['cat']; $uri = 'http://ventureburn.com/feed/'; $xml = simplexml_load_file($uri); $namespaces = $xml->getNamespaces(true); $i = 0; $data = ''; //echo '<pre>'; //print_r($xml); //echo '</pre>'; // exit; $string = str_replace(array('[', ']'), '', $string); $string = preg_replace('/\[.*\]/U', '', $string); $string = preg_replace('/&(amp;)?#?[a-z0-9]+;/i', '-', $string); $string = …

Member Avatar for <M/>
-2
168
Member Avatar for suncica2222

I have association table in mysql that I want to translate into doctrine yaml mappings. List_id and user_id are at the same time composite primary and foreign keys. I'm confused weather I should have in listUserTb entity class both $userId and $user ($listId, $list) fields? Or can id_str from users_tb …

0
112
Member Avatar for iveto89

Hello! I'm trying to do a query from SQL in PHP table. My code is: <?php $table = mysqli_query($mysqli,"SELECT song_id, song_name, janr_name, singers.names FROM `songs` INNER JOIN `singers` ON songs.singer_id = singers.singer_id INNER JOIN `janr_songs` WHERE janr_songs.janr_id = songs.janr_id "); $row = mysqli_fetch_array($table); { echo "<table border='1' >"; echo "<tr><th>№</th><th>Song</th><th>Artist</th><th>Song …

Member Avatar for iveto89
0
172
Member Avatar for anmol.raghuvanshi1

this is my create and read.php files problem is that in read.php file image is not being displayed only its file name is displaying // crate.php <div class="control-group <?php echo !empty($imgError)?'error':'';?>"> <label class="control-label">Image Upload</label> <div class="controls"> <input name="image" type="file" placeholder="image" value="<?php echo !empty($image)?$image:'';?>"> <?php if (!empty($imgError)): ?> <span class="help-inline"><?php echo …

Member Avatar for anmol.raghuvanshi1
0
261
Member Avatar for newbie14

I am working on a small as2 message passing. Below are my codes. First is the host which will send the header and data to the server. Then the server is suppose to form a reply in this format http://www.edidev.net/edidev-ca/help/Using/Using_AS2/Using_MDN/MDNRequestFromAs2SubjMsg.htm <?php $header = "HTTP/1.0\r\n"; $header.= "CONNECTION: Keep-Alive \r\n\r\n"; // Here …

0
207
Member Avatar for Simon_4

I have the follow code, with checkboxes. Tried to do an array. I send these checkboxes to my mail-process file. How I do, that I only get these values, from these checkboxes, they are checked? <div class="cpt-item four columns"> <div class="thumb-wrapper"> <img src="/assets/images/custom/bigb002.jpg" alt="The Big Buddha Temple"> </div> <div class="cpt-detail"> …

Member Avatar for Simon_4
0
109
Member Avatar for Sikander Nasar

# Security for Wordpress and Codeigniter # I want to integrate wordpress and codeigniter and I am confuse about security.My admin panel will be in codeigniter and frontend in wordpress.what type of security is there.

Member Avatar for mangel.murti
0
168
Member Avatar for EvolutionFallen

Hi all, I'm wondering if anyone's had experience with the WordPress Importer tool. I'm having trouble importing my WXR file through the tool. It works well for the most part, but when I get to the author assignment section, there are some issues. Under Assign Authors I only see `Import …

Member Avatar for irfanmodan
0
219
Member Avatar for ravi142

Hello. I am working on wordpress **plugin.php** file Add one sub menu and working on but when i call ajax function but its not given proper output. <script> jQuery(document).ready(function() { jQuery(".downloadpdf").click(function () { var goat_id = jQuery(this).attr('id'); //Alert got id e.g 218 jQuery.ajax({ type: "POST", url: "<?php echo admin_url( 'admin-ajax.php' …

Member Avatar for irfanmodan
0
223
Member Avatar for Osagie_1

<Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1 country="england">English</lang1> <lang2 country="france">French</lang2> <lang3 country="china">Chinese</lang3> </Translations> </Article> </Articles> I want to select any attribute in the entire document (no matter the …

Member Avatar for mangel.murti
0
117
Member Avatar for Osagie_1

<Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1 country="england">English</lang1> <lang2 country="france">French</lang2> <lang3 country="china">Chinese</lang3> </Translations> </Article> </Articles> i want to update attribute value "england", as in: ... <Translations> ... <lang1 …

0
91
Member Avatar for JoeSarayuth

i have start learning Bootstrap to design my first Searching Website and i use dropdown list for filter topic what user need to search and input text box for key word (like this pic http://upic.me/i/zl/9aaaa.jpg) This below is my code <!-- Search Container--> <div class="container" id="searchBar"> <div class="row"> <div class="col-xs-8 …

0
90
Member Avatar for FarrisFahad

Hi, I build websites using five basic languages. html, css, js, php, and mysql. I have build a lot of websites, but my problem is that everytime I start a new project I start with a blank page. It's time consuming. I wonder if any of you guys have a …

Member Avatar for vegaseat
0
349
Member Avatar for zzmrzz

Hello fellow coders, can anyone make me a working login system, like login, register, and send all files + the Database file (Test DB file)? Please be kind, it doesn't take long to made... Thanks - Martin

Member Avatar for imti321
-9
374
Member Avatar for davy_yg

hallo, I would like to create session system: page1.php <?php session_start(); ?> <p><div style="margin: 50px 0 0 240px;"><img src="../../images/<?php echo $_SESSION['$banner']; ?>"></div></p> It already works! After I click the page2.php through the navigation, then: I wonder why the banner that appears different from page1.php, I thought it suppose to be …

Member Avatar for Taywin
0
104
Member Avatar for Ventech_IT

Hi guys, Could someone please help me with a small problem i am having? I want to display a message if there are no entry's in a table but for some reason i cant get this right. Here is my Controller: ----------------------- <?php if ( ! defined('BASEPATH')) exit('No direct script …

Member Avatar for Ventech_IT
0
256
Member Avatar for Aamit

How to read clean data from .docx or .doc file? $file_url="http://www.abc.com/upload/test.docx"; $doc_data = file_get_contents($file_url); it's gives out put like  �T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö��� ���(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���� �����PK�����!�‚Š¼ú��������[Content_Types].xml how to get clean data like text file??

Member Avatar for Muzammil_2
0
7K
Member Avatar for imti321

<?php $height = 100; for ($i=0; $i<$height; $i++){echo str_repeat(' ',($height-$i)).str_repeat('*',$i).'<br />';} ?> May you Daniweb people Grow Like this one.

Member Avatar for imti321
0
271
Member Avatar for <M/>

I am trying to collect my form inputs into a csv file and for some reason the csv file records some of the styling and does not display numbers (phone number and date). I am not sure where I got it wrong. Here is what I have so far. <?php …

Member Avatar for imti321
0
237
Member Avatar for Christopher_9

Hello to all readers, I see many examples of report printing through xml-rpc for OpenERP 6 for the pyhton language but I can't seem to find any for PHP. Anyone can help with this? I run a payroll system based with PHP and I do everything through xml-rpc to talk …

0
55
Member Avatar for reibi

Hello everyone, I was looking for a code like to store iframe's id in javascript's variable inside different divs. <div id="player"> <iframe id="SAR7KmiCHto" width="560" height="315" src="http://www.youtube.com/embed/SAR7KmiCHto?enablejsapi=1" frameborder="0" allowfullscreen></iframe> </div> <div id="player2"> <iframe width="560" height="315" src="//www.youtube.com/embed/9P9JSgZwrjc" frameborder="0" allowfullscreen id="9P9JSgZwrjc"></iframe> </div> In above code there are two div ids i.e player and …

Member Avatar for mangel.murti
0
307
Member Avatar for ravi142

Hello, I am working on PHPExcel But in there calculation 0.625 we want to coming by dynamical from database. bellow brief description. They all used to be 62.5% of the delivery fees as seen below: `setCellValue('G'.($start_row+2), (($total_delivery/11)*10)*0.625);` all the drivers can have different percentages assigned to them and we need …

0
273
Member Avatar for Osagie_1

I have an xml structure : <Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> </Articles> i created a method AddRecordByInfoMatch() that attempts to add …

0
134
Member Avatar for Stefce

Hello im not too sure how is this called but i will try to explain.. I want to make the form to get updated on every "Status Update" so for ex. like Facebook when you are posting a new status it gets updated the "body" of the page with new …

Member Avatar for Taywin
0
213
Member Avatar for akhil1

Hi, I am new to web development so please bear with me, i am looking to create statistic calculators like f test etc. In order to do that, i need to provide input fields to enter multiple numbers in input area along with providing ability to copy paste data from …

Member Avatar for akhil1
0
177

The End.