39,402 Topics

Member Avatar for
Member Avatar for RazorRamon

Ok I am stumped so bad. I am using a form to insert a topic and comment into a table and if the topic is new it creates a new table specific to that topic. So I pass the topic name through the url and Im trying to retrieve it …

Member Avatar for Stefano Mtangoo
0
8K
Member Avatar for Stefano Mtangoo

Hi, I was reading on the net and could not find how to implement as loop something like twig's [CODE] <ul id="navigation"> {% for item in navigation %} <li><a href="{{ item.href }}">{{ item.caption }}</a></li> {% endfor %} </ul>[/CODE] I want to have idea of what is going on!

Member Avatar for Stefano Mtangoo
0
166
Member Avatar for greenblack

anyone please help me, whats wrong with this code: this is codeigniter, i can't upload file with this code/script: [code=php] class MUpload extends Model{ function MUpload() { parent::Model(); } function upload() { $data = array( 'my_file' => $_POST['userfile'], 'my_user' => $this->authniter->getUsername(), //this is user login name with my library 'authniter' …

Member Avatar for saadi06
0
104
Member Avatar for nalini@121

Hello Everyone! I am unable to change permission of folders created on C-Panel with chmod('folderpath',0777); Please help on this.

Member Avatar for nalini@121
0
160
Member Avatar for newboi

Hi guys I am trying to create multiple landing pages populated dynamically with data from a feed. My initial thought was to create a generic php page as a template that can be used to create other pages dynamically and populate them with data from a feed. For instance, the …

Member Avatar for diafol
0
214
Member Avatar for aru211285

Dear All, I have created a multi dimensional array and stored elements in that through while loop like $human = array(); and at every iteration the while loop will add elements like $human["IPI"]["Description"][] = $row; $human["IPI"]["link"][]= $link; but when i wanted to print this array contents in a table format …

Member Avatar for diafol
0
515
Member Avatar for triumphost

Hi guys. I have a php script that reads some values off a website and prints to a file every second.. The thing is, the script is always ran in my browser and I don't like that. I want to write a c++ program that can run that script within …

Member Avatar for thines01
0
361
Member Avatar for scamquist

I am new to php. I am trying to run a loop 5 times. Each time the loop runs I need to run a batch file and test the value of a query. If the query is > 0 exit the loop. Otherwise run a different batch file and continue. …

Member Avatar for scamquist
0
258
Member Avatar for Amr87

