39,320 Topics

Member Avatar for
Member Avatar for justdeanna

I am trying to teach myself PHP, im trying to generate a form that validates in php Im having issues with my checkbox value calculations I know i should construct a function Im trying to make it so if the user clicks the mealplan box the appropriate price gets added …

Member Avatar for ryantroop
0
165
Member Avatar for Iggystooge

Hi, This is going to be the least important post you will read, but if anyone can help me, I will still appreciate it. Every fall I have a small weekly football contest with my friends for fun. I have an html file with 20 games on it, players choose …

Member Avatar for iamthwee
0
240
Member Avatar for alismith

Hello I'm want to convert string to array $str = "[cat=[0=php,script=[js]],id=4,foo=bar]"; how to write `preg pattern` for change `$str` to : $str = "[cat=[0=php,script=[js]]_-_id=4_-_foo=bar]"; If convert `,` to `_-_` I can convert this string to array by `foreach`, but i can't convert `,` to `_-_` in this string I'm want …

Member Avatar for iamthwee
0
417
Member Avatar for Abbas Ansari

I'm totally new to php and learning. I have a table name *persons* which has columns * FirstName * LastName * Gender * Subject * Hobbies **The Task:** was to dynamically populate a drop down list with the data of FirstName, display the selected record of the name chosen in …

Member Avatar for Banderson
0
244
Member Avatar for devianleong

Hi, I'm very new to smarty. I would like to learn more about smarty engine. I understand how smarty works like assign and display but how can I implememt something that able to switch template? I mean when I upload few different template with different name and CMS will auto …

Member Avatar for pritaeas
0
193
Member Avatar for fheppell

I have the following file structure. Some files are dynamically added to a zip file and downloaded. uploads ----- 1 ---------- test.jpg ---------- another-test.jpg ----- 2 ---------- yetanotherfile.jpg ----- 3 ---------- evenmorefiles.jpg However, when I unzip the downloaded file it keeps that same structure (only with some files missing) and …

Member Avatar for fheppell
0
281
Member Avatar for eantz

