39,323 Topics
| |
hi Iam new for php and trying to learn, i want to know what is this line of code mean : $_PROFILER->mark('afterRoute') : null; $_PROFILER ?? -> ?? what does it used for and what is it mean ? mark()??? : ?? null?? and 'afterRoute' ??? thanks for all ;) | |
<?php include_once("connectDB.php"); if ($_SESSION["loggedin"] != "true") header("Location : member_login.php"); $aname = $_SESSION["aname"] ; $aid = $_SESSION["aid"]; $result = mysql_query("select * from member where m_ID = $aid"); $row =mysql_fetch_assoc($result); $ticketid = $_REQUEST["ticketid"]; // Use this var to check to see if this ID exists, if yes then get the product $result … | |
hi, hope if someone can help me, my conact form works and i receive the mail, but it shows me just the email and phone this is a test: Email = test@live.fr Name = Phone = 06 09 56 89 45 Message = Email = forza-ayoub@live.fr Name = Phone = … | |
Hi there, I have some code which quite nicely uploads PDF files to the server: [CODE] if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check if the file is JPEG image and it's size is less than 350Kb $filename = basename($_FILES['uploaded_file']['name']); $ext = substr($filename, strrpos($filename, '.') + 1); if (($ext == "pdf") … | |
My version of Netbeans 7.3.1 freezes at startup. I've already deleted the cache to no avail. Cannot say I can make a lot of sense of what I read on Google. Should I use another ide? | |
Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something … | |
Hello I've been getting these weird code on my site. Here is a sample "#74ed9f# if(empty($doo)) {$doo = "";echo $doo;} #/74ed9f# ". My antivirus also gets alerted when I received visit my site. Here is my site's link http://callumco.com/agranex_cms/ What is this and how to fix? Thanks! | |
Here is my Code ::: <?php if ($handle = opendir('images/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; while (false !== ($entry = readdir($handle))) { echo "$entry\n";?><br/> <?php } /* This is the WRONG way to loop over the directory. */ while ($entry = readdir($handle)) { echo "$entry\n"; } closedir($handle); } … | |
Hi, now I've a function which is add product to cart: function addtocart($pid,$q,$attribute){ if($pid<1 or $q<1) return; if(is_array($_SESSION['cart'])){ $max=count($_SESSION['cart']); $_SESSION['cart'][$max]['productid']=$pid; $_SESSION['cart'][$max]['qty']=$q; $_SESSION['cart'][$max]['attribute']=$attribute; } else{ $_SESSION['cart']=array(); $_SESSION['cart'][0]['productid']=$pid; $_SESSION['cart'][0]['qty']=$q; $_SESSION['cart'][0]['attribute']=$attribute; } } And now my remove product function is : $id is generate from for loop in cart page which is same … | |
dear friends. have been having problems on my new web page. i want to create chat,like,poke or wink, but i dont know how to go about this. please helpme out. (kazzysky2000@yahoo.com) my bbm pin is(2950df97).thanks | |
In VB.net this works: client.Host = "smtp.gMAIL.com" client.Credentials = New System.Net.NetworkCredential("b040Mail2@gmail.com", "*****") client.Port = 587 client.EnableSsl = True I'm trying this in php (from Xampp) but it gives me an error: ini_set("SMTP","ssl://smtp.gmail.com"); ini_set("smtp_port","587"); ini_set("username","b040Mail2@gmail.com"); ini_set("password","*****"); $to = "p806Antwerp@gmail.com"; $subject = "testing"; $message = "This is the message"; mail($to,$subject,$message). Is there … | |
Hi all I know how to sort an array but I dont know how to sort an array according to a value in the second array... <?php $array1 = array( array('name'=>'01','number' => 1), array('name'=>'07','number' => 7), array('name'=>'05','number' => 5), array('name'=>'06','number' => 6), array('name'=>'02','number' => 2), array('name'=>'03','number' => 3), array('name'=>'11','number' => … | |
Hi, Can some one tell me where I can find the function `get_user_by_identity_row_array() `in the flexi auth system? it is usauly called like : $this->data['user'] = $this->flexi_auth->get_user_by_identity_row_array(); I have looked every where, but maybe I’m missing it.. where can I find this? Thanks in advance. | |
Hi, is there any preg_match only allow `a-zA-Z0-9():[space]` ? Please help me =( | |
Hi guys....ammm...I created a table in one function and then used it in another function. The temporary table is created this way: $tmpTable = "tmpTable"; myCreateTable($intHandle,$tmpTable,$schoolYr,$semester); CREATE TEMPORARY TABLE $tmpTable type = heap SELECT Payment.No FROM (Payment INNER JOIN Othr ON Payment.Autokey = Othr.key) I am passing the table name … | |
Hello there, My query is like- I have one pdf and xls file as link. When any employee try to click on that link, then it should ask me for credentials as name(pmp) and password(123) if these two things matches, thwn only it should allow you to view/download taht xls/pdf. … | |
want to restrict users to access particular webpages in my applicatipn. In my application I have 4 webpages like Mumbai, Delhi, Bangalore, Kolkata and I have havie 4 users say User1, User2, User3 and User4. All users are Admin. My requirement is that all 4 user can't access Mumbai page, … | |
Hi all, I need to create a timetable in php. Example: we need to create timetable for two classes as LKG-A and LKG-B. There are 5 periods and 5 teachers for both the classes. Suppose if we choose a teacher for first period in LKG-A that teacher should not be … | |
Hi I am new in magento. so, I don't know how to display products in home page .I add product in admin side .but, How to display it in frontside i don't know. So, Someone please help me Regards Nits | |
Hi, I have been able to write to a text file, then another page can read from that file, all good.. Problem is I'm using multiple txt files just to set various variables. There is a reason I'm not using a database. Can I somehow, write to a file after … | |
I have the following: in my **MODEL:** function get_advert() { $sql = "SELECT * FROM job_advert"; $advert = $this->db->query($sql)->result(); return $advert; } in my **CONTROLLER:** function get_detailed_list() { $job_advert = $this->ranking_model->get_advert(); echo '<pre>'; foreach ($job_advert as $j) { $job_id = $j->advert_id; $sql = "SELECT r.rank, a.advert_id AS job_id, a.job_title, d.firstname, … | |
my goal is to list each job_title or job_id and under each job_title or job_id I want to list the candidates that qualify for that job I have this sql query: SELECT * FROM rank_results AS result WHERE result.job_id='{$job_id}' GROUP BY job_id ORDER BY rank ASC I know this is … | |
Hi. 'm new to php..please help.. 'm working with dropdown and submit button.. the dropdown contains certain values..if the user selectes one option in dropdown and clicks submit button, values corresponding to the dropdown should be displayed in table format from the database. the file name is campus.php 'm attaching … | |
HI, I am trying to convert an audio file that is in wav format to mp3 format. I have installed apache and I am using windows 8. I downloaded the files for ffmpeg and tried to run the php script and convert the file but no success. What I am … | |
I have written a script when clicked it creates a zip archive of files from the server and start downloading. Till this point everything is fine but what annoys is that it freezes the browser whether it be Chrome, Mozilla or IE. I assume this is due to overheard of … | |
I have file that is supposed to pass the id of a link to using the ajax post method to a php file so that a div on my webpage updates. But nothing happens so i think the class is not being passesd. Can anyone see the problem. blog.js $('a.bloglink').click(function(e) … | |
Hi, I need to show results with some filters on mysql query. The filters will be taken from $_GET['filter'] There are going to be multiple combinations of filters. Like : filter1+filter2, filter1+filter5, filter2+filter4 etc. I think i need to create a switch() for these filters. And based on the filters … | |
so i have xampp installed on windows the address is localhost and i have a page test.php to preview my code a couple days ago everything worked fine when echoing <?php echo '<'.htmlentities('?php if ($_SESSION['Username']=='nume') { echo 'right name'; } else { echo 'wrong name'; } ?').'>'; ?> and when … | |
hello dani community. i am looking to get my fashion ecommerce website made in Magento and for that reason i wanna know what features magento is offering me by default and what features i need to ask my developers to built into my website (i have all my requirements documented). … | |
i want to make comment box in my own site so i have to make database online but it shows some error, Please help me.!! this is the code <?php $comment = $_POST['comment']; $submit = $_POST['submit']; if($submit) { if($name&&$comment) { $con= mysql_connect("localhost", "root",""); if($con) { $query="create schema IF NOT EXISTS … |
The End.