39,323 Topics

Member Avatar for
Member Avatar for Ventech_IT

Hi there, I have a little bit of a problem, i keep getting the following message when i try retrieve info from my database: "mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given" Here is my PHP code i don't see the error could someone please help? <?php require("connect.php"); //Check …

Member Avatar for cereal
0
210
Member Avatar for rjusman90

<?php $User_ID=$_SESSION['UserId']; $query = mysql_query("SELECT * FROM Users WHERE UserId='$User_ID'"); $row = mysql_fetch_array($query); $filename=$row['PicUrl']; if(isset($_SESSION["UserName"])){?> <img src="images/<?php echo $filename?>" align="left"width="50px" height="50px"/> <?php echo $_SESSION["UserName"]; echo"<li><a href='logout.php'>Click here to Logout.</a></li>"; echo"<li><a href='user_update.php'>edit your account detail</li>"; } ?> if pic url is empty then hide img scr

Member Avatar for rjusman90
0
211
Member Avatar for davy_yg

Dear all, I have a task project to create flash live video streaming like this: [bumitv](http://bumi.tv/tv.php?point=3) Which also has many channels. The typology is like this: Satelite ----> Adobe Flash Media Live Encodes ----> Adobe Media Server ---> IIS ---> bumitv (or own web creation web) Any clue how to …

Member Avatar for davy_yg
0
438
Member Avatar for Sikander Nasar
Member Avatar for Dani
0
193
Member Avatar for Riteman

I have a contradiction in creating a website for Job seekers, confusion in choosing the language. I assume here that there would be atleast 100 people access the database at the same time to Create a new account, update their existing account and at the same time some would search …

Member Avatar for Riteman
0
308
Member Avatar for lloydsbackyard

i have an html textbox use for searching and when I type on the textbox the field in database will appear as dropdown...pls..help.thanks

Member Avatar for lloydsbackyard
0
274
Member Avatar for rolluu

<!DOCTYPE HTML> <html> <?php $style=isset( $_GET['color'] ) ? $_GET['color'] : ''; $text=$_GET['text']; ?> <head> <title>Test!</title> <style type="text/css"> div { text-align:center; margin:0 auto; } </style> </head> <body> <div> <form action="index.php" method="GET"> <input type="text" name="text"><br> <input type="radio" name="color" value="blue">Синий<br> <input type="radio" name="color" value="red" >Красный<br> <input type="radio" name="color" value="green">Зеленый<br> <input type="radio" name="color" value="black">Черный<br> …

Member Avatar for diafol
0
192
Member Avatar for iamthwee

I have a doubt with my codeigniter .htaccess file. I was hoping there was something I was missing. My question is I need a different .htaccess file for my live server and one for localhost. Locally, I'm using macos and linux, on my live server I am using centos with …

Member Avatar for veedeoo
1
2K
Member Avatar for iamthwee

Hey guys, I'm creating an ultimate CMS with codeigniter, at the moment I've got the following -login system with email -installer -menu builder with drag and drop -forums with search and create categories -Blog and and edit posts I'm looking for a page builder now. Specifically to drag and drop …

Member Avatar for diafol
0
943
Member Avatar for iamthwee

Hey guys, At the moment more for convenience I'm giving my codeigniter files recursive 777 permissions which is bad. I'm still in the development stage so it is not an issue. But upon release for a production environment what is the best practice for the permission of the files. Specifically …

Member Avatar for iamthwee
0
321
Member Avatar for davy_yg

I try to embed google maps in my website and I ge this message: The Google Maps API server rejected your request. This API project is not authorized to use this API. How to troubleshoot the request? Key for browser apps (with referers) API key: AIzaSyCjFKpq6lrrbfaii0U0j6aHMWkB2K1QUNs Referers: Any referer allowed …

Member Avatar for diafol
-2
289
Member Avatar for davy_yg

What is this warning means? Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\free-prowebsite\site_pro\administrator\adminnav.php:160) in C:\xampp\htdocs\free-prowebsite\site_pro\administrator\admin\file-upload.php on line 224 line 224: header('Location: ' . SUCCESS_URL);

Member Avatar for diafol
-1
212
Member Avatar for vinctham91

I'm creating an Web-Based Inventory System, currently stucked at this module where I need to scan QR code. The process flow that I want to achieve should be like this: 1. Scan QR code containing the inventory ID wirelessly using an Android app 2. Show the information retrieved from the …

Member Avatar for diafol
0
197
Member Avatar for davy_yg

Hello, How to create a table with a sort feature. You can sort the table based on the header of the table. For example: Name City Age David Brazil 28 Vicky Spain 25 Ashley Spain 21 If you click the header=name it will be sort by name, else if you …

Member Avatar for iamthwee
0
124
Member Avatar for mutahirpirzada

hp $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = ""; $mysql_database = "farm_house"; $prefix = ""; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database"); mysql_select_db($mysql_database, $bd) or die("Could not select database"); $myysql= "SELECT customerinformation.CustomerFullName, customerinformation.CustomerID, customerinformation.Housenumber, customerinformation.Sector, customerinformation.StreetNumber, customerconsumption.MilkDelieveredCow, milkrate.CowMilkRate, (customerconsumption.MilkDelieveredCow*milkrate.CowMilkRate) AS t_amount_cow, customerconsumption.MilkDeliveredBuffalow, milkrate.BuffaloMilkRate, (customerconsumption.MilkDeliveredBuffalow*milkrate.BuffaloMilkRate) AS t_amount_buff, …

