19 Posted Topics
Here's a quick tutorial on executing mysql stored procedures in php using mysql, mysqli, and pdo for the people using the different database extension: [URL="http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/"]http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/[/URL]
[URL="http://us2.php.net/str_replace"]str_replace[/URL] should do what you are trying to do. Give it a quick look.
Try using [URL="http://us3.php.net/is_null"]is_null[/URL] [CODE]echo is_null($row_rsTimelineActive['ReservationFormSentToPP']) ? 'no.gif' : 'yes.gif'; [/CODE] You can also use [URL="http://us3.php.net/empty"]empty[/URL].
All that information is stored in your web server log. Find where the log is, open the file, and search for the image.
I thought I would share with you all a tutorial I just posted on creating a Facebook app using the Facebook Graph API and their PHP SDK. It's a very easy to follow tutorial and by the end you'll have your own app reading and writing posts to your wall …
Any variable submitted by a form is accessible to php on the next page via the name used on the form for that item. Ex: <input name="job_id" value="123"> In the next page you can call that var in php by using the request variable ([url]http://www.php.net/manual/en/language.variables.external.php[/url]) echo $_REQUEST['job_id'];
Line 12 seems to be missing a single quote at the end of the username variable.
For mysql_real_escape_string to work you need to have an active connection to a mysql database. Make sure you are connected to the db and can query it before you call mysql_real_escape_string and you should not get a warning. You can also try passing in the db connection variable as the …
Not sure how hands are you are looking to get but you can make your own. Here is some code I wrote to access the twitter api and bring back tweets: [URL="http://www.joeyrivera.com/2010/using-zend_paginator-with-twitter-api-and-zend_cache/"]http://www.joeyrivera.com/2010/using-zend_paginator-with-twitter-api-and-zend_cache/[/URL]
Could it be that now() returns date time and your field is only date?
update tablename set trackdate = trackdate + 1
For simple data, flash can do GET and POST to PHP and then PHP can insert or select from the database. Depending on what version of Flash and Actionscript you are working with, you'll be using loadVars or something like URLLoader/URLRequest/URLVariables in Flash. On the PHP end, you just treat …
So you want to search for one or many words to see all the different sentences they exist in?
If you want to follow REST or RESTful urls such as the REST architecture states (which seems to be getting more popular) then GET and POST have two very different uses. GET should be used to 'get' data while POST should be used to 'post' or 'create new instances of' …
Here's a tutorial showing how to use mysql stored procedures with php. Hope it helps answer you question: [URL="http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/"]http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/[/URL]
Can you post your AS code to see what you are trying to do that isn't working? You call php, get a variable which is a name, then you try to load that movieclip correct?
To send complex data types (arrays, objects, recordsets) from Flash to PHP you'll need to use something like AMFPHP (Action Message Format). AMF will convert that complex data type into a portable binary format and then reconstruct it on the server. You could also use something like XMLRPC but I …
Here is a tutorial explaining how to create web services in php using amf, xmlrpc, json, and rest. It's using the zend framework but it may still help people understand these a little better (or go download zend ;p) [url]http://www.joeyrivera.com/2009/amfxmlrpcjsonrest-zend-web-services-tutorial/[/url]
The End.
mazeroth