39,316 Topics
| |
When I view my list in my admin I would like to be able to make sure the controller name is sorted asc Currently it does not sort alphabetically 'name' => ucwords(str_replace('_', ' ', $controller)), **Function** public function index() { $data['title'] = "User Group Permissions"; $controller_files = $this->get_installed_permissions('name'); $data['controller_files'] = … | |
I am able to view content displayed from the API but i'm not able to extract the various contents. my codes are below: function parseInfo($barcode) { $url = "https://archive.org/advancedsearch.php?q=$barcode+AND+licenseurl:[http://creativecommons.org/a+TO+http://creativecommons.org/z]&fl[]=identifier,title,mediatype,collection&rows=15&output=json&callback=IAE.search_hits"; $contents = file_get_contents($url); // $json = json_decode($contents, true); return $contents; } echo $array = parseInfo($barcode); //var_dump($json); for ($i = 0; $i … | |
I've used different methods and found it difficult to integrate mashape for a dictionary.. My code is below: require_once 'unirest-php/src/Unirest.php'; // These code snippets use an open-source library. $response = Unirest\Request::get("https://montanaflynn-dictionary.p.mashape.com/define?word=irony", array( "X-Mashape-Key" => "T2rwS1jyBSmshKoZB5Un2kfpvgtRp1hUS9pjsnHvPoGNHIMpda", "Accept" => "application/json" ) ); What am I not getting right Regards | |
Hi everyone and Good day!Am new to php and I have a problem with the code below. <?php if (is_user_logged_in() ) //only logged in user can see this 'echo'<href="http://localhost/itsz.com/profile">Profile</a>'; ?> What i want it to do is to only show the link "profile" 'only' to logged in users but it … | |
Hello, I am looking for ckeditor that's able to upload image from computer directly without url - unfortunately there is license on it. What about tinymce also works the same way. I do not know how to make ckeditor my own version that's able to upload file directly from computer. … | |
I'm not able to get the content of this array, please can someone help? Where Am I getting it wrong? Below is the code $barcode = "9780980200447"; function parseInfo($barcode) { $url = "http://www.librarything.com/api_getdata.php?userid=timspalding&showstructure=1&max=10&showReviews=1&showTags=1&reviewsOnly=1&name=Jesus+is+Lord&&apikey=b27cb381baddff9c49b9dd27d9d96651&responseType=json"; $contents = file_get_contents($url); $json = json_decode($contents, true); return $json; } $array = (parseInfo($barcode)); //print_r($array); foreach ($array as … | |
Hello , today I was developing a short url system and I created this class to help me encode / decode integer (id) to small string. That way for example “Ac” means 3674 . Because I believe that it may be helpful to others too I share it here. Notice … | |
Hi I am not getting any response from the Cutenews forum. So perhaps Daniweb experts can help me. I have a couple of websites that have a Cutenews version 1.4.6 search form working. For my latest website I decided to use cutenews 2.0.2. As far as possible I have made … | |
Any body help me i am suffering from converting array to string Array ( [0] => 10 [1] => 40 [2] => 00 ) Array ( [0] => 10 [1] => 41 [2] => 00 ) I want convert to php $var1="10:40:00"; and $var2="10:41:00"; any body help me | |
i want to store input text box value into php variable without form submit and without using ajax,js,jquery etc., is it possible?? | |
Hi I want to read a pdf file using php. but i want toread that file line by line and made changes in it is it possible thanks | |
Hello everyone im working on like button which im a little confuzed with my problem i have this sql and im only able to like the tickets which are in my account $sql = "UPDATE `kladilnica` SET Liked = Liked+1 WHERE ticket_id = '".$like."' AND Username = '".$user."'"; but without … | |
Hi Guys hope your all well, I have found some code to create a quiz and this I have done, it was working a few weeks ago... but for some reason its now decied to stop working! When I run the page on my localhost I'm getting the following eorror … | |
I have a gallery in grid. For eg: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSegNVXMSnTRzHETnAjZXCd6siwHQysMXc_jp1OyiSDie2_9jhsIg Each row can cont max of 4 images. I have written while loop. i want to get the total count of images in each row For eg: row1 -> 4 (images) row2 -> 3 (images) <!-----------------------------------------------------------------------------> <div class="main_bg"> <div class="top_bg1"> <div … | |
| i have continued my developing my code on e-commerce website to grant the discount to client on basis of coupon code entered <?php /** * Consider and apply voucher codes * Types of voucher code * - = FIXED AMOUNT OFF * % = PERCENTAGE OFF * s = SET … |
I have been working with this table for some time now and i cannot figure out how to get the nested feature working correctly, when i try to insert the nested table into the original table is admitidly does go in but it removes all the formatting from my previous … | |
Hi I am having a bit of a problem with some JavaScript and PHP. The script (below) works exactly as wanted, but if I run it with the latest version of IE, the JavaScript appears to be looping and it makes the link flash, and it can only be stopped … | |
Hi friends, I am using MSSQL Database, it has more than 13246 reconds in a table. I am trying to display it in a table with bootstrap. But i am unable to load my datas. can any please help me how to resolve this my code is below <?php session_start(); … | |
Hi Guys! i have the following code: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>View shopping cart</title> <link href="style/style.css" rel="stylesheet" type="text/css"></head> <body> <br> <div id="books-wrapper"> <!-- #content to center the menu --> <div id="content"> <!-- This is the actual menu --> <ul id="darkmenu"> <li><a … | |
Hi guys, I have one simple logical question that I seem not to figure it out, sadly... We have a list of objects and I loop trough them, list of products. We need to create anchor maps for each category, so I did a comparison with temp variables to check … | |
$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only … | |
$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only … | |
Hi guys, I need your help, I want to close a page when a button is pressed. I'm using the script `add_address.php` to output a list of email addresses from the `message` box and I want to output the email addresses to the `text` box in the `send.php` script Here … | |
Hello. I have displayed data from SQL Table in the HTML form and I want to use this same form to update COMMENT field in the sql. I have already coded my page as follows; <?php // Connect to server and select databse. $con=mysql_connect("localhost", "root", "")or die("cannot connect"); mysql_select_db("ison",$con)or die("cannot … | |
Hello, I have a script that allows user to upload a file to a mysql 5 database. That is working OK. The File size is accurate. However, my download script is for some reason downloading the files without any content - 0KB. The files are OK when I open them … | |
Hello Guy, I have coded a successful log of accounts in localhost but when i uploaded this to webhost. These set of codes dont work anymore. Please help these are the codes. Student_login_handler.php include_once 'Connect.php'; $flag = ""; $learner_id = mysql_real_escape_string(htmlentities($_POST['learner_id'])); $student_password = mysql_real_escape_string(htmlentities($_POST['student_password'])); $student_id = htmlentities($_GET['id'], ENT_QUOTES); $student_id = … | |
I have news pages generated dynamically using page news.php taking data that is input into a MySql table and would like to have the page title to be the same as the news headline of each page. I'm searching internet and although there is lots of info on this subject … | |
I have this table that i have been modifiying and working with for some time now, its for displaying lots of data both condensed and expandle for each row but also searchable and sortable. Here is my problem, my table used to have perfect sorting and searching before i added … | |
Is it possible to integrate Openbiblio with other free and subscription based libraries like openlibrary etc | |
Hi Everyone, I am looking for the best way to create a PHP MYSQL Query to help me output a complete list of categories from my db. The categories are football team names & I would like to display everyone who supports each football team. For Instance: I have 44 … |
The End.