39,323 Topics
| |
I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me … | |
Hii Respected Forum members can anyone solve my problem what i want content restriction based on user role and sidebar category based on user Role i have three type of user role Beginner,Intermediate and Advance... Beginner Role: Can Read only seff Blog Intermediate: can Read self and Beginner Blog Advance … | |
hi m using php n mysql m trying to merge two tables of same database and then print them but somehow it is not working it gives me the error my code is [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $date= $_POST['date']; $shift_num=$_POST['num']; $query="SELECT shift_id FROM shift WHERE shift_no='$shift_num' AND date='$date'"; $result=mysql_query($query); … | |
Hey Guys, I'm looking for the best way to model my noSql Database to allow for user notifications and activity stream. what would the flow to something like this be? I don't want to annoy the user with 1000 notifications if they don't need that. Activities and Notifications will include, … | |
Hello Every One ! How to show md5() password from MySql table in PHP, I have saved my user's password as , [CODE]$password = md5($_POST['password']); $save = mysql_query("INSERT into users(password) VALUES ($password)");[/CODE] Its encrypting nice and works fine when user logs in , that's not a problem, my question is … | |
| Hey I currently have a demo shopping cart , it works great . the user can add whatever items they want to it. However now i want to add just the bookId's , quantity and price to my sql table to simulate an order taking place. the shopping cart code … |
I want to invert my array, can I do this? :( :( | |
hi m facing same problem from 2,3 days i m too confused now. i m making an application. when i take data from from dont know why it doesnot reach the other page as print_r($_POST) is empty my code of both files are" [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); ?> <!DOCTYPE html PUBLIC … | |
your suggestions will be highly apreciated... | |
Hello, On my way down a long road to develop a web form for a local sports league. Upon form submission, on my process.php page, I am trying to tally up each of the player's highlights throughout the match form. [URL="http://radmedia.org/EWMSa.jpg"]http://radmedia.org/EWMSa.jpg[/URL] Right now I have code which works, but I … | |
I'm running the following code in PHP to generate the random list of movies from the database but since value of genere is an array it is just capturing the first value of the array. How can I modify the query so that I can get all the values of … | |
haii... I have written the code for a social networking site like orkut in php but due to guidelines given by my project guide i need to convert this code to j2EE is it possible??? i am new to j2EE can some one plzz tell me a site to learn … | |
Currently I'm reading XML attributes in the following way, this is the feed.php file that is called by the index page. [CODE]<?php for ($start < $end) { $xml=$_POST['q']; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $i = $xmlDoc->getElementsByTagNameNS('http://search.yahoo.com/mrss/','thumbnail'); $image = $i->item($start)->getAttribute('url'); echo "<img src='$image'></img>"; $start++; } ?> [/CODE] Where $start and $end … | |
| Hey everyone. I am working on a website for a friend and I have finished designing the website and have now started developing it. What I am trying to do but am having problems with is making a menu that uses two tables in the database. [b]menu[/b] and [b]menuPerms[/b]. Below … |
Hello, since i am new to the forum please excuse me if the topic is not in the correct section. I would like to ask how to do the next thing i mean when you have a limit on who is online and who does not say 30 users are … | |
good day; please spare some of your precious time with me, i'm really having a hard time to analyze this. my problem is how to evaluate two dates if it is not the same date. the first date is the actualdate [CODE]$actualTime = date ('d M Y @ H:i:s', $time+28800);[/CODE] … | |
| Hi all, i have a piece of code that selects some data from a database and displays the results in a table. I am trying to edit the code to allow me to email the table to a an address entered, but am having difficulties, can anyone offer any advice? … |
Hello I'm looking to allow users upload pictures onto my site and have it displayed and linked to their site.. This process is for Ad purposes. Ive looked into php mysql uploading images but ive ran into a lot of threads condemning the practice and suggesting saving the images to … | |
Hi, i'm doing an app to manage a music school and i'm inserting instruments and i have to create the program (what do you learn) of the instrument. I'm doing a RichTextBox. Now i have some problems: 1st - is to save what i write in the richtextbox in a … | |
Hello all; I need a hand. this forum has solved a bunch of my issues and I have another doosie on my hand. I have some ajax code that I query information from database in table form. I am trying to add an image link into the table, once it … | |
i want to design a blog. can u plz help me do it? | |
Hello all . I use this code roughly to call some php code then run it in an html container. [CODE] function getVote(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 … | |
I have been asked to develop a Reporting System for an English Class as part of an assignment for Uni. I have two tables [LIST] [*]Students [*]English [/LIST] the data going into the grading system are [LIST] [*]Exam Mark [*]Exam Comment [*]Coursework Mark [*]Coursework Comment [*]Poetry [*]Creative Writing [*]English Literature … | |
Hey, I don't know if this is the right section, but there's no HTAccess section, so I'll just put it here. Anyways, I'd like to make one of those signatures that gets the IP of the person and then makes and image out of it with the IP. I think … | |
I really need someone to help me on the scenario below. I fetch all the rows in a database table with the mysql_fetch_array() and it was successful. I placed a button on each row in order to click and take the user to another page. On click of the button, … | |
Hi every one. I make it the following code for profile page.but i click edit profile display onle personal description.dont display . `<?php if($sf_user->hasFlash("notice_change_password")): ?>` this area. plz tell me how to change. <?php use_javascript("location") ?> <?php use_javascript("editProfile") ?> <?php slot("js") ?> <script type="text/javascript"> $(document).ready(function(){ $("#personal_country_id").change(); }); </script> <?php end_slot() … | |
Hey everyone! So I have a log in script (that someone on here gave me for testing purposes) that logs in based on user_level and I also have a quick login area instead of going to the log in page..on the log in page..when the user doesn't enter any inputs … | |
hi i m writing a program it is workng fine but doesnot update my database it gives me error since there are 4 query how can i know which one is wrong my part of program is: [CODE] $query2="SELECT * FROM rpms WHERE product_name='$raw_material1'"; $result2=mysql_query($query2) or die(mysql_error()); if ($result2) { … | |
been stuck this for the whole day.. need to seek advice from u guys.. it dont seems to work if i login as normal user... but if i log in as admin, it will redirect me to admin-index.php correctly. [CODE] <?php // Array for recording errors: $login_errors = array(); // … |
The End.