wamp - notice undefined offset
How to turn of displaying this error in wamp: notice undefined offset Turn of only error like that, not all errors- tnx ...
How to turn of displaying this error in wamp: notice undefined offset Turn of only error like that, not all errors- tnx ...
I am using php xpath to get the values from the below xml feed and php the function. <FOUND> <IMAGES> <IMAGE> <SMALL>images/small.jpg</SMALL> <MED>images/med.jpg</MED> <LARGE>images/large.jpg</LARGE> <EXTRAL>images/extra.jpg</EXTRAL> </IMAGE> <IMAGE> <SMALL>images1/small.jpg</SMALL> ...
$err = mysql_query("INSERT INTO tridy (id,NazevTridy,url) VALUES ( '$i', '$tridy->find('div[class=rozvrhseznam]', 0)->find('a[href]', $i)->outertext', '$tridy->find('div[class=rozvrhseznam]', 0)->find('a[href]', $i)->href')"); mysql_error($err); // line 97 Warning: mysql_error(): s...
On the home page of my website I want to display the latest posts to the forum however I don't want to show the same topic twice. How can I modify the code below to do this? http://punbb.informer.com/wiki/punbb13/integration#recent_10_posts Basically show the latest posts, but only once for each forum topic/thread. ...
I'm using the session array to cache chunks of information retrieved from the db: $result = mysql_query('select * from table'); array_push($_SESSION['data'],new Data(mysql_fetch_assoc($result))); My question is, is there a limit/a sizeable amount of information that can/should be passed around in a session? Is it ill advised or signif...
I've been doing web application development for the last 3 years in PHP. I'm now on the verge to give Java a go. My last use of the language was nearly 8 years ago and was mostly academic. I'm reasonably well acquainted with PHP's object model (version 5) and I have almost exclusively been coding in OO. I would now like to transport th...
here is the html code <script src="http://maps.google.com/maps?file=api&v=2&key=" type="text/javascript"></script> <!-- According to the Google Maps API Terms of Service you are required display a Google map when using the Google Maps API. see: http://code.google.com/apis/maps/terms.html --> <script type="text/javascript"> v...
I am trying to integrate Paypal and I am not getting the things right.When the site is redirected to the Paypal,it shows the webpage(the image I have added with this Post). Please anybody help me out of this mess coz I am doing this for the first. Please anybody suggest me where I could be wrong. I have Used this Class to integrate Payp...
Hello everyone, I know this question is rather vague, but how do I proceed about creating a php based in website mailing system in a community website? Any input would be appreciated. I don't know how to start. Thanks in advance. ...
I am trying to convert a small bit of Ruby to PHP, and I have had success so far, except for this one line: string = string[16,string.length-16] I have tried these two things in PHP: $string = substr($string, 16, strlen($string) - 16); // and $string = substr($string, 16, strlen($string) - 32); But the problem is that I have no clu...
Hi, I'm trying to perform a simple SELECT statement from a string taken from a $_REQUEST var but it seem my PDO statement doesn't like the string format, why? My $_REQUEST var contains a string like Hello+World, so I need to replace + with whitespaces to do my SELECT statement correctly. // the data returned is Hello+World $phrase = st...
Hi Everyone: I have been looking through the YouTube API for awhile now, but am not finding a simple way to auto-fetch all videos from a certain account and then display them on the screen. I am planning on using PHP in order to accomplish this, but otherwise I am open to suggestions of how to accomplish this. Thanks for any help. ...
I've been doing some reading on securing PHP applications, and it seems to me that mysqli_real_escape_string is the correct function to use when inserting data into MySQL tables because addslashes can cause some weird things to happen for a smart attacker. Right? However, there is one thing that is confusing me. I seem to remember being...
In recent updates to PHP, they added in various interfaces to allow an object to be treated as an array, such as ArrayAccess, Iterator, Countable, etc. My question is, would it then make sense that the following should work: function useArray(array $array) { print_r($array); } useArray(new ArrayObj(array(1,2,3,4,5)); As of righ...
I understand the security benefits of prepared statements in MySQL. No need to cover that topic here. I'm wondering about the performance aspect of them. Now, I know when a query using a prepared statement is executed twice in a single PHP script, it's faster because the query is only parsed once, once for each query. The client makes o...
I am doing a project where user can upload images like profile image or image for their image gallary. right now its uploading all the images to my server. Now, i want to upload all this image to my rackspace cloud files directly using php script. For example: user select a file press submit with some information the selected file w...
Hi, I have my server's apache configured to redirect every request into index.php, so that I can use urls like : http://www.website.com/about/us Now I need to parse the url in order to determine if each route exists and what to expect from it, so I can set a database table to save the routes and so my clients can edit their routes as...
Hi all, WHAT I ALREADY HAVE: Within my application, I have Credit and Debit columns. I am using the Column type as Decimal 8,2 with Default value being 0.00, for both the columns, in the table. When a user gets credited, with say, $50, the credit column gets the value as 50.00 and Debit gets populated as 0.00. WHAT IAM TRYING TO ACHI...
Hello Guys. I have table called "users" and I wanna make an exact copy as "users_2" as regard the structure only not the content. I wanna do this using PHP only as I don't have an access to phpMyadmin or mysql console. Do you have an idea how to do that ? ...
Just a short question :) I have this code. I wonder if it is possible for a User object constructor to somehow fail so that $this->LoggedUser is assigned a NULL value - object is freed after constructor returns. $this->LoggedUser = NULL; if ($_SESSION['verbiste_user'] != false) $this->LoggedUser = new User($_SESSION['verbiste_user'])...