39,316 Topics

Member Avatar for
Member Avatar for RobotFX

Hi! I have a free script from Scriptol which I use to display feeds content on my site. The script has a form where you can submit a feed url and it will display on the same page the feed rezults. The problems is: - I want to make it …

0
73
Member Avatar for welbyobeng

I have a fix code below [code=php] $values=array( "advertisement1" => 34, "advertisement2" => 45, "advertisement3" => 16, ); [/code] I want to take some information from my database and output the same way I have the code above but am getting an error. I am using [code=php]$sql = "SELECT advertisement.adver_name, …

Member Avatar for welbyobeng
0
103
Member Avatar for jakesee

Hi, I have tried to find out on this, but I cannot be sure. Anyone knows for certain fopen and file_get_contents (or any similar functions) will generate an entry in the target domain's website traffic stats? I know this could be traffic analyser specific, so for a start, will it …

Member Avatar for jakesee
0
100
Member Avatar for coboldeveloper

My static variable got initialized [B]everytime[/B] the function is called. Here's my code(simplied), thanks. - [code]<script> function validate() { return true; } </script> <?php vote(); Function vote () { static $testvar = 1; echo $testvar; if ($testvar == 1) { $testvar++; echo $testvar; } } echo '<td><input type="image" width=50% src="pix/camera.gif" …

Member Avatar for coboldeveloper
0
135
Member Avatar for veledrom

Hi, As i am new in OOP, i just want to ask those who are experts in OOP that can this my example be considered as OOP example? Thanks [code] dbprocess.class.php <?php class DBprocess { private $dbconn; private $db; public function __construct($host, $user, $username, $password, $database) { $this->dbconn=mysql_connect($host, $user, $username, …

Member Avatar for ShawnCplus
0
94
Member Avatar for haresh.chugani

[code=php]<? //Database Connection $dbcnx = @mysql_connect('localhost', 'Haresh', 'iwdpwd'); mysql_select_db('iwddb',$dbcnx); $memberidresult = @mysql_query('SELECT * FROM members'); //db hase only 2 fields, memberid & name while ($memberarray = mysql_fetch_array($memberidresult)) { $memberid = $memberarray['memberid']; echo '<p>The member id is ' . $memberid . '</p>'; $namelink = $memberarray['name']; echo '<p> <a href="http://www.xyz.com/x/?x=c&amp;z=s&amp;v=1801659&amp;k=' . $memberid …

0
42
Member Avatar for onethirtyone

Hey all this is a pretty simple question, basically I connect to a mysql database, and iterate a list of names like this: [CODE]$result = mysql_query("SELECT * FROM Students"); echo "<table border=\"1\">"; while($row = mysql_fetch_array($result)) { print " <tr> <td> " . $row['Student'] . " </td> <td> <form name=\"FRMdelete" . …

Member Avatar for humbug
0
308
Member Avatar for lonestar23

How would I go about combining two seperate rss feeds to appear as one list in PHP? example: abc.com/horse/rss monty.com/cow/rss === results === 1.) lovely horses 2.) great looking cows 3.) my pony is sick 4.) cows make good steaks etc.... Thanks in Advance!

0
81
Member Avatar for madristaa

Hello Friends, I have created a form which has by default 4 rows and 4 columns. Once the user click on More(which as bottom of the table) one more row will be added to the form. When the user click on submit their information will be submitted. Every student will …

0
71
Member Avatar for solocky

hello all i would like to know how to parse a page for links,follow a link,parse all occurances of a string whch follows a given tag then move on to the next of the originaly parsed links and do the same any help wwould be highly appreciated ciao

Member Avatar for Will Gresham
0
50
Member Avatar for liferentsus

This project just got dumped on me. I have a text file that has several lines in it. Like this: [code][COLOR="Green"]<cat:8850> <begad:1279434><logo:><togurl:y><togemail:y><bkgrdtog:n><addr:ATTN:CHARLIE><zip:50613>'05 Pontiac Grand Am SE, 35,200 mi., $9,600 or best reasonable offer. Contact Charlie at 319-266-XXX<endad> <cat:8850> <begad:1278968><logo:><togurl:y><togemail:y><bkgrdtog:n><addr:34304 160TH ST.><zip:50613>'07 GRAND Prix, red, GM certified, 35,000 mi. Leather, sunroof, …

Member Avatar for liferentsus
0
208
Member Avatar for genieuk

