39,393 Topics

Member Avatar for
Member Avatar for delle

Creating a multi-column list from WordPress' default function (wp_post_page()) is a pain. I was tasked to create a multi-column list and realized there wasn’t a simple argument to do so. With that said, I have to create a code which should do the job…and it does the job so well… …

0
41
Member Avatar for ayooshkasmth

I am trying to insert multiple rows using foreach, with no luck. I am able to insert the rows i want, however all the rows have the same value (that of the last row). This is the script i'm using: [CODE]foreach($_POST as $key=>$val) { $contaminant = $_POST['contaminant']; //$gac_value = $_POST['gac_value']; …

Member Avatar for ayooshkasmth
0
2K
Member Avatar for drewpark88

Hey guys, I am new to Wordpress and am having a slight issue. I have a "featured" posts section at the top of my index page that shows 3 recent posts from the featured category. Everything shows up fine except the post image. So I see the "post_summary" and the …

Member Avatar for wpmonster
0
89
Member Avatar for Krstevski

Hello friends, I have a small problem with getting the content from the pages in WordPress. In my admin panel I have created some pages, also I have created a custom template and now when I want to open any of the pages then the content is not displayed (the …

Member Avatar for wpmonster
0
92
Member Avatar for mikecronauer

I am using a web page to input data into mysql using php. I am using ajax to pull back the same data from a php file on the same web page. I click my "get data" button (it runs my ajax/php function) right after I make an update to …

Member Avatar for mikecronauer
0
271
Member Avatar for RazorRamon

I have a form that is a calculates an estimate for the user. [icode] <form method="post" action="php/pricing.php"> <table id="pasa"><tr> <td>Number of Pages?</td><td><textarea name="pages" value="" rows="1" cols="5"/> </textarea></td></tr></table> Can You Provide the following content?<br> <table id="pasa"><tr><td></td><td>Yes</td><td>Some</td><td> No</td></tr> <tr><td>Pictures</td><td><input type="radio" name="pictures" value="0"></td> <td><input type="radio" name="pictures" value="25" checked></td> <td><input type="radio" name="pictures" value="50"></td></tr> <tr><td>Literature</td><td><input …

Member Avatar for RazorRamon
0
109
Member Avatar for Dante2

Ok, I have to do an assignment for cass. The teacher wants us to use a FOR loop to print out only first three variables stored in an array called $birds. How do I use a FOR loop to print out only those first three? And furthermore, how would I …

Member Avatar for nevvermind
0
102
Member Avatar for jamesbarnhill

How can I create a function similar to Google Buzz or Facebook, where the user types an '@' symbol followed by a username which is then turned into a link? Example: Input is: "Hello, @example_user!" And the output is: "Hello, [URL="http://example.site/profile.php?u=example_user"]Example User[/URL]!" ([url]http://example.site/profile.php?u=example_user[/url]) This, I'm sure, would be simple to …

Member Avatar for jamesbarnhill
0
188
Member Avatar for jarmerson

I am new to PHP and really just troubleshooting a migration issue (moving from live working server to new server with this error). I'm not well versed in coding so I apologize in advance if I'm overlooking something stupid simple. Here's the error: Warning: mysql_fetch_assoc(): supplied argument is not a …

Member Avatar for jarmerson
0
172
Member Avatar for Pado

Hi all, I've finally gotten a handle on object-oriented programming (it took ages), and I really like it. But I'm still struggling with conceptualizing some things. For example, if I want to make a form using objects, do I make a Form class with a method like startFORM($name_of_action_page, $method), then …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for dev.vini
Member Avatar for Stefano Mtangoo
0
55
Member Avatar for aycmike

Hi everyone, I am new to PHP and seeking some advice on any decent online courses, tutorial sites and books to help get the ball rolling. I am proficent in xhtml, css and have experience with coldfusion if this helps? Any help would be much appreciated!

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for RyanDev

Hi everyone, please I want to know if I can add a stylesheet link in my php mail : [CODE] $subject="Subject"; $header="From: \"$email\" <contact@sssss.com>\r\n"; $header.= "Reply-To: contact@sssss.com \r\n"; $header.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message= "<html> <link href='style.css' rel='stylesheet' type='text/css' /> <body> <p>lorem lipsum ...</p> </body> </html>"; mail($mail,$subject,$message,$header);[/CODE] Thanks.

Member Avatar for pritaeas
0
57
Member Avatar for ruwanaru

This is form that i want to submit and send a mail to my email i have used some codes for that and it doesn't work [CODE] <form id="F2" name="F2" method="post" action="contact/send_contact.php" onsubmit="return validateForm(this)"> <div id="hedding"> <h2>Contact Details</h2> </div> <P><center><?php error_reporting(0); include("init/db.php"); $table=$_GET['hotel']; $id=$_GET['id']; $sql = "SELECT * FROM $table …

Member Avatar for hielo
0
138
Member Avatar for HedoBum

Hello fellow code heads! I have issues (or so my wife says) but mine stem from the wonderful world of PHP. My web design knowledge is largely based on XHTML and that's where I left the scene. I was recently asked to delve back into the world of web design …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for PomonaGrange

Hey All, I am trying to write a php script and would like to have an autosuggest text box with data from a mysql database. This would be for designating a town in a form. The sql query I would use would be. $sql = "SELECT DISTINCT `Town` FROM '".$Table_Name."' …

Member Avatar for noufal68
0
120
Member Avatar for s_kanika

Its urgent I have a auction script In that bid butler is not working I have code butler.php but depends on cron I dnt know how to run cron to run butler.php each 1 min. Plz help me

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for Dorayaki

Hello, What is the best hashing for password and what is the best encryption for credit card (of course we will need to decrypt it later) ? Also I would like to know, how did people usually generate salt ? I always heard about md5+salt but how did they usually …

Member Avatar for cwarn23
0
79
Member Avatar for Smudly

I have a mysql table that looks like this: id int(11) autoincrement artist varchar(50) title varchar(50) I need to check for any rows that have the same titles. So for example, if I had the following rows: 1 - Bob - Hello World 2 - Charlie Brown - Theme Song …

Member Avatar for cwarn23
0
61
Member Avatar for ﻼim

did this means na sa pdng mag'search or add or delete at the same time dito sa form na 'to? such that yung entry ng user sa mga field dito is pdng ma'search din?

Member Avatar for ﻼim
0
107
Member Avatar for Pado

Every once in a while I run into this problem and finally decided to consult the experts. :) I insert foreign characters (Czech letters) into my MySQL database and see them there. They look fine. But when I try to retrieve them using PHP they come out with question marks …

