39,320 Topics

Member Avatar for
Member Avatar for mtho

Hi Guys Im a newbie and a somewhat beginner in PHP Here is my problem I want to insert this date format - DATE_FORMAT(news.updated, '%%M %%e, %%Y') AS formatted FROM news into this already existing sql statement - $sql = "SELECT * FROM authors aut, news new WHERE aut.aurthor_id=new.arthor_id AND …

Member Avatar for rajeevphp2011
0
190
Member Avatar for DaveyMoyes

Hi Everyone, Hoping someone here can help me fix this problem I have of setting a cookie variable from a databse $id = $row["id"]; variable. This seems to work fine when using session data, but I am trying to use cookies and I am a bit stuck. . . here …

Member Avatar for Biiim
0
427
Member Avatar for sjparida

Hi there, friends I have ajmatrix dna(multi level marketing) script written in php and MySQL, I can't able to install it on wampserver or xammp in windows system, can someone please help me for setting the correct configuration to run the script on localhost.and also can it be possible to …

Member Avatar for pritaeas
0
79
Member Avatar for newbie26

how can i disable printing a webpage using PHP or Javascript?? any code?? my system will go like this: the user can print the webpage (html) only once and then when he/she will attempt to print again that page, there will be an alert or message that he/she can't print …

Member Avatar for Biiim
0
2K
Member Avatar for Gaurav Bindal

can i send a mail by php mail() function using wamp server or i have to create my own web server for such mail sending testing? tell me how to create own web server?

Member Avatar for pritaeas
0
41
Member Avatar for asif49

Is there any possible way of echoing PHP from within XML. The reason is because I want to provide an XML feed, and this feed will be dynamic so I will of course need to use PHP to echo out the statements from within the tags. But XML doesn't seem …

Member Avatar for almostbob
0
355
Member Avatar for HasNor

Hi all.. how can i hide the status bar url (the secret id) in IE 9... i've use this code but it still show the id on the status bar in IE 9, it's ok if i use IE 8..please help me.. [CODE] <a href="list_upload.php?reqid=<?php echo $row['reqid']; ?>" title="View" onMouseOver="window.status='list_upload.php'; …

Member Avatar for HasNor
0
2K
Member Avatar for jrwin_19

Hello guys, does anybody know how to create a timer in PHP that runs even when the user goes offline. I am working on a project, actually a text based game, that needs a timer that runs continuously even after the user goes offline. The game is something like mafia …

Member Avatar for crammo
0
1K
Member Avatar for gopi17

okay....i can't delete the row... the screen is juz blank...been trying to figure this out.... [CODE] $invoice_no=$_SESSION['invoice_no']; $dbh1=mysql_connect("$host", "$username", "$password")or die("cannot connect"); $dbh2=mysql_connect("$host", "$username", "$password",true)or die("cannot connect"); mysql_select_db("$db_name",$dbh1)or die(mysql_error()); mysql_select_db("$db_name1",$dbh2)or die(mysql_error()); $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoice_no'"; //the sql query $result = mysql_query($sql,$dbh1); $row = mysql_fetch_array($result); $container_no=$row['container_no']; $document_no=$row['document_no']; …

Member Avatar for gopi17
0
95
Member Avatar for singularity~

I'm trying to get a form to work with php. When I click submit a submit button nothing happens. [CODE] <?php if(isset($_POST['imageSelectButton'])) { echo "Test: "; } ?> <form id="setImages" action="index.php" method="POST" enctype="multipart/form-data"> <?php $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('../Home')); $images = new RegexIterator($files, '/\.(?:jpg|png|gif)$/i'); foreach($images as $file) { echo "<div …

Member Avatar for veedeoo
0
873
Member Avatar for paulaandrea

Hi, I am new in programing, I want to save images from google-images, I can use filter for only use the free ones. I use a google API, I have the URL and I want to pass to php, but I dont know how to pass from java-script to php. …

Member Avatar for paulaandrea
0
399
Member Avatar for infinitus

Hello fellas :) I have a task to do, there are 10 questions and i obviously need 10 answers :) I have done (attempted) some of them /not every yet/ but i wonder if there are any errors or any correction or improvements that could be made :) Thank you …

Member Avatar for urtrivedi
0
306
Member Avatar for cr7489

hi i am trying to write a method to see whether the word 'not' appears before a positive or negative word then i want to +1 to the negative count and -1 from the negative count any idea how to do this, i already a 2 methods which count how …

Member Avatar for cr7489
0
138
Member Avatar for in4sys

