38,019 Topics

Member Avatar for
Member Avatar for vissureddy
Member Avatar for rpv_sen

Hi Friends I am trying to insert into my table. But i am getting an error message as below Notice: Undefined index: img_path in D:\xampp-portable\htdocs\cgoogle\entergoogle\addpages.php on line 21 Notice: Undefined index: img_path in D:\xampp-portable\htdocs\cgoogle\entergoogle\addpages.php on line 23 can any one please help me to resolve. **my code is** <?php if(isset($_POST['Submit'])) …

Member Avatar for rpv_sen
0
338
Member Avatar for urbanthistleuk

Hello, I am just after some information if anyone knows how to create a system in php that auto assigns a user at random when a record is logged in a mysql database I have been tasked to build a logging system for which uses a database to store the …

Member Avatar for urbanthistleuk
0
410
Member Avatar for rajendher

can anybody please tell me how rewrite .php files to .html files in a folder. or how to rewrite urls like http://examle.com/files/ (actual path http://example.com/files.php) using web.config file.

Member Avatar for pritaeas
0
250
Member Avatar for deadsolo

Hello Everyone, As the title implies I need help extracting a name out of a string, my knolwedge of regular expressions is pretty limited. The strings I will be working with will look like this: 12345 Aragon Denvil L. 123-1234 A123456 AragonD AragonAD@fake.mail.us 1000001234 ABC-ABC 123ABCD123 ABCD 1234 A1234 ABC12345A1 …

Member Avatar for deadsolo
0
611
Member Avatar for oanahmed