Member Avatar for Bin_2
0
5K
Member Avatar for berserk

Table: numdata id numb 1 123 2 456789 3 123 4 456789 5 123 6 456789 7 123 8 456789 9 123 10 456789 11 123 12 456789 13 123 14 456789 ...... What i would like to do is combine the data in numb only, so the desired data …

Member Avatar for diafol
0
393
Member Avatar for jKidz

Hi guys, This is related with my last question on 'Store data in PHP page' article. However I saved that things in `settings.php` Such as, *settings.php* <?php //SITE URL $url = "Sample.com;" //SITE NAME $sitename = "Sample LLC"; ?> I have included that settings.php file to index.php But when I …

Member Avatar for diafol
0
91
Member Avatar for GlenRogers

Whats wrong with this query? For example $brand holds the value 'apple' Then I get the error 'unknown column 'apple' Can anyone see the problem? if(isset($_GET['brand']) ? $_GET['brand'] : 0){ $brand = (isset($_GET['brand']) ? $_GET['brand'] : 0); $sql = mysqli_query($link, "SELECT COUNT(id) FROM products WHERE brand = $brand AND status …

Member Avatar for diafol
0
3K
Member Avatar for azapovjednik

Hello, by using [GOOGLE PLAYGROUND](https://developers.google.com/oauthplayground/) we can see the flow of how oauth2 works.. ok, I understood.. my question is: is it possible to validate google access token via php form by submittin email address and Token? Thank you!

Member Avatar for Dani
0
130
Member Avatar for garyrichard

I am retriving image from mysql database and want to hyperlink this processed image but not able to find solution for ($i = 0; $i < $rows; $i++) { $description = mysql_fetch_array($result); $img_str= base64_encode($description["nImage"]); echo '<a id="zoom" href="data:image/jpeg;base64,'.$img_str.'"><img src="data:image/jpeg;base64,'.$img_str.'" width="150" height="150" /></a>'; if($i%3 == 2) echo "</br>"; }

Member Avatar for cereal
0
2K
Member Avatar for anil14353

I want to do a redirection where a user enters their user name in the URL and redirects to their profile, like this: example.com/joe redirects example.com/profile.php?username=joe I want to do it like Facebook does

Member Avatar for Bachu
0
4K
Member Avatar for jKidz

Hi friends, In my site, simply I want to save the configuration data, site details in the php file. For an example, in vBulletin they are using config.php file to save all the general details. // ****** DATABASE TYPE ****** // This is the type of the database server on …

Member Avatar for jKidz
0
192
Member Avatar for yeeaki

i'm not sure what is the syntax error. I try in this source code in dreamweaver, it shows line 8 is a syntax error. $destination = realpath(‘../../app/webroot/uploads/excel/’); App::import(‘Vendor’, ‘php-excel-reader/excel_reader2’); //import statement class UploadsController extends RealTimeAnalysisAppController public function upload() { $destination = realpath(‘../../app/webroot/uploads/excel/’); //Set your upload path here if(isset($_FILES['Upload']['XLS_File'])); $ext = …

Member Avatar for yeeaki
0
507
Member Avatar for ravi142

Hello I am build pagination but its give me stuck. **admin_cont Controller Page** $this->load->library('pagination'); $config['base_url'] = "http://localhost/Job-portal-CI/admin_cont/search_me"; $config['total_rows'] = $this->db->get("admin_emp_job_description")->num_rows(); $config['per_page'] = 2; $config['num_links'] = 20; $this->pagination->initialize($config); $data['records'] = $this->db->get('admin_emp_job_description',$config['per_page'],$this->uri->segment(3)); $this->load->view('admin_jobseeker/search_lists',$data); **View Page** <?php echo $this-> table-> generate($records); ?> <?php echo $this->pagination->create_links(); ?> **Problem** Its give me Link but when …

Member Avatar for ravi142
0
2K
Member Avatar for NuGG

I have been having trouble getting a result from this wondered if someone may be able to help me. I am trying to decode/parse this json output from a URL so that I can extract "result" and "success" and place them into variables. So far I cant even parse the …

Member Avatar for NuGG
0
324
Member Avatar for Dani

Just upgraded to Firefox 30.0 and sessions no longer seem to work. The cookie just doesn't set. Using `$this->session->set_userdata()` Not using Firebug, although reading on the web indicated it has been a culprit with similar issues.

Member Avatar for Dani
0
374
Member Avatar for Bile

-->>Hello,My problem is how will a trigger a php Function based up on Change event of a listbox value. My Page has the Field as those in the screenshot below the code: So when a driver is selected on the list all his/her details should be populated in the remaining …

Member Avatar for Bile
0
2K
Member Avatar for himanshu.1691

i tried to mimic the code of a tutorial for a live updatable table....dat is connected to the MYSQL server .... i copied it and edited it a bit...but its not working... i was not able to understand the code so dont knw where the problem is here is the …

Member Avatar for nikkitata
1
1K
Member Avatar for Bin_2

hi all! it might look similar to previous question but actually different.. i'm trying to calculate stock value. for this i want to use "average last purchase value" of item. like if closing stock is 14 and purchase detail is like this 2014/2/2 15pc @ 38000 2014/2/15 5pc @ 36000 …

Member Avatar for Bin_2
0
2K
Member Avatar for iamthwee
Member Avatar for cereal
0
352

The End.