Hello Everyone , I`m trying to build MVC pattern using OOP PHP , please read the rest of the post to understand what I want exactly This is the homepage controller which extends the main controller [CODE]class Home extends Controller { function __construct () { parent::__construct(); } public function index …

Member Avatar for Amr87
1
125
Member Avatar for furlanut

I have been able to write functions but cannot get them to work. Many sites show you how to write them but not how to call them in your web programming. Can someone explain why this call does not work for me ? the function is: [CODE] <? php function …

Member Avatar for furlanut
0
115
Member Avatar for rohit.k2903

Not able to upload files on server. It is working fine in local. I want to upload some files. In my previous server it was uploading without any error.. not in new server. I set folder permission to 777, still it is not uploading. I delete existing and create new …

Member Avatar for veedeoo
0
127
Member Avatar for gourav1

hello! i have no knowledge of PHP at this time when i m writing this thread.my vacation are coming and i am eager to learn the PHP on my own means without any coaching institute.please help me by telling books for me and websites from where i can have a …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for komara

pls help i am beginner and i am trying to create a simple Guestbook but i got error "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /index.php on line 43" here is the code i use : <?php require ($_SERVER["DOCUMENT_ROOT"]."/komara/config/db_config.php"); $connection = @mysql_connect($db_host, $db_user, $db_password) or die …

Member Avatar for pritaeas
0
234
Member Avatar for bbizzl

Hello! Currently I have a form where the user can submit emails in a comma separated format to the $row in database $contacts. How can I set this up correctly so the user can email their contacts? As of right now the script emails everybody but just not in the …

Member Avatar for pritaeas
0
159
Member Avatar for tgr0ss83

cant figure out why i'm getting this error: Warning: implode() [function.implode]: Invalid arguments passed in C:\Users\Travis\Documents\choicegrid\dam_spp.php on line 67 [CODE]<!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=utf-8" /> <title>Untitled Document</title> </head> <body> <?php require_once('dom/simple_html_dom.php'); $url = "http://www.ercot.com/content/cdr/html/"; // The simple url $name = …

Member Avatar for tgr0ss83
0
1K
Member Avatar for linkassoc

[CODE] if($rewrite) { echo "<p><a href=\"/blog-". $blog[0] ."-$clean_url\">" .$blog[3]."</a><br>"; } else { echo "<p><a href=\"". $blog_url ."?d=". $blog[0] ."\">" .$blog[3]."</a><br>"; }[/CODE] Hi Folks, I am a complete novice with PHP and I cannot get this routine to work. I need to change $blog_url to an actual URL - [url]http://www.mydomain.co.uk/blog_rec.php[/url] I …

Member Avatar for simplypixie
0
102
Member Avatar for lenyjose

Dear visitors, I found a site, they collect jobs from other jobs sites through rss feeds. How to collect records to MySQL database from rss feeds by using Php? . How to develop rss feeds by using Php and how to convert rss feeds into records of MySQL database? I …

Member Avatar for peter_budo
0
187
Member Avatar for devinodaniel

Hello! I have this: [CODE] <?php $next_friday = strtotime("next friday"); echo "<select>"; // If you want to loop for 8 weeks for ( $i=1; $i < 10; $i++ ) { echo "<option>".date("m-d-Y",strtotime("+{$i} week", $next_friday)); } echo "</select>"; ?>[/CODE] It shows every friday and but all together. How would I modify …

Member Avatar for pritaeas
0
88
Member Avatar for garyrichard

I have created a report using NAVICAT Report Tool Report has an extension RTM . How..Do i run this report on Online web server..

Member Avatar for pritaeas
0
393
Member Avatar for nikki05

Hi, I want to insert and select the data from the same table.I am using following query to insert and select the data from the same table. However, I am not able to insert the data. Is there any method to do this? $sql=mysql_query("INSERT INTO users (name,ref_no) VALUES( '$name', (SELECT …

Member Avatar for nalini@121
0
144
Member Avatar for kb.c7

plse help me to create code for report of task having both options ytd and mtd

0
38
Member Avatar for ebanbury

Hi When I load my renew.php page - the following warning appears. However when I click the 'renew' button in the page, the code below still works, but only when I click the 'renew' button twice. I can't find what is wrong with the code to cause the error message …

Member Avatar for ebanbury
0
4K
Member Avatar for geneh23

Hey everyone, I have another issue with my login page...It is in the checkuser.php and after I register, get the automated email that directs me to a page where my account has been activated..and redirects me to a log in page..I put in my info that the email gives me …

Member Avatar for geneh23
0
174
Member Avatar for ankit.pandey3

Hi friends... I am using Wamp with PHP 5.3 and want to connect with SQL Server 2005 but not successful. I also tried it with PHP 5.2.8 but it still not working. I google it and found some solutions but not successsful yet. Can anyone give me detailed guide (step …

Member Avatar for ankit.pandey3
0
178
Member Avatar for GuruMS

hi friends in moodle 2.0 i am getting the error as [B]Invalid permissions detected in $CFG->dataroot directory, administrator has to fix permissions. [/B] like this in my server so what can i do to work on this please help me and my configuration file as [CODE]<?php // Moodle configuration file …

Member Avatar for WaltP
0
179
Member Avatar for ebanbury

Hi I have a function 'checkfile'within my 'add a record'form which checks to ensure that the images which users are uploading with the form are within a certain size...in this case 32kb, which is specified within GW_MAXFILESIZE. What would actually be much more useful and user friendly is if when …

Member Avatar for ebanbury
0
252
Member Avatar for super9876

Hi. I'd like to add time (and no date, and not a timestamp) data to a field in MySQL through a PHP form. I've been having problems, as the date is also included. But I only want the time (I want to be able to sort the data by the …

Member Avatar for super9876
0
168
Member Avatar for daniel36

i am using this code and want to include one get variable in url which will be used in database query to show result.How it is possible .please solve my problem. i[CODE]<?php // database connection info $conn = mysql_connect('localhost','dbusername','dbpass') or trigger_error("SQL", E_USER_ERROR); $db = mysql_select_db('dbname',$conn) or trigger_error("SQL", E_USER_ERROR); // find …

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for ALFA-FOXTROT

Hey guys im blind here... Im sending data to the controller to be processed... It works... except when a send two types of words... they are <script> and <scripting> Example: Input 1: <javascript> Input 2: <js> click SUBMIT (retuns no problem) [code] Array ( [answers] => Array ( [0] => …

Member Avatar for Stefano Mtangoo
0
654
Member Avatar for Awah Mohamed

hi guys, well.. i run my php program and the page just displays the following: [CODE]Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\Azone\Azone\profile.php on line 160[/CODE] i checked line 160 more than 1,000,000 times and i got nothing to change! here is the whole code of the page, please help …

Member Avatar for Stefano Mtangoo
0
148
Member Avatar for stanley87

Hi,morning guys. I want to ask anybody know to write javascript to deal with the authentication API key of the php. My condition is like that: 1. i will provide the key to other site owner which already registed at my website. 2. then i want to write a javascript …

Member Avatar for pritaeas
0
123
Member Avatar for hindu times

Hi there, I need a bit of help with redisplaying a form. Basically, currently a user will fill out my contact form, the form and it's contents are passed to my verification page, and if the recaptcha was entered correctly it goes to a Thank You page. When the recaptcha …

Member Avatar for hindu times
0
453
Member Avatar for jocky c

Hi, complete newbie and having a syntax error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in xxx on line 7 This is line 7: [CODE]fputs($fp, "$_POST['Fullname'],$_POST['Jobtitle'],$_POST['email'],$_POST['file'],\n");[/CODE] Like i say im a complete newbie to this and from what i gather brackets might be missing etcetc. …

Member Avatar for jocky c
0
165
Member Avatar for Azmah

I ALWAYS hear that Wordpress is the best for blogging and even building other sites. I'm currently in favor of Joomla as it does everything I need it too out the box with very little extras and configurations. I'm totally happy to switch to Wordpress if you can convince me …

Member Avatar for Azmah
0
241
Member Avatar for reco21

Hello. I'm wondering if someone could help me. I have a simple like/dislike voting voting system. Everything works fine but a user is able to click both up and down freely without checking if they have voted. So what I'm going for is 'Php sessions' because I dont want to …

Member Avatar for reco21
0
605
Member Avatar for daniel36

I need pagination in basic php or simple i have a get variable in link.thanks and reply me that how i see old post posted by me thanks.

Member Avatar for pritaeas
0
90
Member Avatar for IanArcher

Hi, i am new to PHP but i have some common knowledge to recognizing commands and such. in my page i have code like this [CODE]<div class="page_column page_column_first" id="page_column_1" style="width: 499px;"><div class="page_block_container" id="page_block_759"><div class="disignBoxFirst"> <div class="boxFirstHeader"><div class="dbTitle">Up and Coming</div></div> <div class="boxContent"><div class="dbContentHtml"><p>This is a placeholder for up and coming news …

Member Avatar for pritaeas
0
175
Member Avatar for 54uydf

Hi, I'm getting this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 576 bytes) in 'path' on line 207 what I'm doing is getting an excel file with about 8000+ rows and trying to move them into a table in my DB. a FOR loop …

Member Avatar for digital-ether
0
3K
Member Avatar for daniel36
Member Avatar for siva28

Can you please tell us, free gold and silver rate service provider for RSS . And also give whether casting service provider RSS feed.. need java script above mentioned or XML file.

-1
84
Member Avatar for jelly46

I am a web developer and i have been asked to create a website using google maps with search results like this: [url]http://www.hotelsneargolfcourses.co.uk/hotels-near/mid-kent-golf-club[/url] Where do i start? Thanks

Member Avatar for mathieu89
0
70
Member Avatar for martymaven

I'm an old Access programmer trying to get something I use there frequently to work in PHP/MySQL. I want to look up data in a database and then have that appear as the value in a select statement on an update form. The issue is selecting a new supervisor for …

Member Avatar for martymaven
0
197
Member Avatar for akocnin18

can somebody help me in dealing with this project... I am making a quiz that a user can input their own set of questions..after doing a quiz other users can take it..and I don't know how to check if the user answers were right.. can you please help me? thanks! …

Member Avatar for diafol
0
295
Member Avatar for wolfgangcs

How can I get this check box to work? the id='item' will always be the same per item no matter which I check. It always grabs the last one checked. query [CODE] $result10 = mysql_query("SELECT * FROM todo WHERE complete='0' AND day='$today' ORDER BY whenby ASC LIMIT 3"); [/CODE] [CODE] …

Member Avatar for diafol
0
82
Member Avatar for sacarias40

Hey guys, I am making a bot for a link sharing site. I am using the request external curl class and i have a dilemma that i think you guys could help with. Query Variables appended on the end of a url such as ?something=234 I do not know how …

Member Avatar for sacarias40
0
150
Member Avatar for bradyramone

I want to use jQuery tooltip in a table which is created with php doing a while loop. I want that when i hover over a row, the tooltip fills up with data according to that row. I found something similar using asp.net, but i dont know how to implement …

Member Avatar for diafol
0
159
Member Avatar for satishk_golu

Hi All, Newline`(\n)` is not inserting a new line on the browser. Can some body help me how can I insert a new line on the browser. I know the html tag` <br />` will help. But is there any other way ? Here is the snippet of the code …

Member Avatar for broj1
0
283
Member Avatar for mayreeh

hre is my code for deleting a file, wats missing? $getFields($fields); $infoFile = $doc->getFileInfo($file); $title = _l("Delete a document"); if ($action == "dodelete" && $file) { if ($doc->hasRight($_SESSION["Sid_user"], "d", $dir)) { if (!$doc->deleteFile($file)) $error = $doc->errstr(); else $error = _l("Document successfully deleted !"); } else $error = _l("You cannot delete …

Member Avatar for pritaeas
0
160
Member Avatar for shella

Hi, I'm trying to finish a scripts to manage newsletter from a website but I encountered a strange weird stuff just at the end. Basically when I send emails everything seem to be alright. I sent 5 email. 3 of them was received perfectly but the other 2 not. Just …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for Stefano Mtangoo

Hi friends, it is weeks now I'm trying to figure out how to make simple custome theme engine for my custom PHP CMS. I want to use it for my projects. It is based on custom framework too. So I checked how Drupal does it and Joomla. They are complex …

Member Avatar for Stefano Mtangoo
0
155

The End.