39,326 Topics
| |
Hi, Just started picking up on PHP (from asp)... Going well. Like php a lot... except for........ My code is below... if someone can please help me get ALL the data from the $POST["catlist"] I would appreciate it. Firstly: To ensure all the contents of "catlist" are selected, chuck this … | |
Currently I build a website, and the idea is that the index (front page) will show entries from all users as well as a main picture. I have considered the possibility that you can let users choose a primary picture when creating a topic, but I want this to happen … | |
How can i put in the code below following, i pagination which should make an input box and write some numbers demek page to go there not to be shown in select her to choose me, but in the field to write :) function pagination($query, $per_page = 10,$page = 1, … | |
Hi! Im a noob to PHP but had to use it instead of ASP because I couldn't retrieve images from database using ASP + MS Access... Anyways.. I have couple questions: Number 1: How to retrieve and displaymultiple(!) images(jpg) from mysql DB? NUmber 2: I have a main page that … | |
I have already created profile pages, but they can only be seen by the person who is logged in. How can I make them public so that other people can view them? Basically I want to make it so that if the user is logged in, they can edit their … | |
how can i submit form values to server without refreshing page i.e using ajax.consider fname,lnm,gnd,dpk as sample form fields to illustrate this. | |
I have the following problem passing coordinate data from a web page to a php handler that will read and write the data to a storage file or a database. What I am asking the user to do is click on a line (a png image) which has attributed coordinates … | |
Hi, Yesterday I try to figure out that if we input day and the system will add day to current date and display result but I got problem example below input 1 day to add table 1st record 2012-05-05 Add 1 day 2012-05-06 input another 3 day table 1st record … | |
Hi, I'm creating a web app that downloads sms messages from an M2M server using a Soap Client. The problem I am getting is that the SoapClient is not being found when i do this: $m_obj_client = new SoapClient($m_wsdl); The error i receive is: Fatal error: Class 'SoapClient' not found … | |
My site needs a way to know whether a user is an admin or not in multiple pages. So is it safe to store whether a user is an admin or not in session variable? Or is there a better alternative (Maybe another superglobal variable?), It will only hold a … | |
i want when any user type a mar.com/work.php it aces the page but url is showing mar.com/ | |
I am trying to process an array to get variable name and its value. below is the code. $s = explode("&",$mine); foreach($s as $k=>$v){ $v=explode("=",$v); for($i=0;$i<count($v);$i++){ $a[$v[$i]]=$v[$i+1]; } print_r($a); } The prolem is that the array repeats itself in output. as shown(look at it keenly): Array ( [APIresult] => 000;APIresultexplnation … | |
Hello, Can somebody help me with my contact form? I am getting this error message "Parse error: syntax error, unexpected T_IF in contact/contact-form-handler.php on line 5". I tried adding more parenthesis but I can't seem to figure it out. Thank you! <?php $errors = ''; $myemail = 'emailaddress@gmail.com';//<-----Put Your email … | |
Hello, I currently have this setup for a "download a mp3" php page: [CODE] <?php include "class.php"; $account = new account(0); $id = $_GET['id']; $u = $_COOKIE['username']; $a = mysql_fetch_array(mysql_query("SELECT * FROM items WHERE id='$id'")); $file = $a['actualPath']; header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$file"); header("Content-Type: audio/mpeg"); header("Content-Transfer-Encoding: binary"); … | |
I have a website which holds articles. So right now theres a page called viewarticle.php and i use GET to send the article id so that it will be retrieved by MySQL database (for eg. viewarticle.php?id=2 loads article no. 2) But instead of that is there a way of refering … | |
| Hi I have a question. I haven't try this yet but rather have someone tell me that it will work or not. For example I have this let's call this **1.php** file **1.php** has these two categories SKU: <?php echo stripslashes($row1['sku']);?> Item ID: <?php echo stripslashes($row1['itid']);?> I want to submit … |
I think I have a relatively simple problem, but forgive me, I'm new at this. I'm trying to take output from a dynamically created checkbox in php to a foreach statement to make a new string that I can use to request an update from mysql. In the foreach loop, … | |
Hi, currently working on tutorial on how to create simple login php for my juniors. I learnt to create login php using dreamweaver cs4 and xampp, it works. This time, I try to modify the code and using zymic database [http://mysqlquery.zymichost.com](mysqlquery.zymichost.com) first i create the index.html <html> <form action="login.php" method="POST"> … | |
| I would be great if someone could spot the problem with this code please. I have a MySQL table that was populates an Options list which works well when adding new records to another database table. The code is: $query="SELECT id, types FROM $table ORDER BY types ASC"; $result = … |
Hi everybody, I created the userlogin page.user give username and password .afterthat this error was comming.but this code work in online server.i adding the new module so,i copied and paste the my local drive. | |
OK. I have an Ajax getproduct() function that calls getproduct.php page with the id of li tag elements from multiple uls in #sidebar div. The id of each li tag references a table in the database as `'$q=$_GET["q"]'`. All the rows in the tables called are the same and each … | |
hi i installed wamp5 1.7.4in windows 7 and started wamp server using komodo edit i created a file with a test command <? php phpinfo(); ?> but all i get is blank page i tried html it would work fine but none of the command for php is working | |
HI everybody, I have this error.i created a user login page using sfguard user.(symfony framework) but i include php.ini Windows: "\path1;\path2" ;include_path = ".;c:\php5.3.8\PEAR" but still same error was comming.what is the problem.plz anybody help me. Fatal error: require() [function.require]: Failed opening required '/' (include_path='.;C:\php\pear') in C:\wamp\www\public_html\lib\vendor\symfony\lib\view\sfPHPView.class.php on line 75 | |
I got this error on my page when I tried to login, I don't know what happened please someone help me. What do I need to do? Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'steve_wff'@'208.113.246.18' (using password: YES) in /home/steve_wff/worldfamousflags.com/usssa/system/database/mysql.php on line 6 Error: Could not make a database connection … | |
Good Morning everyone, could some one please send me and image of an enrollment System for high school for my reference? | |
I have a question that will probably be easy for someone to answer. I have a form with about 20 fields +- to be entered... When submitted, I check for the validity and existance of a few of the fields that are important, but not all of them What I … | |
How to replace local file path to insert url link [download.php](https://github.com/apps-vn/download.php/blob/9ffc7c80efe57ad8d29f10897f04155c463778e3/.gitignore) // Free Downloads if (isset($_GET['free'])) { $row = $android->getFreeDownload($_GET['free']); if ($row) { $fname = basename($row['filename']); $file_path = ''; $android->fetchFile(BASE_DIR, $fname, $file_path); $fsize = filesize($file_path); $fext = strtolower(substr(strrchr($fname, "."), 1)); if (!file_exists($file_path) || !is_file($file_path)) { redirect_to(($core->seo == 1) ? $core->site_url … | |
hi i'm trying to create a search function for my website and I keep getting this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7526299/public_html/SearchResult.php on line 158 <form action='SearchResult.php' method= 'get'> <input type='test' name='k' size='50' value='<?php echo $_GET['k']; ?>' /> <input type='submit' value='search' /> … | |
Hi, I have Folder Which Name is **LAPO** and There are three Folders insider whihc names are **North**, **Central** and **South**. In North Folder there are many Folders Like **9876** , **9877** , **9333**, **9853** etc. In all Folders there are files Named PO.pdf There are more then 1400 Folders … | |
<select name="country" id="country"> <option value="IN">India</option> <option value="PK">Pakistan</option> <option value="UK">United Kingdom</option> <option value="US">United State</option> </select> When a user selects a country and clicks submit php gets the **value=""** ie, country code instead of country name. |
The End.