39,323 Topics

Member Avatar for
Member Avatar for srdva59

hi, i looking for a best way to translate a backoffice content. options: A- i can use a separate file each for a lang with all vars. B- use a table with all data both of this solutions have a big time to implement and in all areas that i …

Member Avatar for srdva59
0
176
Member Avatar for nukabolhi

I am just trying to link a reference numbers using php/mysql 1) Each reference number will select (see code) 2) Post that number to next page and query the info. How can I post reference ID and query in the page 2. [CODE] <? // Page 1 refno.php $cid= $_SESSION["c_id"]; …

Member Avatar for Boskor
0
182
Member Avatar for Boskor

I have this code: [CODE]$sql=mysql_query("select distinct one.ime_kategorije AS ime_kat,count, two.kategorija_g AS kategorija_g FROM (SELECT *, COUNT(DISTINCT kategorija_g) AS count FROM galerija_slik LEFT JOIN kategorija ON galerija_slik.id_kat=kategorija.id_kategorija GROUP BY id_kat) AS one JOIN ( select * from galerija_slik group by kategorija_g) AS two WHERE one.id_kat = two.id_kat;"); while ($row=mysql_fetch_array($sql)) { $kategorija=$row['ime_kat']; …

Member Avatar for Boskor
0
72
Member Avatar for cursedever

Hello everyone! I've been using this simple html parser here: [url]http://simplehtmldom.sourceforge.net/[/url], yes, its working like selecting all the divs with specified id's,but my question is, how about if i'm gonna include to show and select the tags like: <head> </head>, <div> </div>. Any idea how to do this? Thanks :)

Member Avatar for hielo
0
85
Member Avatar for vedro-compota

Hello)) I have a text file with a script that can be used to create an Oracle database, but I want to use this script to create MySQL one) Unfortunately, not all commands are similar. I've already changed the commands for creating tables. And now I can not understand how …

Member Avatar for vedro-compota
0
67
Member Avatar for gunnarflax

Hi! Is it possible to pass objects like you do in JavaScript in PHP: [CODE] function example($args){ ... } example({foo: 'bar', lorem: 'ipsum'}); [/CODE] Or something similar to this? So that you both get an "infinite" number of arguments and a chosen name for the variable ($args['foo']). I know you …

Member Avatar for gunnarflax
0
242
Member Avatar for Danny247

Here's a snippet of my code: [CODE]<? include("include/session.php"); //include("forum/global.php"); $con = mysql_connect($dbhost,$dbuser,$dbpass); $time = time(); $date = date("Y-n-j H:i:s"); $ip = $_SERVER['REMOTE_ADDR']; $email = $_POST['email']; $lastname = ucwords($_POST['lastname']); $firstname = ucwords($_POST['firstname']); $firstinitial = $firstname[0]; $username = $firstinitial."_".$lastname; $pass = $_POST['password']; // MYBB function generate_salt() { return random_str(8); } function salt_password($password, …

Member Avatar for richieking
0
187
Member Avatar for anshad.musafir

I am working with an mlm website with two level binary system like this; 1 refered 2 as left child & 3 as right child---level 1 2 refered 4 as left child & 5 as right child---level 2 3 refered 6 as left child & 7 as right child---level 3 …

0
78
Member Avatar for quadmachine

So in my database "project" i have tables [B]courses[/B],[B]courses2[/B],[B]courses[/B] and [B]participants[/B],[B]participants2[/B],[B]participants3[/B] and [B]company[/B]. On page company.php i have a print link where he send me on a page named print.php ,where i can see the participants. Now on print.php i can see only participants from courses and participants ,i want …

Member Avatar for richieking
0
115
Member Avatar for thegecho

I've been working on this for a couple days and know it's something small but for the life of me I can't figure it out. (I've been using Daniweb for a long time, but just joined because everyone seems so helpful. :) ) Maybe someone can help me too. Here's …

Member Avatar for richieking
0
102
Member Avatar for ankit.pandey3

[CODE]<?php require_once('upper.php'); require_once('database.php'); if(isset($_COOKIE['LoginIdCookie'])) { echo '<h4>Welcome '.$_COOKIE['LoginIdCookie'].'</h4>'; } else{ echo '<h4>Events</h4>';} $result=mysqli_query($dbc,"select * from events") or die('Not Connected'); echo "<html> <body>"; echo "<form method='post' action='EventParticipator.php'>"; echo "<u><h4>Please tick events in which you want to participate</h4></u>"; /*echo "<table cellspacing='0' cellpadding='15'> <th><b>Event Title:</b></th> <th ><b>Event City:</b></th> <th><b>Content:</b></th> <th><b>Images:</b></th> <th><b>Event Date:</b></th>";*/ //while($row=mysqli_fetch_array($result)) …

Member Avatar for richieking
0
163
Member Avatar for coxdabd

Hi, hoping this is quite a simple one. Just wondering how I can use one page template but call up the data from the database relevant to what the user has clicked to view such as 'About us', etc. Would be good if I could let the client create their …

Member Avatar for coxdabd
0
94
Member Avatar for vedro-compota

