39,316 Topics

Member Avatar for
Member Avatar for ..sri..

I am having a list of values inside a loop. I need to turn all those values into exact 5 star rating. I have searched a lot, but i cant get the exact answer what i need. <?php $a=0; while($a<5) { echo "<input type=text value=$a><br/>"; //need to display star rating …

0
66
Member Avatar for Boss2008
Member Avatar for Lisa Wayne
0
198
Member Avatar for riwakawd

I have made a library class in php which can get data from my database table settings. I can get information if it is not serialized. But I would like to know on my get function what would be best method to be able to return unserialise information just incase …

Member Avatar for pixelsoul
0
186
Member Avatar for sexycodette

hello all; scratching my head because I have no clue why this query doesn't work. php5, mysql 5.1 [code]INSERT INTO cats (title,type,cat_parent,cat_descr) VALUES ('Category Name', '0','0','Category Description')[/code] BASIC insert query. and the error I get ad infinitum is this: [CODE]Error: You have an error in your SQL syntax; check the …

Member Avatar for Adiel
0
3K
Member Avatar for mattster

Hi All, I've used CakePHP for ages and as a framework I really like it and it works nicely. However, it has a nasty snag. Say you wan't CakePHP to be your main application in the website root (`/`), and you wanted a Wordpress blog in a subdirectory (`/blog/`). In …

Member Avatar for mattster
0
148
Member Avatar for davy_yg

index.php <div style="margin: 123px 0 0 310px; position: absolute; z-index: 3;"> <form action="login_portal.php" method="POST"> <input type="text" class="form" name="username"><br> <input type="password" class="form2" name="password"> <div style="margin: 15px 0 0 330px; position: absolute;"> <input type="hidden" name="submit" /> <input type="image" src="images/login.jpg" alt="submit" width="200px"></div> </div> login_portal.php echo "test"; if (@$_POST['submit']) { echo "enter"; I wonder …

Member Avatar for pritaeas
0
117
Member Avatar for john khin

while ($row = mysql_fetch_array($retval, MYSQL_ASSOC)) { echo '<tr>'; echo '<td>' . $row['img_id'] . '</td>'; echo '<td>' . $row['picture'] . '</td>'; echo '<td>' . $row['category'] . '</td>'; echo '<td>' . $row['quantity'] . '</td>'; echo '<td>' . $row['title'] . '</td>'; echo '<td>' . $row['description'] . '</td>'; echo '<td><a class="btn btn-success" href="update.php?id=<?php echo …

Member Avatar for sankar.s789
0
195
Member Avatar for Andre Chenier

my related table is: `slm_slmetiketler` : it's for tags and related post ids. Columns are: `slm_etiket`: tag (`primary key`) `slm_postids`: post ids matched with the tag `slm_idadet`: quantity of post ids matched with the tag example from current state of my table: slm_etiket slm_postids slm_idadet tag1 1 1 tag2 1,3 …

1
79
Member Avatar for Simon_4

I am a bit new in XML and show elements/records on a website. So, here is my xml result. What and how is the easiest way to echo (in php) eg mp:title or <c:assets> <c:link rel="PT01" type="image/jpeg" href="http://ecx.images-amazon.com/images/I/41Qd6Z8OA8L.jpg"/> or price or so? any example would be nice... Cheers <c:searchResults xmlns:c="http://webstore.amazon.com/API" …

0
174
Member Avatar for codecodex

I'd like to get the ID's of every selected chkbx and insert them in diff row. The 3rd img shows the input of php codes but what I want is the last img table. Is it possible? Thanks for help.

Member Avatar for diafol
0
32
Member Avatar for Tom_11

I have a posted this question in the computer science section, someone told me to move it here i am unsure of how to so starting a discussion here. Please can someone help me to make the cell (dates) of the calendar clickable, one they have been clicked it opens …

Member Avatar for cilla
0
1K
Member Avatar for chaitu11
Member Avatar for aquilina

i have problem when adding a subject it got two subject that need to be selected by teacher , management sub and DBMS sub.. said Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PhpProject3\navhead_user.php:57) in C:\xampp\htdocs\PhpProject3\teacher_add_subject.php on line 104.. when i select one of them it …

Member Avatar for diafol
0
368
Member Avatar for grakovski

Hello there, I got forum (phpbb3) and i have topics with a lot of links, like this: <a href="link..." class="postlink">Link name...</a> in every link i have class="postlink" and i want to add rel="nofollow" for every external link except my domain by check the 'href' definition. Its possible with only preg_replace …

Member Avatar for grakovski
0
429
Member Avatar for pravinkumar1

i want to know full details about php, as i dont know upto what extend the php is extended till now, specify in the list manner so that everyone can understand easily.

Member Avatar for almostbob
0
311
Member Avatar for riwakawd

I have three files which when i click on delete should be removed. How am I able to use the unlink and realpath for my multiple files? public function delete() { $path_to_file = FCPATH . 'application/modules/admin/controllers/module' .'/'. $this->uri->segment(5).'.php'; $path_to_file_lang = FCPATH . 'application/modules/admin/language'.'/' .'english' .'/'. 'module/'. $this->uri->segment(5).'lang.php'; $path_to_file_view = FCPATH …

Member Avatar for pixelsoul
0
3K
Member Avatar for Rizi004

Hello Everyone, i have table that have some code list if user enter same code from 2 different systems and enter at the same time both user's get data, what i want is the first one will get the data the second one will only see the message that this …

Member Avatar for rubberman
0
188
Member Avatar for adebayo23

Please I have a project that looks like this http://www.businessdictionary.com/ , whereby i can create a search field which search for every topic/word in my database and displays it on a page like you have it on the url above. I would appreciate if anyone can help with this. Thanks.

Member Avatar for rubberman
0
155
Member Avatar for rameshrock

Hello friends, I am the beginner of php developer and i have the Directory module project. i have form of directory module with state , city and business type. while i submit the form then display the result in pagination wise and also fetch the data with pagination wise. So …

Member Avatar for rubberman
0
95
Member Avatar for Stefce

I uploaded the files into my hosting server and im getting this error when i want to open my site what is the problem ? Im using `index.php` but i think that should not be the problem ?

Member Avatar for Stefce
0
205
Member Avatar for maminya.aka

This my form `<form enctype="multipart/form-data" action="upload.php" method="POST" > <table> <tr> <td>Name :</td> <td><input type="text" placeholder="Name" id="text3"></td> </tr> <tr> <td>Chose File : <input type="file" name="image" /></td> <td> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"/> </td> </tr> <tr> <td></td> <td><input type="submit" value="upload"/></td> </tr> </table> </form> ` code to upload image <?php include ("koneksi.php"); // error_reporting(E_ALL …

0
60
Member Avatar for harishprakash
Member Avatar for iamjin100

I am trying to insert data on my database, but when i do, it says UNDEFINED INDEX HTML code here <form action="insert.php" autocomplete="on"> <h1> Sign up </h1> <p> <label for="username">Your username</label> <input id="username" name="username" type="text" /> </p> <p> <label for="emails" > Your email</label> <input id="emails" name="emails" type="email" /> </p> <p> …

Member Avatar for Alicera Nz
0
406
Member Avatar for riwakawd

I am having trouble with unserialize method does not seem to work for my codeigniter project. What is the best method to unserialize with codeigniter php. I get a error A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 67 of 139 bytes Filename: extension/model_module.php Line Number: …

Member Avatar for pixelsoul
0
384
Member Avatar for AntonyRayan

<div class="heading1"> <h3>Search by keyword</h3> </div> <div class="items"> <div class="item"> <form method="post"> <input type="text" class="css-input" name="search_key" id="search_key" placeholder="Search here"> <input type="submit" name="search" id="search" class="myButton" value="search" > </form> <div class="clear"> </div> </div> </div> This is my search keyword code: If I give any keyword it should search and display the particular …

Member Avatar for rpv_sen
0
106
Member Avatar for rpv_sen

Hi Friends i am trying to upload the photos in my dynamic place through my script. my path will be specified below [B]$uploaddir = ../gallery/categoryname/name/[/B] when i was trying to upload the photo is not moved in the above path. unfortunatelly is it moved to [B]../gallery/[/B] Please help me to …

Member Avatar for rpv_sen
0
327
Member Avatar for rajabhaskar525

hi all, i want to send sms to mobile phones from web site . is there any solution for this ....... give me idea!!!!!!!!.......

Member Avatar for Bishnoi_1
1
2K
Member Avatar for Bile

-Suppose I have a table "User_Gender" with fields "idGender,Gender_Name" that has Genders stored in it as Male and Female. -And I have a Select Input Field on My say html.php: <select name="Gender_Selector" onchange="document.forms[0].submit();"> <!-- USER GENDER FROM DATABASE IS CALLED HERE--> <?php $System->Genders();?> <!-- USER GENDER FROM DATABASE ENDS HERE--> …

Member Avatar for Bile
0
271
Member Avatar for Bile

-I have some codes written in native mysql and so I've been working on changing Myself to mysqli (I managed the procedural way and so I decided to Move forward with OOP ways) and came accross the use of Prepare Function. -Now the problem is I have a page where …

0
87
Member Avatar for iveto89

I’m trying to make a form, but it can’t be loaded in view. I’m using Bootstrap.My controller code is: <?php class Boot extends CI_Controller { public function __construct() { parent::__construct(); } function index() { $this->load->helper('form'); $this->load->library('form_validation'); // $data['form_css'] = array('class' => 'form-control'); $this->load->view('bootview'); $this->load->view('forma'); } } My view is: <html> …

Member Avatar for iveto89
0
170

The End.