Hi, Thanks for looking. I have a contact form and everything else is checked against validation apart from the textarea. For some reason i cannot get textarea validation to work using php. I have tried: [CODE] if (strlen($_POST['query'] == 0 ) ) { echo "<p>You have not entered anything in …

Member Avatar for genieuk
0
2K
Member Avatar for dmorton

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Sites\Single49\questsafety\webroot\login\includes\config.inc.php on line 55 A system error occurred. We apologize for the inconvenience. im not sure what this is tellin me can someone please help me …

Member Avatar for kireol
0
47
Member Avatar for itisnot_me

hey all. i was wondering what some of you think would be a great start for a shopping cart that integrates paypal for a web software. and that after they go through the payment process they will beable to create there account i am just starting to get into ecommerce …

Member Avatar for chrishea
0
106
Member Avatar for genieuk

Hi, I have built a newsletter subscription script from scratch but cannot go any further. I will be creating an admin panel but not sure how i go about actually using something such as a WYSIWYG editor to send out the newsletter to subscribers. Can anyone recommend a free editor …

Member Avatar for itisnot_me
0
118
Member Avatar for jzimmerman

hello all, I am looking for some help doing multiple queries. I have two tables that are not related that I need to query on on PHP page. The page is for people to register for an event. The first table has a selection of dates for people to arrive …

Member Avatar for ShawnCplus
0
74
Member Avatar for shea279

OK, I put together some sample code from Paypal's api, that should complete a payment and notify me with IPN. For some reason it is not working. I tested it with sandbox.paypal.com's IPN tester, and that worked. (if it works, it is supposed to write all post variables to ipn.html) …

0
97
Member Avatar for veledrom

Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private …

Member Avatar for veledrom
0
369
Member Avatar for odysea

is there any way to get the id you are going to insert the data in before you post the data, like get the last id and do a +1 to it or something pleaseee?

Member Avatar for odysea
0
154
Member Avatar for Aamit

I have 100 items and 10 vendors. Vendors bid on that items like Vendor1 Bid [B]Item quantity price Total Min-require[/B] Item1 10 10 100 200 Item2 15 20 300 Item3 17 17 289 Item100 10 10 100 Vendor2 Bid [B]Item quantity price Total Min-require[/B] Item1 10 12 120 300 Item2 …

0
61
Member Avatar for odysea

hi guys any idea how i can insert a whole html code in $content please ? basically i want to paste my html template after $content ='whole html code goes here' any ideas ? thanks in advance [CODE]<? if(isset($_POST['save'])) { $pagename = $_POST['pagename']; $content = 'test'; $filename = "cms/pages/$pagename.php"; $filehandle …

Member Avatar for odysea
0
235
Member Avatar for justted

Hello, I have been looking at tutorials and pages on the net regarding cookies and sessions. Originally I thought my script was using both but then noticed it doesnt. I wanted to know if there is anything wrong with this code as my new server doesnt seem to like my …

Member Avatar for somedude3488
0
736
Member Avatar for nathenastle

Hi all, while sending newsletter to more than one people iam not getting message,if message is showed and the error gives the following please give me suggetions.... This is a multi-part message in MIME format. --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: image/pjpeg; name="2 air.jpg" Content-Disposition: attachment; Content-Transfer-Encoding: base64 …

Member Avatar for cwarn23
0
139
Member Avatar for ranyapalanivel

hi, i ll create a session for a program and save the login time. how can i give the session expire time and where can i give it. Thanks

Member Avatar for cwarn23
0
56
Member Avatar for san_cash

Hi!, I am trying to update record but an error is coming. Can any one help. [B]error is - mysql_numrows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\xampp\Test\Report\Despatch\update.php on line 10[/B] [B]here is the script[/B] <? $id=$_GET['id']; $username="root"; $password="mysql"; $database="service"; mysql_connect(localhost,$username,$password); $query = "SELECT * FROM contacts …

Member Avatar for san_cash
0
160
Member Avatar for jondoughty

Hello, I am relatively new to PHP and need some help parsing a file. I was able to use explode to parse the file at the | delimiter , however I cannot figure out how to parse the file at two distinct delimiters. The file will need to be parsed …

Member Avatar for jondoughty
0
110
Member Avatar for theimben

I need something to read all files in a directory and all files in child directories and any directories below this. Could someone provide a snippet for me. Thanks :)

Member Avatar for kireol
0
260
Member Avatar for Temax

Hi I'm working with php in my project at school. Now I have a problem, it's a system where I want the administrator to chose a logo from his computer and submit it. Then show it when registed persons login. I'm using Mysql - and I want load images in …

Member Avatar for kireol
0
56
Member Avatar for coolmind259

Hi Guys, I have a problem in uploading images on the server. I have tried on my localhost and its works fine, but when I upload on the server then file uploading doesn't work fine,file is not saving in the sarabase as well. Please help me in this , thank …

Member Avatar for eriksank
0
118
Member Avatar for xmaddness

I am trying to do a simple MySQL query using my db class, but for some reason I am having issues with getting the query through using my db class. If I hard code the db call bypassing the class, it works fine. Here is the class: [CODE=php]<?php //////////////////////////////////////////////////////////////////////////////////////// // …

Member Avatar for xmaddness
0
147

The End.