39,316 Topics

Member Avatar for
Member Avatar for serprus

I am using Zend Framework with the Doctrine ORM and was wondering how I would get Doctrine to recognize a database schema I already have made to automatically read it and handle the relationship mapping, etc. Any ideas?

0
49
Member Avatar for s0bigg

I need some ideas in regards to the database management of the email alerts that my website is sending out. [url]www.gubbit.com[/url] My website sends out deal alerts of the products on deals everyday. Typically a product deal stays ON for 3-4 days and my script is sending the same deal …

Member Avatar for diafol
0
72
Member Avatar for vijiraghs

I am writing a simple program where i have a HTML page that gets the username and password from the user and sends it to a PHP page. The PHP page connects to an MS access database and retrieves the stored password, compares it with the password given by the …

Member Avatar for pritaeas
0
3K
Member Avatar for boot-baby-boot

Hello,i have the following html page. [CODE]<html> <head> </head> <body> <div class="container"> <div class="8"> <?php $firstname['1']; ?> </div> <div class="8"> <?php $firstname['2']; ?> </div> <div class="8 last"> <?php $firstname['3']; ?> </div> <div class="8"> <?php $firstname['4']; ?> </div> <div class="8"> <?php $firstname['5']; ?> </div> <div class="8 last"> <?php $firstname['6']; ?> </div> …

Member Avatar for boot-baby-boot
0
142
Member Avatar for adityamadhira

HI I have a drop down box after selecting it page must be refreshed and it must show the selected value. How to do it example I select one item in a dropdown and page must be refresh and show the selected value in drop down after refresh? thanks

Member Avatar for diafol
0
2K
Member Avatar for ritesh0104

i wish to post a xml data using php ; but wihtout cURL? what are the options available.

Member Avatar for pritaeas
0
67
Member Avatar for Gabums

Hello all, I've been searching all day for a solution to this. I have the following code: [CODE] <?php foreach ($software_serialRecords as $record): ?> <?php $programLimit = array(); ?> <?php $programLimit[] = $record['program']; ?> <?php $programLimit = array_unique($programLimit); ?> <?php for ($i = 0; $i<count($programLimit); $i++) { ?> <option value="software_serials_program.php?program=<?php …

Member Avatar for Gabums
0
154
Member Avatar for Longoro

Hi, I'm trying to sort out the names from the database based on the first letter by using (addr WHERE LIKE 'A%'). This gives me the following error message: [B]Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in...[/B] Does anyone know what’s wrong here? Everything works great when …

Member Avatar for Longoro
0
201
Member Avatar for devindamenuka

Hi all, I use codeiniter framework and I am still new to the framework. I settup a project in a localhost in my pc and I use netbeans id. I setup route.php in config folder , as $route['default_controller'] = "welcome"; when the project is started it shows the url as …

Member Avatar for deceptikon
0
128
Member Avatar for LoveAshu

Hi everyone, i am trying to develop a website in php by reading the discussion and tutorials available on the internet and i have completed it almost, its working well we can register and data base working well, but problem is that i want to display user name on all …

Member Avatar for LoveAshu
0
8K
Member Avatar for Buppy

Hi, I want to parse all <iframe> tags with DOMDocument: $videos = $doc->getElementsByTagName('iframe'); echo $videos->item(0)->nodeValue; Unfortunately, thin only gets me the value between the opening and closing tag. How to display a full tag with all attrbutes and values with this method? Thanks

Member Avatar for pritaeas
0
81
Member Avatar for piotrekw

Needs to achieve such an effect: [CODE]$dateall=$year.$month.$day; $arr_from=array('20120401','20120416','20120510'); $arr_to=array('20120405','20120425','20120515'); if($dateall>=$arr_from[0] && $dateall<=$arr_to[0] || $dateall>=$arr_from[1] && $dateall<=$arr_to[1] || ...) { $calendar .= '<td class="reservation"><span title="reservation" id="id'.$year.$month.$day.'">'.$day.'</span></td>'; } else if //other conditions [/CODE] The above code works fine. But I need to rewrite this code as: [CODE]if($dateall>=$arr_from[$j] && $dateall<=$arr_to[$j]) // something like …

Member Avatar for blocblue
0
84
Member Avatar for marwankhalil0