Hi guys! I can not understand - what is wrong with this simple line - [CODE]create table SUBJECT ( SUBJ_ID NUMERUC not null, SUBJ_NAME VARCHAR(100));[/CODE] error message -[QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for vedro-compota
0
99
Member Avatar for Sahilsahni

[CODE]<?php include("includes/connection.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php echo $sql= "SELECT * FROM forms WHERE today >= CURDATE() - INTERVAL 30 DAY"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) {echo $City= $row['City']; echo $Name=$$row['Name'];} ?> </body> </html> [/CODE] i just …

Member Avatar for smantscheff
0
2K
Member Avatar for divyakrishnan

Hi.. I want to use the pear package.Pear is already on my xampp package.On the file php.ini the pear is included(I didn't change the file php.ini..there is a line like include_path = ".;c\xampp\php\PEAR").I used the following code to retrieve the results from database..But it is not working .. [CODE]<?php // …

Member Avatar for divyakrishnan
0
13K
Member Avatar for jenmay92683

I have the following query [CODE]SELECT * from PHOTOS WHERE Subject = '$Subject' AND Location = '$Location' ORDER BY Number[/CODE] It results in the following output 1, 10, 11, 12, 13, 14, 15, 2, 3, 4, 5, 6, 7, 8, 9 How does PHP/MySql think 10 is lower than 2?? …

Member Avatar for jenmay92683
0
63
Member Avatar for rajeesh_rsn

Hi friends , I had a table which contains tourist information of a country. the table structure as follows state | place | placeid | activities ============================================================================== state1 | palce 1 | 12457 | swimming,trekking,hillstation,waterfall | ------------------------------------------------------------------------------ state2 | palce 2 | 12458 | beach,backwater,ayurveda,fishing | ------------------------------------------------------------------------------- Ok now I …

Member Avatar for lili.edryana
0
90
Member Avatar for ceeandcee

I have a database with a listing of events. I do not want to include events that have already happened, so I want to query the db for events from the current date going forward. I have tried a number of things but it is not working. Here is what …

Member Avatar for ceeandcee
0
95
Member Avatar for design324095

Help! This contact form keeps displaying the error for an invalid email address, no matter what I do! Where did I go wrong? Thanks in advance! [B]PHP Syntax[/B][ICODE]<table width="570px" border="0" cellspacing="10px" cellpadding="0" align="center"> <tr> <td align="center"> <?php if (isset($_POST["op"]) && ($_POST["op"]=="send")) { /******** START OF CONFIG SECTION *******/ $sendto = …

Member Avatar for design324095
0
187
Member Avatar for design324095
Member Avatar for Sahilsahni

Hi, i have made a form in which people fill out their details and its gets saved in database with [CODE] $today = date("F j, Y");[/CODE] now i want to make a search for that forms with date , like Search with in last 3 days or Last 6 months. …

Member Avatar for Sahilsahni
0
1K
Member Avatar for programmer12

Hi, I'm trying to create a form in php that helps calculate the distribution of payments to different places example.. Input box to say how much money I start off with (in this example it will be $200.00) Input box for the total amount of money i want to add …

Member Avatar for programmer12
0
285
Member Avatar for eltonpiko

hi does anybody know a good sitebuilder script pay or free to provide my client with something like [url]http://www.weebly.com/[/url] or sitereptile.i really need this any suggestion will be much appreciated.or those any body no ahosting company that offers sitereptile in the package all the hosting company offer rvsitebuilder with which …

Member Avatar for diafol
0
170
Member Avatar for 84hd0ns

Hi, I am trying to make a simple php photo gallery, I have this code, but the only problem is that the photos appear in a random order. How can I get the photos to appear alphabetically or numerically? [CODE]<?php if ($handle = opendir('photos/')) { while (false !== ($file = …

Member Avatar for 84hd0ns
0
164
Member Avatar for jeevanism

I have a new project deal in hand. The project is to make a web application interface to collect a huge information about people in a particular area. For example, In Film world,s there are director,camera-man, screen writer etc. So the project aims to build a database back end with …

Member Avatar for jeevanism
0
193
Member Avatar for arctushar

Hi I want to make a form site. Which will contain html form. but after submitting it will will return a pdf file with that form data. I found some third-party library to fill pdf form. But those are not working well. How can I do that. thanks all

Member Avatar for chrishea
0
34
Member Avatar for arctushar

I m having a problem. My textarea is 100% but when I add nicedit to my page. its width very low. may be 10%-20% . Can anybody help me?

0
49
Member Avatar for Sahilsahni

Hi please if anyone can tell me what information to fill up in following fields and where i can get them, or any simple way to integrate facebook to my site [CODE]<?php /* * FACEBOOK CONNECT LIBRARY FUNCTIONS/CLASSES */ /* * FILE INCLUDE PATHS * MAKE SURE THESE PATHS ALL …

0
68
Member Avatar for GaBack

this comes when i try to open the php files. Don't know what happen here is my code: function verifyAlphaNum ($teststring) { return (eregi ("^([[:alnum:]]| - |\.| |')+$", $teststring)); } $valid = verifyAlphaNum ($username) if (!$valid){ <<<<<<<<<<<<<< here come the error $error_msg[] ="Username must be letters and number"; } thx

Member Avatar for GaBack
0
125
Member Avatar for vedro-compota

Greetings. Tell please function PHP5 which defines presence of the end of a line (like !feof - for the file end). Thanks in advance!)

Member Avatar for vedro-compota
0
84

The End.