Member Avatar for Pado
0
261
Member Avatar for ello

Hey guys this is kind of a JavaScript question but the script works elsewhere so I have a feeling it's got something to do with the fact it's being echoed by php. Can anyone tell me why this isn't working: [CODE] if (($_SESSION['count'] % 5 == 0) && ($_SESSION['countView'])) { …

Member Avatar for diafol
0
163
Member Avatar for cadtel

Hi all, I've been watching Jefferey Way's excelent video series on Codeigniter, and while I was trying to follow along, there was a bug that I couldn't fix. When I placed an anchor tag: [CODE=php]anchor('login/signup','Create Account');[/CODE] and clicked on it, this was the url generated: [url]http://localhost/ci/index.php/login/localhost/ci/index.php/login/signup[/url] instead of: [url]http://localhost/ci/index.php/login/signup[/url] The …

Member Avatar for aquilax
0
76
Member Avatar for finnj6

Hi I'm trying to develop a site that users can log into. It's all standard enough the details are being kept on a mysql database. I can add the details to the db but my code for logging in isn't working. here is my login script [CODE]function user_login($username, $password) { …

Member Avatar for hielo
0
146
Member Avatar for Muazam

I made a config.php file which contains MySQL connection info. [CODE]$con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Cannnot connect!'); mysql_select_db(DB_NAME, $con) or die(mysql_error());[/CODE] My question is how do I add it into a class? [CODE]<?php require_once('config.php'); class users { private $id; public function __construct($id) { global $con; $sql = "MySQL script'"; …

Member Avatar for zark_yoc
0
312
Member Avatar for DeMolen

Dear Forum, I've been searching for quite a while for something which comes close to my question - and [I]freiheit's[/I] thread back in May 2010 entitled [B]'Sorting data asc and desc using a jump menu'[/B] came the closest. Whilst pointing me in the right direction, I need to take it …

Member Avatar for DeMolen
0
89
Member Avatar for Dorayaki

Hello, I'm just looking for an answer or idea. I plan to connect vb.net to mysql (which is done) and also the PHP connected to the mysql. But I'm confuse with something. VB.NET is use for offline things (which people will come to store and buy), but PHP is buying …

Member Avatar for samuel_1991
0
385
Member Avatar for munyu

Hie guys i have just started php development and i want to be professional developer.I hope if there is an experienced php developers who are willing to guide me in my quest to be a highly skilled developer who will be able to give back to the php development community.

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for itisnot_me

ok so i have a time that i need to order by but i dont know how to make it order, in order by am then pm. Ex: i have to events that i put in the calendar one for 6:00 am and one for 9 pm. I put order …

Member Avatar for itisnot_me
0
102
Member Avatar for micahgeorge

Hi, Iam new to PHP I need some help I am trying to insert multiple checkboxes values <td> <input name="myvar[]" type="checkbox" value="abc"> abc<br/> <input name="myvar[]" type="checkbox" value="def"> def<br> <input name="myvar[]" type="checkbox" value="ghi"> ghi</td> along with other datas to the database, and I dont know how to do this I wrote …

Member Avatar for hielo
0
243

The End.