[CODE]<?php include_once ('connection.php'); include_once ('session.php'); if(isset($_POST['submit'])) { $title = $_POST['title']; $content = $_POST['content']; $metatitle = $_POST['metatitle']; $metadescription = $_POST['metadescription']; $metarobots = $_POST['metarobots']; $metatags = $_POST['metatags']; $categoryname = $_POST['categoryname']; if(empty($title) || empty($content)) { echo 'A valid title and some content is required to ceate a post'; } elseif(empty ($categoryname)) { $category …

Member Avatar for desup
0
230
Member Avatar for afaaro

Hi about 7 days am experiencing this problem if you can help me out this is the code; it's not updating at all it's just redirecting me to the page this is my code [CODE] function editcat($cid,$catname,$catdesc,$ok=false) { global $db; $id = intval($cid); $result = $db->query("SELECT * FROM category WHERE …

Member Avatar for broj1
0
116
Member Avatar for kaleem_ullah

Hi, I am new to Wordpress. I am using latest version of wordpress. I am launching new designing blog. I want new user to register on my blog so they can post blog post on my blog. I use PIE REGISTER Plugins. I have done all the settings. But i …

Member Avatar for diafol
0
142
Member Avatar for vijiraghs

Hello, I have setup a wordpress locally in WAMP. Every user is given points for writing. I want to write a piece of code that will add two points to the user's existing points every time he writes a blog. Can this be done usng php? Also, where should I …

Member Avatar for vijiraghs
0
247
Member Avatar for zacharysr

Im building a control panel on my website to cover a bunch of stuff for my website. It makes viewing each member and video, website etc alot easier. But im building a table for my members. And i have it layed out pretty good. but there's one issue. When you …

Member Avatar for weekendrockstar
0
300
Member Avatar for anthonyjpv

Aside from sql injection if I sanitize data before querying or sending it to a database are there any issues that needs to be addressed concerning security of a web app? im building an e commerce from scratch as part of a school project using notepad++ and xampp. any recommendations? …

Member Avatar for weekendrockstar
0
137
Member Avatar for winnzor

I want something like how facebooks wall works but when i call what others have posted its out of order with time for example: First Table (Users): UserID: 1, Name: Matt, UserID: 2, Name: Bob, UserID: 3, Name: Steve, Second Table (Friends): UserID: 1, FriendUserId: 2 UserID: 1, FriendUserId: 3, …

Member Avatar for ApocDen
0
92
Member Avatar for anthonyjpv

my goal is when user adds a product thats already in the cart, it will retain the product name and it will add 1 to the current quantity my code is: [CODE]$item_found = false; $index_of_array = 0; if(isset($_POST['product_id'])) { $product_id = $_POST['product_id']; if(!isset($_SESSION['cart_array'] ) || empty($_SESSION['cart_array'] )) { $_SESSION['cart_array'] = …

Member Avatar for diafol
0
332
Member Avatar for anthonyjpv

im making a small web app as e-commerce site im storing the product id selected by a visitor into session product id as an array now what i want to accomplish is: also store the quantity associated with the product selected and then update that sessions for quantity if visitor …

Member Avatar for anthonyjpv
0
105
Member Avatar for ray@lauray.net

I'm trying to use a variable in a Update to a field. The variable will change the amount of the increment that occurs in that field. I can't use a fixed amount, as it will change according to the user. The Following won't work $points = 5; $query2 = "UPDATE …

Member Avatar for ray@lauray.net
0
175
Member Avatar for Resentful

Hello. I have two text files. Text1.txt and Text2.txt. I am needing to remove an lines found in Text1.txt from Text2.txt. That was probably confusing, so let me give an example. Let's say Text1.txt has this: 1 2 3 And Text2.txt has this: 2 3 4 The final result would …

Member Avatar for Resentful
0
329
Member Avatar for rfrapp

This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just …

Member Avatar for diafol
0
425
Member Avatar for adityamadhira

Hi I am new to PHP and need a help regarding data controls in PHP. Like grid view? Thanks

Member Avatar for pritaeas
0
288
Member Avatar for deucalion0

Hey guys, I am creating a form that allows a logged in user to enter a new password for their, account, I already have the query set up to update the password, but in my form I have the first input set to take the existing password, which must match …

Member Avatar for diafol
0
130
Member Avatar for javedsai

Hi everyone, I'd uploaded virtual tour from ftp server. Three virtual tour which was uploaded couple of days ago are working fine but, now which I uploaded is not working. Url for your reference :- This are working fine. [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3920[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3921[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3922[/url] (is not working) For viewing virtual tour just …

Member Avatar for pritaeas
0
159
Member Avatar for 68thorby68

I have a simple dynamic form with 5 input fields [CODE] <input type=text name=name /> <input type=text name=height /> <input type=text name=length /> <input type=text name=width /> <input type=text name=weight /> [/CODE] If the user needs more than one of the same item they can add additional input fields. [CODE] …

Member Avatar for diafol
0
2K
Member Avatar for cskinittest

<?php session_start(); if(isset($_POST['next'])){ $a=$_POST['a']; } if(!isset($a)){ $a=0; } $q = $_SESSION['q']['a']; include('dbconfiguration.php'); $sql1="SELECT * FROM question WHERE question_id='1' LIMIT 1 OFFSET 0 $q"; $result=mysql_query($sql1); echo $sql1; echo "<form method='post' action=''>"; while ($row = mysql_fetch_array($result)) { echo $row['Question']. "<br/>"; echo "<input type='radio' value='answer1' name='answer'>" .$row['optionone']; echo "<input type='radio' value='answer1' name='answer'>" .$row['optiontwo']; …

Member Avatar for StephNicolaou
0
91
Member Avatar for jonatec

Hi Please take a look at the code section. Does anyone know how to: a) Return JSON from the prepared procedure call instead of me using a while loop and a concatenated string? b) Given the MySQL query returns these columns: ID, DepartmentName how do I access these in my …

Member Avatar for jonatec
0
163

The End.