39,387 Topics
![]() | |
Im a newbie in PHP and I want to create a simple webpage app for my website, I was able to produce this page base on a tutorial here. <?php $con = mysql_connect("localhost","*****","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("*****", $con); $result = mysql_query("SELECT * FROM … | |
Hi, I have this code that selects the value of a combobox and it inserts into a input: <?php echo '<input id="matr_input" style="margin-left:15px;margin-top:10px;" name="id_cat"></input>'; $select_images="SELECT * FROM categories WHERE id_category='"./*combobox value*/."'"; $query_images=mysql_query($select_images) or die(mysql_error()); $image=mysql_fetch_assoc($query_images); ?> <?php $nome_arquivo = $image['img_category']; $arquivo = explode('images/', $nome_arquivo); if($image['img_category']!=''){ echo '<div style="margin-left:15px;">'.$arquivo[1].'<a href="delete_category.php?id='.$image['id_category'].'"><img width="10" … ![]() | |
Hello everybody, I have a login page which uses sessions to go to different pages and still allow the user to login when he returs to the initial logi.php page, but now I have implemented the different languages and I realize that whenever I hange the language (which is also … | |
Please help me..I've the following code and I entered an account number in bank account number field but in database was changing the value. what's wrong? My input in bank account number field is :112046067391 but the output is :2147483647 In database I set it to int(20) but still the … ![]() | |
My PHP script can fetch content from a div id, but what is the way to filter this fetch data and exclude some of its content which has this div id `<div id="navbar" class="n">content here content here</div>` I have tried with this code but its not working $regex = '#\<div … | |
I'm new to PHP and was given a code snippet that looks like this: { $DB = new DB('xxxxxx','oooooo','gggggg'); $return_result = false; $this->clear_data(); $m = new xmlrpcmsg( 'ldapxml.authorize' , array( new xmlrpcval($user_name, "string") , new xmlrpcval($password, "string") ) ); // this is just a temp server for now $c = … | |
Hello, I am having trouble with this custom admin panel. It is pretty simple, it has an admin login page, an index page , and a page where you can Add and Delete invetory items ( <--this one is the one with the problem ) Everything was working okey, I … | |
hey guys, im trying to change a menu items color, if a user was on the members section, the member menu icon would be a different colour to the other menu items etc. initially the menu item <li> has no css class assigned to it, but once they visit a … | |
Hi, i am trying to store some values into a database, but upon trying to add i am getting a "Column count doesn't match value count at row 1" i believe i am passing something incorrectly but was hoping someone could point me in the right direction i have included … | |
Hi, I wanted to create an online coding competion. Does anyone no how to go about it? I also want to apply time limits to the coding challenges. There are some existing tools but I need to create a some new features. Can anyone tell me how to start? Thanks | |
Hello, how to get all data in .php file Example i have webwebweb.com/work.php?worker=1&shop=52 How can i get **strings in worker to string [] worker strings in shop to string [] shop?** Thanks in advance | |
Hi, I have some basic php knowledge. I want to know about ' -> ' sign. What does this arrow means? I know it is very sipmle question but don't know. I am learning php from my own effort. Jahur | |
Hi, how many index i can create for one table in mysql. | |
Hi, Please help me work out this mod-rewrite issue while trying to make my urls SEF. RewriteEngine On Options +FollowSymLinks # Browse Category RewriteRule ^category/[!/.]*([A-Za-z]+)/?$ /browse.php?cat=$1 [NC,L] # View Item RewriteRule ^view/([0-9]+)/([a-zA-Z0-9-]+)$ /view.php?item_id=$1&sef=$2 [NC] This is my current .htacess. The browse category rule is working ok converting - http://localhost/browse.php?cat=people into … | |
Hello, i would like to know what happens at the backend(access to remote database), when someone clicks check availability on a, say an online travels, hotels, flights booking page, and he gets informations like if the rooms or flights are available on so and so dates and things. I would … | |
Ok, here is my code below. I am just learning this language and I need help with a question for a error message if statement. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Product Discount Calculator</title> <link rel="stylesheet" type="text/css" href="main.css" /> </head> <body> <div id="content"> <h1>Product Discount … | |
Hey everyone, I know this probably seems simple but for some reason I can't get my head around the correct concept. Bare with me please. I have a form in html that is for uploading photos in a to a specific category. However I want to add a select menu … | |
i have a registration form where members fill in datas, clicking on submit button i got this Warning: extract() expects parameter 1 to be array, null given in C:\Users\0382\xampp\htdocs\cidia\source\New_member.php on line 22 Notice: Undefined variable: firstName in C:\Users\0382\xampp\htdocs\cidia\source\New_member.php on line 27 Notice: Undefined variable: lastName in C:\Users\0382\xampp\htdocs\cidia\source\New_member.php on line 27 … | |
hi everybody i got this page form some template that shows items in the page with pagination system but i want to keep this method without any pagination i dont want to spilit number of items i just wanna see all of the items that it read from db in … | |
This is my "left menu" it appears as an include in all the pages: <?php // array of pages for the left menu $left_menu_items = array( 'book.php' => 'Book Design', 'identityDesign.php' => 'Identity Design', 'logos.php' => 'Logos', 'packaging.php' => 'Packaging', 'index.php' => 'Selected Projects', ); // start the html string … | |
i want to count number of occurance of "a" in string "ajax". in PHP Output will be 2. | |
Hi all, I am in need of assistance. I am trying to configure PEAR with XAMPP 1.8.0 on Win 7 64Bit. I download the go-pear.phar (http://pear.php.net/manual/en/installation.getting.php) and ran the instructions. Updated my env path. All looked ok. Tried to run `pear help` and i get nothing, no error, not a … | |
Hi, I have a form to upload images one at a time with text to a mysql database table, but I need to resize these images before adding them to the table, I want to retain aspect ratio and I need it to always resize the longest side of the … | |
Hello Folks! New to Daniweb and programming in general! I've seen a couple other posts on this issue, but I wasn't able to sort it out with those suggestions. I'm getting the error mentioned in the subject, and I suspect it's something to do with my INSERTS/VALUES, but this is … | |
I have the following table structure of my db: * tbl_project * tbl_employee * tbl_deliverable * user_to_deliverable as tbl_prjct and tbl_deliverable has 1-many relation, tbl_employee and tbl_deliverable have many-many relation so they are splited into user_to_deliverable table All i want is that a query to show project_name(from tbl_project), project's deliverables … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, Farcourts, Jonnys, Relax"/> <title> Agents </title> <link rel = "stylesheet" type = "text/css" href = "assessment.css"/> </head> … | |
Hello, I am trying to install apache xampp. Get this error? #1146 - Table 'phpmyadmin.pma_recent' doesn't exist Why is it? Thanks. | |
Hello, I want to upload only two word documents for all no. of records available in the table. So is it possible to make a query for uploading to run in mysql for all records at only one time? OR is it possible to make a script in php? I … | |
I am having some issues with some code i am trying to use. Can you please take a look at the code and give me some fixes to this. The error i am getting is this: Warning: Wrong parameter count for mysql_fetch_assoc() in /home/content/33/5271833/html/cfr_forms/edit.php on line 10. What i am … ![]() | |
I will give an example of what I have so far but, most parts will be left out for simplicity sake: pt1) <?php echo "<img src='$path' width='400' height='400' alt="; ob_start(); echo "'$name'"; ob_end_clean(); echo "/>"; } ?> pt2) A couple of lines down from this is (where i want to … |
The End.