Hi.. I have a blog and one day I post a redirect page tutorial with php script within it. I saw that tutorial from a web and I want to post it to my blog too.. here is the script : [code=php] <?php function redirect($url) { if (!headers_sent()) { header("Location: …

Member Avatar for advertigo.net
0
337
Member Avatar for mattsheets

Hello I am trying to parse a .json file.. it only has 1 set of data I don't think the $.each is the best approach but it's all I can find.... Here is my code: <script type="text/javascript"> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var …

Member Avatar for mattsheets
0
228
Member Avatar for JRSofty

This class allows for the handling of normal and serialized cookies as well as switching between these types of cookies. Cookie Functions: Write Cookies Read Cookies Delete Cookies Use of this class is fairly simple. Step 1: Include the class source in your php project using the require or include …

Member Avatar for LastMitch
1
332
Member Avatar for amith_ami

hi all pls help me... how to create unique reference id for all users registering in my site...?? tnx in advnc...

Member Avatar for almostbob
0
177
Member Avatar for MMadhavi

I want to show movie trailer by click on movie button. i have done this by using colorbox. i had include .js and .css file in my template.php file. and i prepare following code for this. but i can't able to do this. plz anyone guide me. how can i …

Member Avatar for Nitesh Apte
0
1K
Member Avatar for klemme

Hi, Any tips on how I can make a smarter function? I have recently begun oop, so Im not allways sure if I do things in a "bad way" - both the amount of code, and the performance. Any advice on this piece is appreciated: class get_page_info { public $id; …

Member Avatar for pritaeas
0
226
Member Avatar for dstoltz

Hi All, I use Dreamweaver CS6 to write/edit both ASP (classic) and PHP. The new Adobe Dreamweaver CC is now subscription based, which I think really stinks (I hate subscription based software). Just wondering what is considered industry standard tool(s) for PHP? Is there a standard? If not, what are …

Member Avatar for pritaeas
0
298
Member Avatar for Dani

I need to set a cookie with an array as a value. Is the best way to run serialize() on the data?

Member Avatar for veedeoo
0
2K
Member Avatar for MitkOK
Member Avatar for LastMitch
1
602
Member Avatar for kevin wood

This code will display images within an email from the server. It will display an image with a choice of file extension which can be expanded to fit your needs. this code was originally developed for a emailing system where the images to be displayed where uploaded by the user.

Member Avatar for LastMitch
1
196
Member Avatar for Moderns

Hi mates, I am looking for a way to cache a PHP page that it's different for each session user. For example if the paginating is used and if I have 10 pages each page contains 25 entries extracted from database, also these entries are editable when clicking on button …

Member Avatar for LastMitch
0
347
Member Avatar for wolfgangcs

This is not working: class Post extends CI_Model{ function get_posts($num=20, $start=0){ //$sql="SELECT * FROM users WHERE active=1 ORDER BY date_added DESC LIMIT 0,20;"; $this->db->select()->from('posts')->where('active',1)->order_by('date_added','desc')->limit($num, $start); $query=$this->db->get(); return $query->result_array(); } } and giving me a: `[20-Jun-2013 17:42:21] PHP Fatal error: Call to a member function select() on a non-object in public_html/codeigniter/application/models/post.php …

Member Avatar for cereal
0
89
Member Avatar for klemme

Hi, I have this bit of php returning the response, just for testing : header('Content-type: application/json'); $response = array(); $response["status"] = "ok"; echo json_encode( $response ); 1) Is this a wrong way to send a json encoded string back via jquery ajax? 2) I get NOTHING, No response from this …

Member Avatar for klemme
0
304
Member Avatar for murugami eric

hi guys, am working on a phpscript and have a date form, am lacking a php/javascript code to validate my date form. please help with the code.

Member Avatar for murugami eric
0
123
Member Avatar for unikorndesigns

hi guys, Do you guys have any php code where i could add a new class to a div element in a page? using my code am planning to read the file contents of an html page. I wanted to add a class "modify" to all DIVs which has a …

Member Avatar for diafol
0
276
Member Avatar for adeeb.keyaam

i want to create a form wizard, but i am not getting my forms one after another in one page. i am using `<input type="hidden" name="step" value="1" />`, `<input type="hidden" name="step" value="2" />` to get my forms step by step, when i forwarded from up_account.php to update_step1.php, then my form …

Member Avatar for pritaeas
0
153
Member Avatar for joseph.lyons.754

Im writing some code to send out emails for work. And i've been stuck on with this error for a while nw. Any help will be greatly appreciated. Error message: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\PHP\mailMany.php on line 21 Heres my code: <?php // …

Member Avatar for Webville312
0
205
Member Avatar for asifnaveed44

i am showing the emails on my website php page through gamil api the api give me the html of the mails this mail html distrube my wesbite page html i am using below code for the displaying the html of the emails $doc = new DOMDocument(); $doc->loadHTML($body); $yourText=$doc->saveHTML(); $body=$yourText; …

Member Avatar for veedeoo
0
166
Member Avatar for edwin.thomson1

I tried lots of Poll scripts but one of was good one. I need Poll script with Jquery, AJAX and Admin so that I will intergrate my website.

Member Avatar for edwin.thomson1
0
111
Member Avatar for maharrington

Hi, I have done some research and have found an example of a banner rotator (that I'm presently using) - as you can see here: http://www.clickteesside.com/ What I'm wanting to do is like the imgsrc, links and message of the rotator to a database value, so that there are more …

Member Avatar for diafol
0
295
Member Avatar for engr_pir

Hi friends, I'm using Wordpress 3.5.1 , and have created gallery from add media it works fine for this page but i have need to get thumbs of this inserted gallery in footer.As gallery is updated then thumbs in footer must be updated, Is there any function to get thumbs …

Member Avatar for iamthwee
0
154
Member Avatar for amber.long83

Hi friends I wishing your small help for magento customization. I want to rename default top links given in magento to my own caption. I want to change "My Cart (1 Item)" to "My Bag (1 dozen)" Please anyone guide me to achieve this thanks Amber

Member Avatar for sftranna
0
388
Member Avatar for SQLpower

Would be possible to implement a VB.NET program in a PHP Website? I would want to have a rich text editor for editing files which will be stored in the database and would be displayed on the website. Being able to edit them without leaving the website. I believe would …

Member Avatar for SQLpower
0
234
Member Avatar for williampritchar

Im using wamp server 2 in my pc, I have created some php files and used php short tags inside it, but whenever I run a file it always show me error. Please give some suggestion.

Member Avatar for almostbob
0
1K

The End.