View Full Version : php answers


Pages : 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

  1. How to return the current password and not create a new one
  2. something like crystal report or active reports for php?
  3. How do I add 12 hours to NOW()
  4. How to compare file data array() with normal array
  5. how to connect scanner with php application
  6. Is it possible to create a computer timer using php/ajax like internet cafe?
  7. Getting FastCGI timeout error... ISS running a php form. How to get error log?
  8. Apache returns 1 byte occasionally
  9. How to return the average of one field of a recordset
  10. How can I disable links that redirect to other pages until they check the agree box
  11. buid filename with concatenation
  12. Get reason for false-return when using file_put_contents?
  13. Cannot add or update a child row: a foreign key constraint fails (`kims`.`question`,
  14. Problem in getting current page number in this case:
  15. Array in IF statement?
  16. Filter array based on a value from another row?
  17. You have an error in your SQL syntax
  18. mysql db and godaddy .php
  19. Can i use .NET to add to a website built in PHP and MySQL
  20. Check if link is valid
  21. bulk update in php or drupal?
  22. how to use php date in mysql query
  23. How to add rows,columns dynamically?
  24. CSV attach + Mail sending
  25. Limit output after sorting an array?
  26. How to match only a single value in field with multiple values?
  27. Problem with CURL for a page using AJAX
  28. How to read and add to an array then write it to a text file
  29. xmlhttp get + innerHTML + php embedded coding
  30. Parse error: syntax error, unexpected T_VARIABLE in on line 7
  31. How to receive data from my database in a webpage format
  32. php script not working for large csv files(20,000rows)
  33. Three Array values to export-csv
  34. How to change a variable in a URL?
  35. Syntax hightlight?
  36. How to update data in the database when deleting
  37. How to get today's date and compare it with database
  38. PHP session Problem
  39. how to get the updated sandbox paypal site return values like txn_id?
  40. Bug in printing time in php.
  41. How to update a user selected drop down menu value to database
  42. How to post a message from PHP page to twitter
  43. How to delete a line with certain format from files in a directory
  44. How to select more than two variables in a mysql_fetch_object while loop
  45. Random number generator on HTML program - only select 5 out of1-100 and no dupilcates
  46. Can anyone explain these error messages?
  47. ftp file transfer
  48. how to debugging the php code in eclipse
  49. Problem in PHP Calendar Event
  50. How do I loop over one function and then move onto another?
  51. How to store the images in mysql table and retrieval using php?
  52. Add Pagination in PHP code
  53. trying to code a chat client in php would appreciate any tips please
  54. Is it possible to download a large file in smaller parts over ftp?
  55. Apache HTTP with PHP 5.2.14 ,on XP HOME
  56. Need help with Joomla 1.5.2
  57. auto-papolate values in corresponding textboxs retriving values from my database(MySq
  58. Warning: Cannot modify header information - headers already sent by (output started a
  59. pcntl_fork suport instaled but not working correctly
  60. Clean URL's in drupal on Windows Server
  61. Page title with MULTIPLE include pages
  62. Search with a dropdown menu by value
  63. How to divide two values from a data table ensuring that it is not divided by zero?
  64. Help needed in appointment booking:(
  65. PHP Fatal error: Out of memory
  66. JOOMFISH MENU LOCALISATION PLUGIN doesn't work
  67. filter results from a check box
  68. Populating City,state from Drop Down Menu
  69. How to confirm payment in paypal using IPN
  70. Drupal bootstrap documentation
  71. how to calculate the upload time
  72. is it worth using a framework or just adopt a modular approach?
  73. preg_match may not fail on 4 and 5 octet sequences, even though they are not supporte
  74. Display img sec using PHP
  75. What's wrong with my MIME Header? Visi is rejecting emails.
  76. I'm trying a php code but i don't know what's wrong!
  77. Table formatted foreach loop to display images.
  78. How do you email form values in html?
  79. Why getting parse error in PHP at line 20?
  80. how to display counter immediately after update
  81. Am getting the error " Bad Request HTTP Error 400"
  82. Composite controllers?
  83. dynamic object creation by string
  84. Ajax value's not retrieved when form is submitted
  85. Recommended php book(beginner)? internet tutorial sites?
  86. How do I get my web server to read PHP?
  87. PHP form some data from mySQL how to send total back to mySQL?
  88. PHP MySQL select not returning information
  89. I am getting a Parse error: syntax error... need some help on login php please?
  90. write option values in drop down menu in php
  91. Multiple image randomizer?
  92. localhost not working
  93. How can I call a C function from php (with argmts) ?
  94. how to group result in subgroups
  95. Restriction in Adding Events in Calendar
  96. Login Problem-using session()
  97. How is it possible to select a value from a field but pass another value to the URL?
  98. Twitter OAuth issue
  99. type hint method/function return value
  100. whats wrong with my update query it resets date to 0000/00/00
  101. How to connect to multiple database via
  102. Problem in downloading a excel file in IE6 & IE7
  103. image uploading script
  104. How I can mainpulate keystore created by java using php
  105. dynamic data population using html dropdownlist control
  106. "Address in mailbox given [ ] does not comply with RFC 2822, 3.6.2."
  107. php 5.2 and MSSQL (sqlsrv driver 1.0) - tipe Bytes (links)???
  108. I have a problem getting my PHP to run from my website subfolders.
  109. i want submit a form continuosly selecting some values from the database
  110. Notice: Undefined index
  111. importing zipped database through phpMyAdmin
  112. Empty results with fetch_array, though DB cell is NOT empty
  113. Registration with image upload
  114. How to insert radio button data into mysql
  115. Member registration with Image
  116. PHP and MySQL multiple table search query help
  117. How to get variables from FLASH through $_POST method then submit to Aweber?
  118. I need a php age calculating script for multiple D.O.B.'s on a single page
  119. About creating an array at php.
  120. How to create an answer submit button?
  121. How to prevent the display of these 'dots' with opendir function?
  122. Problem using require in a class
  123. how to enable PHP CLI (command line) on a hosting?
  124. Create many variables from a loop
  125. how to pass session id between MULTIPLE pages
  126. How can I check if the string variable is empty?
  127. How I can navigate to different pages from a single page using different buttons?
  128. how to convert a sting into integer in php
  129. How do i PHP code a maximum order limit .
  130. Iam getting an errors like session_start[function.session-start]: How to solve this?
  131. Program not working
  132. sting to integer conversion
  133. how to compare fringer print using PHP
  134. How to call an option in php?
  135. How to do models for car inventory database
  136. Is there a simple PDF class that converts HTML output pdf file?
  137. need to calculate value for dynamic formulas,
  138. how to null code using php?
  139. PHP fatal error
  140. Need help in epub validation in php
  141. i want to create a login page in which one has option to register his/her profile?
  142. connect with postgreSQL
  143. how to display mysql_fetch_array results with a template.php file
  144. poker tournament in php (cant increase blinds)
  145. How to use mysqli _construct with database connection
  146. Last word of string UpperCase
  147. Get between square brackets
  148. Path related problem
  149. put ids into array from mysql query
  150. how to use ASP with Apache?
  151. include every half-a-second a file
  152. How to pass the php variable into Javascript..?
  153. how to get the dates of folders to change reflective of the newest data uploaded.
  154. Ajax Script problem...
  155. Get all (selected or unselected) items in a multiple select box
  156. Why this happen? and how can i fix this?
  157. How to delete emails using checkboxes
  158. How to read word document file using PHP?
  159. sending mail in php problem
  160. Is this a MySQLi function?
  161. How do I pass the selected values from one div to another?
  162. whether 4.2.3 supports php mail() function?
  163. how can i fix this?
  164. the addalbum.php is unable to upload the image any idea what i'm doing wrong please
  165. Uploading xlsx file to mysql database?
  166. how to upload video in php
  167. get wordpress php file access on wordpress hosting?
  168. Form to submit, but also display data?
  169. Trying to resolve file path issue
  170. How to include only a few rows from a file
  171. Internet Explorer cannot display the webpage
  172. Get File size
  173. How to use form values in mysql query
  174. why i get the download dialogue box while previewing php page
  175. How to create a email feedback form for my existing website?
  176. How to show the warning after we redirect the user to the same page?
  177. khtml2png errors on X Virtual Frame Buffer
  178. [function.require-once]: failed to open stream: Invalid argument
  179. & changes to & how can I revert it back to & on view
  180. connection to sql
  181. Dreamweaver and PHP in ODBC connection to database
  182. PHP script not recognising mysql database
  183. Need Help in Facebook comment
  184. Simple Web Post Form Error (Parse error)
  185. how will I going to retrieve the data from the database? i used $_GET and $_POST
  186. php mail function not working? why?
  187. Can't make INSERT into MySQL work...
  188. imagecreatefrompng - Why am I getting the "Page cannot be displayed"
  189. converting to DATE format
  190. can't connect to mysql
  191. Correct syntax 7 lines of php code for wordpress template
  192. Wrong datatype for second argument
  193. How To Redirect If Already Submitted?
  194. How to display the image within a div tag..?
  195. Mysql LIKE Search query - How to get most accurate row first.
  196. in this page, the user must specify his username and his password, then it supports d
  197. How can I get information about some other server called a file from my server ?
  198. Content-Type
  199. How do I find out if any array is empty?
  200. [ASAP] Row 36!
  201. how to convert doc to pdf / image with php
  202. What’s missing with Switch Statement?
  203. How to redirect a website?
  204. problem with format_number and fwrite()
  205. Why can't I get this mail() script to work
  206. Error displaying records from MySQL database
  207. Session won't work.
  208. Downloaded file automatically saved and overwrite previous
  209. Upload image to picasaweb from our site(php) without goin to picasaweb site
  210. How to place line number in the Textarea ?
  211. how to fix this query error
  212. PHP Postcard Notice: Undefined index: Notice: Undefined variable errors
  213. How to parse XML product feed using PHP??
  214. What should I do with funky '’' characters?
  215. Open new window
  216. retrieving data from database
  217. query works in mysql(phpmyadmin) but not in php
  218. Benchmark tool
  219. httpd.exe Visual C++ runtime error on running ImageMagick with Apache
  220. when i run php page the date picker control position is getting changed
  221. insert keywords, tags into database
  222. what is the code for this php prog?
  223. how to print checkbox results rows by rows using php?
  224. can i use php to know file name..?
  225. Notice: Undefined index: Scales ...but it is defined? :S
  226. select strings from a table and return them as an array
  227. litle ajax + php+ mysql...
  228. what i can do hide the gride view form the magento category view page?
  229. php how to write query to retrieve data from checkbox that have been choose
  230. Header Location
  231. google checkout get custom variable at continue url
  232. php installation not working
  233. Turn based web game in PHP - communication issue
  234. Trying to read a .aspx page with php
  235. Php Parse Error
  236. Can anyone help to do timer in Ajax with php?
  237. Website won't recognize my .php file?
  238. $_POST problems
  239. I need to take an HTML form to an Excel file... HELP!
  240. mail not working
  241. update status when closing browser window
  242. how to add values in the previous textbox and display the result in current textbox.
  243. Converting Documents (PDF, WORD) to tiff image
  244. Need opinions.. Comments Script with captcha..
  245. fopen() and fpassthru() limited file to under 4kb
  246. how to save imageString into database
  247. is any other way to connect php and mysql?
  248. MySQL array needs string just simply presented
  249. site.com/library from site.com/?mod=library
  250. xml-rpc
  251. hey,i m newbie to php.i wan ask how to passing value from dropdown menu to database ?
  252. i had a site that was already built, i had the Domain name changed, now several link
  253. How can I prevent caching on my website?
  254. Help with Parse Error in PHP
  255. y do i get this error? Unknown column 'imagePath' in 'field list'
  256. Categories with subcategories in Columns ?
  257. How to pipe an email to PHP and resend certain parts?
  258. why do i get this fatal error? function name must be a string
  259. Making Login Library... Want some opinions
  260. Time to Decimal
  261. Insert into mysql from .txt file depending on Date
  262. how can print the most recent statuse of a user among multiple statuses
  263. problem with incllude() function
  264. ajax in php Problem
  265. Echoing out subcategories and all their items
  266. How to send multiple emails at once using php mail?
  267. keep oracle connection in main.php form --not working
  268. I need a API/class for my PHP site to communicate with Salesforce
  269. There has been an error processing your request? how to solve this?
  270. Parsing Raw email data
  271. How to use check boxes dynamically and store the choice in a database.
  272. How to Redirect a page with listing and pagination to proper page
  273. Open a file from php script
  274. $_post doesn't work on IIS 7
  275. data not storing into the mysql database?
  276. magento upgradation pblm?
  277. how can i print a returned array's multiple results
  278. cookie related accounts
  279. Empty tables are being created..?
  280. Creating Search Code ?
  281. Echo Problem
  282. how to add an rss feed to my site that created in php
  283. php script on personality test
  284. need regular expression for <a href=\"/default/imp/compose.php?to=user2%40lakhi.com\"
  285. Remove links for anchor tag <a href=\"/default/imp/compose.php?to=user1%40lakhi.com\"
  286. I am not able to connect Access through wamps5 1.7.3
  287. how to enable certain fileds based on previous filed values?
  288. Is it good practice to detect browsers like this..?
  289. how to maintain the selected value of the drop down list after reloading it thrice?
  290. how do i extract values from an array to show on a html page
  291. Class_Name::$_static_property
  292. how i can display numbers ?
  293. using variable variables with static variable
  294. How I can add different types of video in my site!
  295. how to retrieve hindi text from mysql database using php
  296. How to update multiple rows (php/mysql) for little league database
  297. i need to get the client's computer name using php.
  298. Wampserver installation shows directory not phpMyAdmin
  299. link to a child window inside a php tag?
  300. How do I install runkit on an existing Windows XAMPP installation?
  301. how to add data from html table(rendered from a page) to mysql database using php..?
  302. How to search the mysql database using php
  303. How to implement the database queries as web services.
  304. SMARTY template array search
  305. Download file from database ?
  306. how to download a file using php?
  307. png image crop
  308. How to parse xml which has some prefix before element name?
  309. How to export data to multiple excel worksheets using php
  310. php mysql updating a field in db
  311. Locating an object
  312. Create such a graphic with PHP ?
  313. Sending data to users browser by server push
  314. How to verify password stored in database
  315. AJAX post returning 500 Internal Server Error on Live Server
  316. how to export data from sql server and import to mysql automatically
  317. How can I use ajax twice on one page to call different php pages
  318. Passing array of Variables by Reference
  319. Getting started with PHP and helloworld not working
  320. session variables lost unexpectedly
  321. Request for PHP Object Oriented Programming Interview questions
  322. How to find words from .txt file using specific pattern
  323. How to manipulate array data in smarty
  324. How to pass a numeric value as $9 = $_POST["Queensland"];
  325. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /h
  326. Creating a checkbox array
  327. Why does MySQL insert appear to work but not insert anything?
  328. How to escape "#" character in URL using PHP
  329. Displaying entire row into different text boxes
  330. Nusoap - fix empty xmlns attribute for the response
  331. Illegal Offset & Other Assorted Errors
  332. the query is correct but why form didn't display?whats wrong?
  333. how i slove this "Array ( [0] => Certificate failure for mail." when i use imap_open
  334. How to programmatically transfer a file from linux php server to windows .net server?
  335. HTTP Status 500 in php java bridge!!
  336. Another php session problem
  337. Copying file gives 0kb file
  338. php session problem
  339. why I am getting method not allowed error (405)
  340. Problem with my SESSION
  341. Show latest itens added, instead of oldest
  342. PHP Explode ...?
  343. echo the multidimensional array in the table and echo all the information foreach
  344. having a problem with error message whilst using date/time function
  345. How to update remote databse from local databse using PHP ?
  346. Problem with $_POST variables.
  347. Process Management
  348. How to parse the following xml using php
  349. Execute .jar file from PHP through command prompt
  350. error in com object
  351. Quitz in php with ajax and JQuery
  352. strip html tag by replacing comma at the end of each tag
  353. update xml value
  354. Need you help in PHP i want to read .db file please help
  355. $_POST not working
  356. Variable in url via echo
  357. php reciprocal link script very simple ??
  358. How to insert a variable in a database which is calculated by 3 form fields
  359. how to check IP on the basis of IP Range?
  360. Convert Hibrew etc to Unicode, CSV
  361. Do we need to install any software for using AJAX or it works as javascript?
  362. webdav with Exchange 2007 is not working
  363. how to upload file with textbox using mysql into php
  364. Custom Chaging Page Title with php
  365. System or Server Current Time
  366. to save pictures to the database (PHP) error
  367. How can I set some code to be a variable?
  368. file_get_contents a bad idea?
  369. Acceptable characters are a-zA-Z0-9 and ; in php regex how can I do this?
  370. is there a possibility of getting rid of this error message?
  371. Parse error: syntax error, unexpected
  372. Upload multiple images at once
  373. Parse error: syntax error, unexpected T_VARIABLE
  374. php - exclude number in while loop count
  375. Is it a bad idea to declare an array as array(-1) ?
  376. monitor computer health through network
  377. How can i serialize session in php
  378. How to send and receive email via a website
  379. How can I keep certain hidden text values after submitting a multi-page form?
  380. How to add phone number to contact form and send with email
  381. Error getting when insert data after truncate the table in mysql
  382. file_get_contents & permission errors
  383. How to pass OR assign a variable to a drop down menu in php.
  384. Adding a redirect after submission, not sending if user does not agree
  385. procmail for invoking php script?
  386. Post multiple items from sel2 with selection in php
  387. Klarna API integration
  388. how to get value from dynamically generated textbox in php
  389. Google data update
  390. I keep getting this error message and would love your help
  391. How do I get My SELECT query to select the information for the 3 ticked Items I chose
  392. How do I insert an Image into and echo tag that is in an images folder?
  393. how can I display more than one image in my table???
  394. how to display data which is get from data base in html bage using ajax
  395. Notice: Undefined offset: 49
  396. Why is my PHP script hanging?!
  397. php,dom, xml
  398. Error: the xajax Javascript component could not be included. Perhaps the URL is incor
  399. how to call function php($varible) into javascript withod ajax
  400. How to update a record using ajax php
  401. Need help with implementing a feature in php based web application
  402. How can I show some links/navigation to logged in users in wordpress?
  403. Loss of precision when using the sum() function in php?
  404. dependent multiple list menu
  405. Why is if else statement not working
  406. Warning: imagejpeg() [function.imagejpeg]: unable to open '../photos/uploads/40y.jpg'
  407. How can I send email to multiple recipents
  408. How to change XML attribute value with PHP
  409. how can verified the champ the formulaire with jquery
  410. How can we get pci card details and its location using WMI?
  411. how to avoid error no :150
  412. UTF-8, Internet explorer
  413. How to use an html list box to populate another list box
  414. How to export to CSV Script
  415. i have problem with php syntax?
  416. how to convert a 'asmx' file to xml file?
  417. search box that searches multiple tables
  418. I don't know how to do this pattern!!!
  419. query about php
  420. how to read file names within a folder?whats wrong with my code
  421. How to pull hourly averages for a week's worth of data (5 minute intervals) in MySQL?
  422. How to fix Cannot send session cache limiter - headers already sent error
  423. The HTTP verb used to access this page is not allowed while submitting form
  424. HTML Tag analysis
  425. How to create mobile websites
  426. Passing java output to variable in PHP code.
  427. AWK error in PHP code:
  428. how to get list of functions in webservices with nusoap methods?
  429. How to echo 4 word from a sentence
  430. How To Populate A Field In A MySQL With uniqueid()?
  431. How to seperate Model Numbers from a string
  432. sms option in php usin GSM modem.
  433. MYSQL Update Query Syntax
  434. rating bar system with database
  435. Reloading image after upload
  436. CHMOD back and forth in same script?
  437. make pdf with php
  438. break text to sepearte strings in php
  439. URL use "/" instead of "?" to send variables
  440. Add to text box dynamically in jquery
  441. The code for PDF attachment (system generated)via Email
  442. "Apache HTTP Server has encountered a problem and needs to close.
  443. php radio buttons and mysql
  444. Problem with preg_match not giving desired result.
  445. How do you insert in to MYSQL 4.1.22 with PHP 5.2.8?
  446. file_get_contents() not showing new lines
  447. how can i embed text which i get dynamically on an image?
  448. How do I specify charset and line breaks in files?
  449. Displaying a blob image using php
  450. how to show a long list box into short
  451. Specific Regular Expression (PREG) Help
  452. mysql_connect() timing out... No idea why... help?
  453. tutorial the begining with zend framework
  454. Flash Cache Issue in IE
  455. Displaying content from another site
  456. How to save Excel sheet data into MYSQL database using php?
  457. Connect logged in username to Chat box
  458. auto populate multiple list menu based on mysql
  459. Php ldap ii 6
  460. User posting wait time question
  461. sms option in php using GSM modem
  462. How to Crystal report use in php?
  463. View only results in table with certain information (only when conformation = No)
  464. changing data in a table
  465. PHP Code Insight for HTML webpage
  466. How to get desired URL
  467. deleting a row (php hyperlinking)
  468. How to create Combo Box
  469. php config for mysql
  470. 19,000 thumbnails in 1 folder
  471. Auto generate text boxes for submission
  472. Display image from database
  473. Using JavaScript validation with php
  474. Apache error "requested operation could not complete" after PHP installed
  475. how to display values
  476. Keeping only 40 comments for each product
  477. How to call soapheader function in soapclient php5?
  478. Help integrating a flash uploader with a vbulletin mod!
  479. Getting error 500 internal server error
  480. Browsed Time Problem.
  481. free hosting sites for wordpress
  482. Date conversion with mktime
  483. DES encryption, (php) mcrypt and (c#)
  484. endless do while loop
  485. Re:Create an html table like this one
  486. getting parse error
  487. TAPI events in PHP
  488. Blocking php curl from scraping website content
  489. redirection of URL
  490. Simple PHP form
  491. Wordpress to automatically import data from a csv file in a Wordpress database
  492. php warning page is expired
  493. Problem passing Variable from Javascript Function Constructed inside PHP
  494. Sending E-mail using PHPMailer()
  495. show firstpage pdf thumnail in php
  496. Protecting Videos
  497. Database and Check box
  498. Undefined index
  499. Ajax in PHP
  500. how to retain the values on my index page after submitting but there were error
  501. Create statistics from random array ouput
  502. I want list of item not selected (checkbox in form)
  503. Variable of variable
  504. session destroy for while user stay in one page without any action
  505. parse_url problems with long url
  506. GD library not displaying image
  507. How to connect two tables on php file.
  508. PHP How do you update individual records based on WHERE condition?
  509. how to implement uploadify with my own custom upload.php
  510. Onchange of dropdown Value
  511. PHP functions and arrays
  512. make my own forms by editing in joomla
  513. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'
  514. PHP Audio Array?
  515. Soap Client : No deserializer defined for array type
  516. Converting an existing structure to a tree structure
  517. While loop using mysqli_fetch_array with submit buttons
  518. reading an image pixel by pixel
  519. Upload pdf,wmv,win
  520. problem in sending a ajax variable in to php variable
  521. I've got a "Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\php\vali"
  522. Database query failing when called from php front end
  523. Identify the checkbox that is checked, in a group of checkboxes
  524. Ajax multiple response from php file
  525. parse value from 1 dropdown list to another list onChange event
  526. php link bug in IE
  527. exclude empty image fields mysql / php
  528. How do I get specific data from a table value ?
  529. How to rename file for each download request
  530. Multiple Select box to MySQL PHP
  531. Warning: mysqli_query() expects parameter 1 to be mysqli, resource given in C:\wamp\w
  532. Smarty Checkbox not displaying in HTML
  533. Session Problem in Shopping Cart
  534. url in php cl
  535. how to create a autogenerated link using php ?
  536. How to fix Parse error: syntax error, unexpected T_VARIABLE
  537. How to fix date conversion error
  538. REGEX Question: Get filenames and alt-tags from html
  539. passed information has to display as editable radio button
  540. How to retrieve word table contents in php
  541. How to pass information by clicking hyperlink?
  542. Can I turn Off computer using PHP script
  543. How to pass check box values
  544. How to call a javascript function from a php echo
  545. problem in advance search
  546. PHP Vunerabilities in sessions
  547. Help w/ php errors within script to email an html form
  548. HI There is a question about PHP Forms
  549. Cannot retrieve greek characters from database.
  550. image resizing within a loop won't function properlly