Simple table like this [CODE] CREATE TABLE IF NOT EXISTS `users` ( `id` int(255) NOT NULL AUTO_INCREMENT, `username` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ; [/CODE] [CODE]<?php session_start(); function insert(){ if(isset($_POST)&& isset($_SESSION['post_vars'])){ $insert_query="insert into users set username = '".$_SESSION['post_vars']['username']."' , password …

Member Avatar for Skelly1983
0
202
Member Avatar for arunpawar

HI, i have written a bookmarking page that lets me add urls to database. as i have placed both database results and new url button code in same page. i have a bit conflict. whenever i refresh the page, dot entry goes in database and table gets populated which is …

Member Avatar for arunpawar
0
96
Member Avatar for xabi

Having trawled through approx 100 sites looking at various scripts, I cannot seem to find what I need, so was hoping that somebody could point me in the right direction. Either for a free script or tutorial or I would even consider a paid script. I have a website that …

Member Avatar for Skelly1983
0
106
Member Avatar for Verean

I've tried everything that I know of, to make the fields required. The form is quite simple and small. Here is the visual form code: [CODE]<form action="insert.php" method="post"> <table cellpadding="2" border="0"> <tr> <td>Server Name:</td> <td>IP:</td> </tr> <tr> <td> <input name="Name" type="text" /> </td> <td> <input name="IP" type="text" /> </td> </tr> …

Member Avatar for Verean
0
194
Member Avatar for mlhazan

Hello Experts, I am getting unwanted result.Please help! Here is the function: [CODE] function ArrayResults($result){ while ($row = mysql_fetch_assoc($result)){ //echo $row["first_name"]; //tested :works!! $this->arr2[] = $row; } return $this->arr2; }[/CODE] I called the function and used the print_r to see how is the array: [CODE] $mysql->ArrayResults($mysql->ExecuteSQL("SELECT * FROM Employee")); print_r($mysql …

Member Avatar for mlhazan
0
90
Member Avatar for adityamadhira

Hi I need help regarding file download. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $id = strrchr($url,"/"); $id= substr($id,1,strlen($id)); retrieving name of the pdf from url header('Content-disposition: attachment; filename='.$id); header('Content-type: application/pdf'); readfile($id); code for downloading file but it is not working? So i need help from you guys. Thanks in advance.

Member Avatar for adityamadhira
0
139
Member Avatar for macrogeek

Hello everyone...!!!! I am new to PHP and have problems using $_SESSIONS , the SESSION variables which I set in one file are not recognised in scripts stored in other Files...I get the error :Undefined index 'XYZ' for any arbitrary variable $_SESSION['XYZ']...Anyone having idea to resolve this issue....Following is the …

Member Avatar for weekendrockstar
0
231
Member Avatar for Ctechnology24

Is it possible to retrieve image to a PHP page from database if it used vb.net to save it? because I think the encoding style used by vb.net is not the same to the encoding process that I used in PHP, thats why I cant retrieve my image because of …

Member Avatar for jkon
0
145
Member Avatar for DaveyMoyes

Hi all, this is just a quick question with regards to php session data. . . I have a php built website and I am trying to develop a mobile html / php website to connect to the desktop website. I can enter my username / password / and secure …

Member Avatar for DaveyMoyes
0
189
Member Avatar for mmnewbee

I need help to solve a problem that has been troubling me for some time. I have a php search page that im having trouble paginating. The problem is that only the first page outputs anything the rest of the pages are blank. And I have already gone through all …

Member Avatar for mmnewbee
0
121
Member Avatar for moroccanplaya

[CODE] $url = $_GET['url']; echo $url; [/CODE] i dont know why i get a Undefined index error

Member Avatar for moroccanplaya
0
258
Member Avatar for heshanm

I have following errors in below coding. Undefined variables: fname,focu,foad,ftp,fmf,mname,mocu,moad,mtp,mmf,gname,gocu,goadd,gtp,gmf in C:\wamp\www\Student registration\manage studnt parent details\manageStudentRegistrationParentDetailsForm.php Code <?php $query="SELECT state,name,occupation,office_address,office_telephone,mobile_number FROM parent_info where admission_no='$admission_no'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $first=$row['state']; if($first=='father'){ $fname=$row['name']; $focu=$row['occupation']; $foadd=$row['office_address']; $ftp=$row['office_telephone']; $fmf=$row['mobile_number']; } if($first=='mother'){ $mname=$row['name']; $mocu=$row['occupation']; $moadd=$row['office_address']; $mtp=$row['office_telephone']; $mmf=$row['mobile_number']; } if($first=='guardians'){ $gname=$row['name']; $gocu=$row['occupation']; $goadd=$row['office_address']; $gtp=$row['office_telephone']; $gmf=$row['mobile_number']; } } ?> …

Member Avatar for heshanm
0
112
Member Avatar for ressaince

i have an ASP web services to change byte array that given from the client and change it to a file and save it in the web server the code is like this : [CODE] [WebMethod] public string UploadFile(byte[] f, string fileName) { try { MemoryStream ms = new MemoryStream(f); …

Member Avatar for Dagar.pp
0
510
Member Avatar for danielbala

Hi.. I installed WAMP server... When I go to localhost iam getting this is "NOT FOUND" HTTP Error 404. The requested resource is not found. how to solve this

Member Avatar for danielbala
0
150
Member Avatar for AdmanX

Hello, I am currently building a site for friends that would like to have 1 site but have 4 separate blogs on it. I have created a basic php admin section which allows 1 user to go in and add posts, manage posts and delete posts. What i would like …

Member Avatar for AdmanX
0
199
Member Avatar for subrata_ushasi

Hi all, I am trying to install a project management software "Mantis" but while installing it is giving the error [B]"BAD Does administrative user have access to the database? ( Lost connection to MySQL server at 'reading initial communication packet', system error: 111 )"[/B] urgent ,any body else thanks in …

Member Avatar for subrata_ushasi
0
1K
Member Avatar for mlhazan

Dear users, I am new to PHP5. My LAMP is working just fine.I made small database connect scripts and they just worked as it should.Then I tried the following code and run the mysql.php but showing me following error: [CODE]Could not run query: Access denied for user 'www-data'@'localhost' (using password: …

Member Avatar for emclondon
0
170

The End.