39,326 Topics
| |
I'm doing this $query = mysql_query("SELECT M.msg_id, M.uploads, M.message, M.description, M.type, M.text, M.views_count, U.username, C.name as country_name FROM users AS U INNER JOIN messages AS M ON U.uid = M.uid_fk INNER JOIN head_networks AS H ON M.network_id=H.network_id LEFT JOIN countries AS C ON M.country_id=C.country_id WHERE M.type='A' "); $Order = " … | |
I need to create a system that requires the process to add, edit, delete, and view. I have some problems with editStaff.php, I can edit the data, but it does not display the data in the database when doing the process. Do you know why? index.php <?php include("authenticationStaff.php"); include ("dbase.php"); … | |
<?php $picurl=$row['PicUrl']; >? <td><input type="file" name="userfile" ></td> | |
Hi, How can i change My Wishlist in to My Shopped List in magento.? | |
<td>Upload your pic</td> <td><?php if(!empty($picurl)){echo '<img src="'.$picurl.'" align="left"width="50px" height="50px"/>';}?> <input type="file" name="userfile" ></td> </tr> <tr class="tableheader"> <td colspan="4" class="last"><input name="submit" type="submit" class="button" value="Update"/></td> </tr> </table> </form> <?php if (isset($_POST["submit"])){ if($_FILES['userfile']['type']=="image/jpg" or $_FILES['userfile']['type']=="image/jpeg" or $_FILES['userfile']['type']=="image/gif" or $_FILES['userfile']['type']=="image/png"){ echo "Error number: ".$_FILES['userfile']['error']."<br/>"; //$_Files is a global array,its 2 dimen if(file_exists("image/".$_FILES['userfile']['name'])){ echo "file … | |
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 … | |
<?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 | |
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 … | |
I need help to craete a credit card payment method in php. Thanks | |
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 … | |
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 | |
<!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> … | |
| 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 … |
| 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 … |
| 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 … |
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 … | |
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); | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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! | |
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>"; } | |
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 | |
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 … | |
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 = … | |
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 … | |
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 … |
The End.