Hi Friends! I want to create a dynamic website. So, to create it I need to know PHP and MySQL. I went to [amazon.com](http://www.amazon.com) and searched for books. I was showed by results of **learning php and mysql**, **learning php** and **learning mysql** book names. I couldn't figured whether should …

Member Avatar for oanahmed
0
344
Member Avatar for Wale Adegbite

I want to populate a table from database, but don't know how to give it auto serial no from 1 to the last number starting before Staff ID. Here is the line of codes: <?php mysql_connect("localhost","root","") or die ("Unable to Establish connection".mysql_error()); mysql_select_db("demoDB") or die ("unable to select database".mysql_error()); $sql="SELECT …

Member Avatar for Wale Adegbite
0
2K
Member Avatar for iamthwee

So there is a lot of useful stuff that comes with code igniter. I'm looking at the pagination class and whilst it works well with table dumps I'm thinking I'd have to seriously hack it to get anything remotely useful or relevant to what I need. So was just thinking …

Member Avatar for iamthwee
0
180
Member Avatar for CreatorZeus

i keep getting a error on the next page saying that hotel1 is an undefined index: page 1: foreach($child->children() as $gchild) { //echo ">> " . $gchild->getName() . ": " . $gchild . "<br>"; echo "<tr><td><input type='radio' name='my' value='my" . $gchild->name . "'></td>"; echo "<td><input type='checkbox' name='hotel". $r."' value='" . …

Member Avatar for pritaeas
0
205
Member Avatar for sallaudin

class Index_model extends MY_Model { protected $user_id=array(); private $last_id; public function __construct(){ $this->load->database(); $this->_table='profiles'; } public function insert_step_1($spram) { $firt_name= $this->session->userdata('first_name'); if($first_name == '' || $last_name == '' || $relationship_to_senior == '' || $email == '' || $insurance == '' || $price_range == '' || $if_insurance == '' || $facility_placement …

Member Avatar for iamthwee
0
113
Member Avatar for ngonix

Hello, I have an application which shows users which are currently logged into the system. The web application is running on a server and everytime a client on another computer logs in, he/she appears on the active users list. Below is some of the code: loggedusers.php ...... <table cellpadding="3"> <tr …

Member Avatar for iamthwee
0
3K
Member Avatar for baig772

I have a form for editing a user record. Its updates the record for the first time but when i press the update button again, it shows me an empty screen and it unsets the picture as well. I cannot figure out what I am doign wrong Below is my …

0
183
Member Avatar for Krstevski

Hello friends, this code/snippet is nothing special, just a simple rss reader class written in PHP. Many times in my projects I use this script to get an RSS feed from some website and now i decided to share with you. This script can be useful for your projects or …

Member Avatar for diafol
0
936
Member Avatar for msmnikolakrga

I want make list years in PHP.List contains years of 1900 to 1992. Second problem is send my list to another adress in GET metods.

Member Avatar for Webville312
0
152
Member Avatar for Iikeloa

Hi I have this table name age John 14 Katy 14 Mark 15 and I want the number of rows where the age is equal to 14 , so in this example the result should be (2) but my problem is that I dont know how to start , so …

Member Avatar for urvisha
0
152
Member Avatar for CarterLangley

Hi guys, back again! OK, this is what I am sitting with now. I have to select a person from the database and in the select box display their first, middle, and last names. The data returned should be the fields id to insert into the foreign key id of …

Member Avatar for diafol
0
221
Member Avatar for network18

Hello, I have installed apache 2.2 but when I try to make it listen to 80, I can browse the target page and access denied error is displayed. But when I change the listening port to say 8080, I could browse using this port. I have already tried to check …

Member Avatar for network18
0
314
Member Avatar for Mike_danvers

Can anybody tell me briefly and in details the procedure to create a system where a logged in user can create multiple photo albums and can upload images in ecah of them.just like we do in any social networking sites. preferably:-if an user is logged in then he will be …

Member Avatar for veedeoo
0
158
Member Avatar for Awah Mohamed

hi guys, well, i was looking at some stuff in my laptop and found the following encoded code it is from a wordpress template but its decoding mechanism is very interesting and i would like to know how it is made so here is the full code: <?php $_F=__FILE__;$_X='Pz48P3BocA0KDQokcDFkZF9nMzRkID0gJyc7DQoNCmYzbmN0NDJuIHAxZGRfdGg1bTVfY3I1ZDR0cygpIHsNCglnbDJiMWwgJHAxZGRfZzM0ZDsNCgkkY3I1ZDR0cyA9ICdENXM0Z241ZCBieSA8MSB0MXJnNXQ9Il9ibDFuayIgdDR0bDU9IkI1c3QgU1VWIiBocjVmPSJodHRwOi8vczN2LnI1djQ1dzR0Mm5sNG41Lm41dC8iPkI1c3QgU1VWPC8xPiA0biBjMjJwNXIxdDQybiB3NHRoIDwxIHQxcmc1dD0iX2JsMW5rIiB0NHRsNT0iQTNkNCBTVVYiIGhyNWY9Imh0dHA6Ly9zM3YucjV2NDV3NHQybmw0bjUubjV0LzEzZDQtczN2LyI+QTNkNCBTVVY8LzE+LCA8MSB0MXJnNXQ9Il9ibDFuayIgdDR0bDU9IkluZjRuNHQ0IFNVViIgaHI1Zj0iaHR0cDovL3Mzdi5yNXY0NXc0dDJubDRuNS5uNXQvNG5mNG40dDQtczN2LyI+SW5mNG40dDQgU1VWPC8xPiwgMW5kIDwxIHQxcmc1dD0iX2JsMW5rIiB0NHRsNT0iTDV4M3MgU1VWIiBocjVmPSJodHRwOi8vczN2LnI1djQ1dzR0Mm5sNG41Lm41dC9sNXgzcy1zM3YvIj5MNXgzcyBTVVY8LzE+JzsNCgkkcDFkZF9nMzRkID0gJ2M1NW9lMDBpLTA1NzktdWRjOS04b2U3LTgwY2ZiNmlvOGJjZSc7DQoJJG01bjMgPSB3cF9uMXZfbTVuMygxcnI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oNW01X3ByNWwzZDVfNW5kKCkgew0KCSRjMm50NW50cyA9IDJiX2c1dF9jMm50NW50cygpOw0KCTJiX2c1dF9jbDUxbigpOw0KCWdsMmIxbCAkcDFkZF9nMzRkOw0KCTRmICghNW1wdHkoJHAxZGRfZzM0ZCkgJiYgKGYzbmN0NDJuXzV4NHN0cygncDFkZF90aDVtNV9jcjVkNHRzJykpKSB7DQoJCTRmICgkcDFkZF9nMzRkID09PSAnYzU1b2UwMGktMDU3OS11ZGM5LThvZTctODBjZmI2aW84YmNlJykgew0KCQkJNWNoMiAkYzJudDVudHM7DQoJCX0gNWxzNSB7DQoJCQl3cF9kNDUoJ1MybTV0aDRuZyB3cjJuZy4nKTsNCgkJfQ0KCX0gNWxzNSB7DQoJCXdwX2Q0NSgnUzJtNXRoNG5nIHdyMm5nLicpOw0KCX0NCn0NCjFkZF8xY3Q0Mm4oJ3dwX2YyMnQ1cicsICdwMWRkX3RoNW01X3ByNWwzZDVfNW5kJyk7';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?> i …

Member Avatar for veedeoo
0
296
Member Avatar for hanan-kh

hi evrey on ineed your help in php &jquery im working in news site in news blok the image should be chang when a mouse move to defrent news title this is the templat <section class="box-nwes-con"> <a href="#"> <img src="images/sport-img.jpg" title="{title}" alt="{title}" /> </a> <div class="news-box-con"> <div class="title-news-block"><a href="#">{title}</a></div> <!-- …

Member Avatar for Bachu
0
291
Member Avatar for T4gal

Hello, Hopefully this is the right forum to post this on. I'm trying to include a few of the latest WP posts on an external homepage. The homepage is in the root folder of the website and WordPress is in it's own directory. I'm using WordPress 3.8.1 with a Twenty …

Member Avatar for T4gal
0
250
Member Avatar for Alistair_1

i am using the below script as my basis for my ajax requests However whenever i run them i keep getting the error Uncaught SyntaxError: Unexpected token hr.onreadystatechange and Uncaught TypeError: Object [object Location] has no method 'load' hr.onreadystatechange Here is the code $('#ind_login_submit').on('click', function (e) { var vars = …

0
138
Member Avatar for Ricky_2

I'm try to make javascript onclick function in php file.the result is make an alert window in my page. but nothing happen.please help me. this is my code: <script type="text/javascript" charset="utf-8"> $('#printdata').click(function() { datastring = {customer :'val', person :'val', address :'val', phone :'val'}; $.ajax({ type:'POST', url:'print.php', data:datastring, cache:false, success:function(){ alert('?????'); …

Member Avatar for diafol
0
235
Member Avatar for globaliway

I am using the following script for listing the files in a particular directory as a hyperlink list. The files names which i have mentioned must not be displayed (like index.php), How do i change the code for this? <?php $directory = ''; foreach (glob($directory . "*.php") as $file) { …

Member Avatar for diafol
0
151
Member Avatar for Syria Elisha

i already searched about displaying the data fields, my problem is how to retain the checked item and then set its value as 1. please help. i tried some code but didn't work: <html> <form action='' method='post'> <?php $database = 'sample'; $table = 'checklist_stud_columns'; $mysql = mysql_connect('localhost', 'root', '') or …

Member Avatar for diafol
0
250
Member Avatar for Osama827

Hi, I am new in php i want to cahnge this url with mod rewrite localhost/web/index.php?a=profile&u=user to localhost/web/user i try with this rewrite but it does not work.. RewriteEngine on RewriteRule ^([^/]*)$ /web/index.php?a=profile&u=$1 [L] Plz help me to rewrite this url...

Member Avatar for Osama827
0
64
Member Avatar for patidar.pawan.3

i want to fetch data from date and time with limit for latest data in database ..how to fetch..?

Member Avatar for pritaeas
0
59
Member Avatar for ActingRude

I am struggling with this, I have a database (mysql where i am trying to delete a single row. The idea is a list of items populated from the database. I am trying to add an additional column where there is a graphic and it reloads the page and runs …

Member Avatar for Alberto Bucur
0
154
Member Avatar for NitsPatel

hello, How I can Display Featured product and Special product in Home page in my site. Thanks in Advance, Nits

Member Avatar for nufftalon
0
158
Member Avatar for danieldake

Hello Guys. I am fetching some results from database and show into a page. This is a CodeIgniter Project. Here si the code for that: This is the view: <div class="product_view"> <form action="" method="POST" name="form" id="form"> <?php foreach ($get_product->result() as $key => $result) : ?> <h4>Product Name: <?php echo $result->product_name; …

Member Avatar for diafol
0
5K

The End.