passing mysql_fetch_array to array()
how can i pass mysql_fetch_array() to array() ...
how can i pass mysql_fetch_array() to array() ...
Can Google Map API GXml parse .kmz files directly? if not how is the best way to convert .kmz file to .kml? The .kmz file is stored on database and PHP code is used to retrieve it. ...
i want to create dynamic banner rotater wih php ajax i want to pass the mysql_fetch_array() to an array to create a new array() to create xml response.......... here is my code $sql = mysql_query("SELECT * FROM ads"); header('Content-type: text/xml'); echo '<?xml version="1.0" ?>'; while($row = mysql_fetch_array($sql)){ $title = $r...
Hello experts, I have to develop an elearning application. For which I wanted to know which platform is best. PHP or .Net. I would be integrating third party applications in my project. Someone pls guide me in right direction. Thanks. Kavitha ...
If you click view,you'll open that file in browser, while download will pop up a dialog to save that file on your disk. ...
Hi everyone, I am building an multiple file upload form that user can use to upload their pictures without being redirected to another page. The pseudo code as follow: 1. prompt user to create new album and redirect them to the addphoto.php page. 2. at the addphoto.php page user can pick their pictures to upload without going fu...
Hello all, I have a joomla website with the virtuemart module. What I have are images and thumbnails which are hosted on a other domain. Virtuemart gives me 2 options: 1 - browse for image, a thumbnail will be automaticly created 2 - enter a URL for a image which is external hosted, this option doesn't have a resize option The way ...
is there someway you can categorize the code your are writing in these two programs. eg. if you have a function you can click the - sign on the left and it will collapse the function. but if i want to collapse a section of codes with some functions and procedural code, how can i do that? then you can have different "chapters" like in W...
I've being provided with a code which can resize/resample images from a url. I would like to have this code implemented in my website. The resample script is pretty straightforward, but I really don't know how to make it work with the rest of the website. I really hope someone can help me with this problem. The code which produces a thu...
Is there a real solution for COMET AND PHP combination? Basically, I've come to a point that I need to update a user home page periodically whenever there is new data in the database. As far as I understand, I need to open a persistent connection between my server and my clients browsers to update the contents of their home page as soon ...
I have this array that populates a dropdown menu. The key is my database key and the value is the corresponding database value. The issue I am having is that when I POST the form, I am getting the POSTed numerical value instead of the string value in the dropdown list. I could query the database to get the string but there has to be a be...
My database has name records that occasionally contain apostrophes, such as Joe's Bar and I've just coded a query script in PHP that grabs that field and sticks it into a select statement with the usual $query = "SELECT address FROM restaurants WHERE name='$name'"; and the apostrophe in some of the restaurant names derails the Love Train...
Hey, I am wondering how to extract the data from a table in a database onto a table in a page (users.php), For example: I want to be able to get all of the usernames and all the id's from my database onto a table. So if I have in my database: 1 - Fred 2 - Frank 3 - Margret It will see that I have them user's and id's in the database...
I want to use imgur's API to upload images however I don't want to use my server too much in the act because I'd like to keep bandwidth to a minimum. The API accepts images in a base64 encoded string or binary. Also if there's a way to encode images into base64 or binary in javascript that would be really useful to know too ...
Example: I insert a row into the DB with this, using PHP's built in PDO: $sql = "INSERT INTO mytable (name, ok) VALUES ('john', '1')"; $this->dbh->exec($sql); I need the id of that row. How could I get that? ...
I`m using Snow Leopard for web development with PHP. I have a folder in my home directory which is used as the eclipse workspace for the project. I would like to use it as my deployment directory in Apache, so that any changes that i make will be instantly visible. For that purpose i created an Alias in httpd.conf as follow: Alias /mys...
I need a function which searches a dir for UP TO 5 files (only MAX 5 files in the dir). The files have the same names almost, an ID nr ending with '_1' for file 1, '_2' for file 2 etc. It simply ends with a underscore, and then the file-nr. Example: filename = id.'_1.jpg'; // File 1. Here is the tricky part, read carefully: Now I n...
I just started making this .php file and i cant seem to figure out why its throwing this warning Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\xampplite\htdocs\projectchest\controlpanel\index.php:1) in C:\Program Files\xampplite\htdocs\projectc...
Hello I am just learning more about using classes in PHP. I know the code below is crap but I need help. Can someone just let me know if I am going in the right direction. My goal is to have this class included into a user profile page, when a new profile object is created, I would like for it to retrieve all the profile data from...
Hi Guys, I am trying to connect to MYSQL database using the Pear DB library. IS there any settings i need to do if i want to work with Pear DB library? Thanks ...